2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
13 PKG_MD5SUM
:=05b928f41fa5b482e49ca2c24762a0ae
14 PKG_SOURCE_URL
:=http
://ftp.gnu.org
/gnu
/gdb
17 STAGING_DIR_HOST
:=$(TOOLCHAIN_DIR
)
18 BUILD_DIR_HOST
:=$(BUILD_DIR_TOOLCHAIN
)
20 include $(INCLUDE_DIR
)/host-build.mk
22 define Build
/Configure
23 (cd
$(PKG_BUILD_DIR
); \
24 gdb_cv_func_sigsetjmp
=yes \
25 $(PKG_BUILD_DIR
)/configure \
26 --prefix=$(TOOLCHAIN_DIR
) \
27 --build
=$(GNU_HOST_NAME
) \
28 --host
=$(GNU_HOST_NAME
) \
29 --target
=$(REAL_GNU_TARGET_NAME
) \
31 --without-uiout
--disable-gdbmi \
32 --disable-tui
--disable-gdbtk
--without-x \
33 --without-included-gettext \
39 $(MAKE
) -C
$(PKG_BUILD_DIR
)
40 strip $(PKG_BUILD_DIR
)/gdb
/gdb
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/gdb
/gdb
$(TARGET_CROSS
)gdb
45 ln
-fs
$(TARGET_CROSS
)gdb
$(TOOLCHAIN_DIR
)/$(GNU_TARGET_NAME
)-gdb
49 rm -rf
$(PKG_BUILD_DIR
)
50 rm -f
$(TOOLCHAIN_DIR
)/bin
/$(TARGET_CROSS
)gdb
51 rm -f
$(TOOLCHAIN_DIR
)/bin
/$(GNU_TARGET_NAME
)-gdb
54 $(eval
$(call HostBuild
))