2 # Copyright (C) 2006-2009 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 \
26 $(PKG_BUILD_DIR
)/configure \
27 --prefix=$(TOOLCHAIN_DIR
)/usr \
28 --build
=$(GNU_HOST_NAME
) \
29 --host
=$(GNU_HOST_NAME
) \
30 --target
=$(REAL_GNU_TARGET_NAME
) \
32 --without-uiout
--disable-gdbmi \
33 --disable-tui
--disable-gdbtk
--without-x \
34 --without-included-gettext \
40 $(MAKE
) -C
$(PKG_BUILD_DIR
)
44 mkdir
-p
$(TOOLCHAIN_DIR
)/usr
/bin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/gdb
/gdb
$(TOOLCHAIN_DIR
)/usr
/bin
/$(TARGET_CROSS
)gdb
46 ln
-fs
$(TARGET_CROSS
)gdb
$(TOOLCHAIN_DIR
)/usr
/bin
/$(GNU_TARGET_NAME
)-gdb
47 strip $(TOOLCHAIN_DIR
)/usr
/bin
/$(TARGET_CROSS
)gdb
53 $(TOOLCHAIN_DIR
)/usr
/bin
/$(TARGET_CROSS
)gdb \
54 $(TOOLCHAIN_DIR
)/usr
/bin
/$(GNU_TARGET_NAME
)-gdb
57 $(eval
$(call HostBuild
))