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
11 PKG_VERSION_MAJOR:=7.6
12 PKG_VERSION:=linaro-$(PKG_REV)
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_MD5SUM:=816290b91cff03912320089d353e8a12
16 PKG_SOURCE_URL:=https://releases.linaro.org/13.05/components/toolchain/gdb-linaro/
18 HOST_BUILD_PARALLEL:=1
20 include $(INCLUDE_DIR)/toolchain-build.mk
23 (cd $(HOST_BUILD_DIR); \
24 gdb_cv_func_sigsetjmp=yes \
26 $(HOST_BUILD_DIR)/configure \
27 --prefix=$(TOOLCHAIN_DIR) \
28 --build=$(GNU_HOST_NAME) \
29 --host=$(GNU_HOST_NAME) \
30 --target=$(REAL_GNU_TARGET_NAME) \
33 --disable-tui --disable-gdbtk --without-x \
34 --without-included-gettext \
40 mkdir -p $(TOOLCHAIN_DIR)/bin
41 $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
42 ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
43 strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
49 $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
50 $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
53 $(eval $(call HostBuild))