ramips: generate sysupgrade image for the ALL0256N
[openwrt.git] / toolchain / gdb / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=gdb
10 PKG_VERSION:=linaro-7.2-2011.03-0
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_MD5SUM:=747b655418058964451eff7c7a15013c
14 PKG_SOURCE_URL:=http://launchpad.net/gdb-linaro/7.2/7.2-2011.03-0/+download/
15
16 include $(INCLUDE_DIR)/toolchain-build.mk
17
18 define Host/Configure
19 (cd $(HOST_BUILD_DIR); \
20 gdb_cv_func_sigsetjmp=yes \
21 CFLAGS="-O2" \
22 $(HOST_BUILD_DIR)/configure \
23 --prefix=$(TOOLCHAIN_DIR) \
24 --build=$(GNU_HOST_NAME) \
25 --host=$(GNU_HOST_NAME) \
26 --target=$(REAL_GNU_TARGET_NAME) \
27 --disable-werror \
28 $(DISABLE_NLS) \
29 --without-uiout \
30 --disable-tui --disable-gdbtk --without-x \
31 --without-included-gettext \
32 --enable-threads \
33 );
34 endef
35
36 define Host/Compile
37 $(MAKE) -C $(HOST_BUILD_DIR)
38 endef
39
40 define Host/Install
41 mkdir -p $(TOOLCHAIN_DIR)/bin
42 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
43 ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
44 strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
45 endef
46
47 define Host/Clean
48 rm -rf \
49 $(HOST_BUILD_DIR) \
50 $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
51 $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
52 endef
53
54 $(eval $(call HostBuild))
This page took 0.038246 seconds and 5 git commands to generate.