Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -14,13 +14,7 @@ GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
||||
GDB_FROM_GIT = y
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_microblaze),y)
|
||||
GDB_SITE = $(call github,Xilinx,gdb,$(GDB_VERSION))
|
||||
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
||||
GDB_FROM_GIT = y
|
||||
endif
|
||||
|
||||
GDB_LICENSE = GPLv2+, LGPLv2+, GPLv3+, LGPLv3+
|
||||
GDB_LICENSE = GPL-2.0+, LGPL-2.0+, GPL-3.0+, LGPL-3.0+
|
||||
GDB_LICENSE_FILES = COPYING COPYING.LIB COPYING3 COPYING3.LIB
|
||||
|
||||
# We only want gdbserver and not the entire debugger.
|
||||
@@ -44,14 +38,14 @@ HOST_GDB_MAKE_OPTS += MAKEINFO=true
|
||||
HOST_GDB_INSTALL_OPTS += MAKEINFO=true install
|
||||
|
||||
# Apply the Xtensa specific patches
|
||||
XTENSA_CORE_NAME = $(call qstrip, $(BR2_XTENSA_CORE_NAME))
|
||||
ifneq ($(XTENSA_CORE_NAME),)
|
||||
define GDB_XTENSA_PRE_PATCH
|
||||
tar xf $(BR2_XTENSA_OVERLAY_DIR)/xtensa_$(XTENSA_CORE_NAME).tar \
|
||||
-C $(@D) --strip-components=1 gdb
|
||||
ifneq ($(ARCH_XTENSA_OVERLAY_FILE),)
|
||||
define GDB_XTENSA_OVERLAY_EXTRACT
|
||||
$(call arch-xtensa-overlay-extract,$(@D),gdb)
|
||||
endef
|
||||
GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH
|
||||
HOST_GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH
|
||||
GDB_POST_EXTRACT_HOOKS += GDB_XTENSA_OVERLAY_EXTRACT
|
||||
GDB_EXTRA_DOWNLOADS += $(ARCH_XTENSA_OVERLAY_URL)
|
||||
HOST_GDB_POST_EXTRACT_HOOKS += GDB_XTENSA_OVERLAY_EXTRACT
|
||||
HOST_GDB_EXTRA_DOWNLOADS += $(ARCH_XTENSA_OVERLAY_URL)
|
||||
endif
|
||||
|
||||
ifeq ($(GDB_FROM_GIT),y)
|
||||
@@ -91,7 +85,21 @@ GDB_CONF_ENV = \
|
||||
# not get passed to the configure script of nested packages while
|
||||
# building gdbserver with full debugger.
|
||||
GDB_CONF_ENV += gl_cv_func_gettimeofday_clobber=no
|
||||
GDB_MAKE_ENV = gl_cv_func_gettimeofday_clobber=no
|
||||
GDB_MAKE_ENV += gl_cv_func_gettimeofday_clobber=no
|
||||
|
||||
# Starting with glibc 2.25, the proc_service.h header has been copied
|
||||
# from gdb to glibc so other tools can use it. However, that makes it
|
||||
# necessary to make sure that declaration of prfpregset_t declaration
|
||||
# is consistent between gdb and glibc. In gdb, however, there is a
|
||||
# workaround for a broken prfpregset_t declaration in glibc 2.3 which
|
||||
# uses AC_TRY_RUN to detect if it's needed, which doesn't work in
|
||||
# cross-compilation. So pass the cache option to configure.
|
||||
# It needs to be passed to GDB_CONF_ENV to build gdbserver only but
|
||||
# also to GDB_MAKE_ENV, because otherwise it does not get passed to the
|
||||
# configure script of nested packages while building gdbserver with full
|
||||
# debugger.
|
||||
GDB_CONF_ENV += gdb_cv_prfpregset_t_broken=no
|
||||
GDB_MAKE_ENV += gdb_cv_prfpregset_t_broken=no
|
||||
|
||||
# The shared only build is not supported by gdb, so enable static build for
|
||||
# build-in libraries with --enable-static.
|
||||
@@ -101,7 +109,7 @@ GDB_CONF_OPTS = \
|
||||
--without-x \
|
||||
--disable-sim \
|
||||
$(GDB_DISABLE_BINUTILS_CONF_OPTS) \
|
||||
$(if $(BR2_PACKAGE_GDB_SERVER),--enable-gdbserver) \
|
||||
$(if $(BR2_PACKAGE_GDB_SERVER),--enable-gdbserver,--disable-gdbserver) \
|
||||
--with-curses \
|
||||
--without-included-gettext \
|
||||
--disable-werror \
|
||||
@@ -156,6 +164,7 @@ else
|
||||
GDB_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GDB_PYTHON),)
|
||||
# This removes some unneeded Python scripts and XML target description
|
||||
# files that are not useful for a normal usage of the debugger.
|
||||
define GDB_REMOVE_UNNEEDED_FILES
|
||||
@@ -163,6 +172,7 @@ define GDB_REMOVE_UNNEEDED_FILES
|
||||
endef
|
||||
|
||||
GDB_POST_INSTALL_TARGET_HOOKS += GDB_REMOVE_UNNEEDED_FILES
|
||||
endif
|
||||
|
||||
# This installs the gdbserver somewhere into the $(HOST_DIR) so that
|
||||
# it becomes an integral part of the SDK, if the toolchain generated
|
||||
@@ -171,7 +181,7 @@ GDB_POST_INSTALL_TARGET_HOOKS += GDB_REMOVE_UNNEEDED_FILES
|
||||
# does.
|
||||
define GDB_SDK_INSTALL_GDBSERVER
|
||||
$(INSTALL) -D -m 0755 $(TARGET_DIR)/usr/bin/gdbserver \
|
||||
$(HOST_DIR)/usr/$(GNU_TARGET_NAME)/debug-root/usr/bin/gdbserver
|
||||
$(HOST_DIR)/$(GNU_TARGET_NAME)/debug-root/usr/bin/gdbserver
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GDB_SERVER),y)
|
||||
@@ -201,7 +211,7 @@ HOST_GDB_CONF_OPTS += --disable-tui
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y)
|
||||
HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/usr/bin/python2
|
||||
HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python2
|
||||
HOST_GDB_DEPENDENCIES += host-python
|
||||
else
|
||||
HOST_GDB_CONF_OPTS += --without-python
|
||||
@@ -223,7 +233,7 @@ endif
|
||||
|
||||
# legacy $arch-linux-gdb symlink
|
||||
define HOST_GDB_ADD_SYMLINK
|
||||
cd $(HOST_DIR)/usr/bin && \
|
||||
cd $(HOST_DIR)/bin && \
|
||||
ln -snf $(GNU_TARGET_NAME)-gdb $(ARCH)-linux-gdb
|
||||
endef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user