Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -9,23 +9,24 @@
|
||||
BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
|
||||
ifeq ($(BINUTILS_VERSION),)
|
||||
ifeq ($(BR2_arc),y)
|
||||
BINUTILS_VERSION = arc-2016.09-release
|
||||
BINUTILS_VERSION = arc-2017.09-release
|
||||
else
|
||||
BINUTILS_VERSION = 2.25.1
|
||||
BINUTILS_VERSION = 2.29.1
|
||||
endif
|
||||
endif # BINUTILS_VERSION
|
||||
|
||||
ifeq ($(BR2_arc),y)
|
||||
ifeq ($(BINUTILS_VERSION),arc-2017.09-release)
|
||||
BINUTILS_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(BINUTILS_VERSION))
|
||||
BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.gz
|
||||
BINUTILS_FROM_GIT = y
|
||||
endif
|
||||
BINUTILS_SITE ?= $(BR2_GNU_MIRROR)/binutils
|
||||
BINUTILS_SOURCE ?= binutils-$(BINUTILS_VERSION).tar.bz2
|
||||
BINUTILS_SOURCE ?= binutils-$(BINUTILS_VERSION).tar.xz
|
||||
BINUTILS_EXTRA_CONFIG_OPTIONS = $(call qstrip,$(BR2_BINUTILS_EXTRA_CONFIG_OPTIONS))
|
||||
BINUTILS_INSTALL_STAGING = YES
|
||||
BINUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
||||
BINUTILS_LICENSE = GPLv3+, libiberty LGPLv2.1+
|
||||
BINUTILS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
||||
BINUTILS_MAKE_OPTS = LIBS=$(TARGET_NLS_LIBS)
|
||||
BINUTILS_LICENSE = GPL-3.0+, libiberty LGPL-2.1+
|
||||
BINUTILS_LICENSE_FILES = COPYING3 COPYING.LIB
|
||||
|
||||
ifeq ($(BINUTILS_FROM_GIT),y)
|
||||
@@ -64,10 +65,10 @@ HOST_BINUTILS_CONF_ENV += MAKEINFO=true
|
||||
HOST_BINUTILS_MAKE_OPTS += MAKEINFO=true
|
||||
HOST_BINUTILS_INSTALL_OPTS += MAKEINFO=true install
|
||||
|
||||
# gcc bug with Os/O2/O3, PR77311
|
||||
# gcc bug with Os/O1/O2/O3, PR77311
|
||||
# error: unable to find a register to spill in class 'CCREGS'
|
||||
ifeq ($(BR2_bfin),y)
|
||||
BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
|
||||
BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O0"
|
||||
endif
|
||||
|
||||
# Workaround a build issue with -Os for ARM Cortex-M cpus.
|
||||
@@ -121,19 +122,32 @@ define BINUTILS_INSTALL_TARGET_CMDS
|
||||
endef
|
||||
endif
|
||||
|
||||
XTENSA_CORE_NAME = $(call qstrip, $(BR2_XTENSA_CORE_NAME))
|
||||
ifneq ($(XTENSA_CORE_NAME),)
|
||||
define BINUTILS_XTENSA_PRE_PATCH
|
||||
tar xf $(BR2_XTENSA_OVERLAY_DIR)/xtensa_$(XTENSA_CORE_NAME).tar \
|
||||
-C $(@D) --strip-components=1 binutils
|
||||
ifneq ($(ARCH_XTENSA_OVERLAY_FILE),)
|
||||
define BINUTILS_XTENSA_OVERLAY_EXTRACT
|
||||
$(call arch-xtensa-overlay-extract,$(@D),binutils)
|
||||
endef
|
||||
BINUTILS_PRE_PATCH_HOOKS += BINUTILS_XTENSA_PRE_PATCH
|
||||
HOST_BINUTILS_PRE_PATCH_HOOKS += BINUTILS_XTENSA_PRE_PATCH
|
||||
BINUTILS_POST_EXTRACT_HOOKS += BINUTILS_XTENSA_OVERLAY_EXTRACT
|
||||
BINUTILS_EXTRA_DOWNLOADS += $(ARCH_XTENSA_OVERLAY_URL)
|
||||
HOST_BINUTILS_POST_EXTRACT_HOOKS += BINUTILS_XTENSA_OVERLAY_EXTRACT
|
||||
HOST_BINUTILS_EXTRA_DOWNLOADS += $(ARCH_XTENSA_OVERLAY_URL)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_BINUTILS_ENABLE_LTO),y)
|
||||
HOST_BINUTILS_CONF_OPTS += --enable-plugins --enable-lto
|
||||
endif
|
||||
|
||||
# Hardlinks between binaries in different directories cause a problem
|
||||
# with rpath fixup, so we de-hardlink those binaries, and replace them
|
||||
# with copies instead.
|
||||
BINUTILS_TOOLS = ar as ld ld.bfd nm objcopy objdump ranlib readelf strip
|
||||
define HOST_BINUTILS_FIXUP_HARDLINKS
|
||||
$(foreach tool,$(BINUTILS_TOOLS),\
|
||||
rm -f $(HOST_DIR)/$(GNU_TARGET_NAME)/bin/$(tool) && \
|
||||
cp -a $(HOST_DIR)/bin/$(GNU_TARGET_NAME)-$(tool) \
|
||||
$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/$(tool)
|
||||
)
|
||||
endef
|
||||
HOST_BINUTILS_POST_INSTALL_HOOKS += HOST_BINUTILS_FIXUP_HARDLINKS
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user