2 # Copyright (C) 2006-2020 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
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
14 PKG_SOURCE_URL
:=@GNU
/gdb
15 PKG_HASH
:=1e55b4d7cdca7b34be12f4ceae651623aa73b2fd640152313f9f66a7149757c4
16 GDB_DIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 HOST_BUILD_DIR
:=$(BUILD_DIR_TOOLCHAIN
)/$(GDB_DIR
)
20 HOST_BUILD_PARALLEL
:=1
22 include $(INCLUDE_DIR
)/toolchain-build.mk
24 HOST_CONFIGURE_VARS
+= \
25 gdb_cv_func_sigsetjmp
=yes
27 HOST_CONFIGURE_ARGS
= \
28 --prefix=$(TOOLCHAIN_DIR
) \
29 --build
=$(GNU_HOST_NAME
) \
30 --host
=$(GNU_HOST_NAME
) \
31 --target
=$(REAL_GNU_TARGET_NAME
) \
34 --enable-tui
--disable-gdbtk
--without-x \
35 --without-included-gettext \
45 mkdir
-p
$(TOOLCHAIN_DIR
)/bin
46 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/gdb
/gdb
$(TOOLCHAIN_DIR
)/bin
/$(TARGET_CROSS
)gdb
47 ln
-fs
$(TARGET_CROSS
)gdb
$(TOOLCHAIN_DIR
)/bin
/$(GNU_TARGET_NAME
)-gdb
48 strip $(TOOLCHAIN_DIR
)/bin
/$(TARGET_CROSS
)gdb
54 $(TOOLCHAIN_DIR
)/bin
/$(TARGET_CROSS
)gdb \
55 $(TOOLCHAIN_DIR
)/bin
/$(GNU_TARGET_NAME
)-gdb
58 $(eval
$(call HostBuild
))