2 # Copyright (C) 2006-2013 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.xz
13 PKG_SOURCE_URL:=@GNU/gdb
14 PKG_MD5SUM:=bd958fe9019d7c7896f29f6724a764ed
16 HOST_BUILD_PARALLEL:=1
18 include $(INCLUDE_DIR)/toolchain-build.mk
20 HOST_CONFIGURE_VARS += \
21 gdb_cv_func_sigsetjmp=yes
23 HOST_CONFIGURE_ARGS = \
24 --prefix=$(TOOLCHAIN_DIR) \
25 --build=$(GNU_HOST_NAME) \
26 --host=$(GNU_HOST_NAME) \
27 --target=$(REAL_GNU_TARGET_NAME) \
30 --disable-tui --disable-gdbtk --without-x \
31 --without-included-gettext \
36 mkdir -p $(TOOLCHAIN_DIR)/bin
37 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
38 ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
39 strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
45 $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
46 $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
49 $(eval $(call HostBuild))