2011-03-08 08:51:06 +01:00
|
|
|
#
|
2015-11-06 11:53:27 +01:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2006-06-27 02:44:04 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-06-07 10:11:06 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-06-21 08:19:43 +02:00
|
|
|
PKG_NAME:=gdb
|
2015-11-06 11:53:27 +01:00
|
|
|
PKG_VERSION:=7.10
|
2005-06-07 10:11:06 +02:00
|
|
|
|
2015-07-10 21:42:00 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=@GNU/gdb
|
2015-11-06 11:53:27 +01:00
|
|
|
PKG_MD5SUM:=2a35bac41fa8e10bf04f3a0dd7f7f363
|
2005-06-07 10:11:06 +02:00
|
|
|
|
2012-09-15 16:18:13 +02:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
2009-02-24 00:52:27 +01:00
|
|
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
2005-06-07 10:11:06 +02:00
|
|
|
|
2015-07-10 21:42:12 +02:00
|
|
|
HOST_CONFIGURE_VARS += \
|
|
|
|
gdb_cv_func_sigsetjmp=yes
|
|
|
|
|
|
|
|
HOST_CONFIGURE_ARGS = \
|
|
|
|
--prefix=$(TOOLCHAIN_DIR) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--host=$(GNU_HOST_NAME) \
|
|
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
|
|
|
--disable-werror \
|
|
|
|
--without-uiout \
|
|
|
|
--disable-tui --disable-gdbtk --without-x \
|
|
|
|
--without-included-gettext \
|
|
|
|
--enable-threads \
|
|
|
|
--with-expat
|
2005-06-07 10:11:06 +02:00
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Install
|
2010-08-19 14:49:51 +02:00
|
|
|
mkdir -p $(TOOLCHAIN_DIR)/bin
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
|
|
|
|
ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
|
|
|
|
strip $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb
|
2006-10-07 14:48:23 +02:00
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Clean
|
2009-01-11 18:27:56 +01:00
|
|
|
rm -rf \
|
2009-02-22 05:37:20 +01:00
|
|
|
$(HOST_BUILD_DIR) \
|
2010-08-19 14:49:51 +02:00
|
|
|
$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb \
|
|
|
|
$(TOOLCHAIN_DIR)/bin/$(GNU_TARGET_NAME)-gdb
|
2006-06-21 08:19:43 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|