Bump buildroot to version 2017-02
TG-3 #closed
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
|
||||
ifeq ($(BINUTILS_VERSION),)
|
||||
ifeq ($(BR2_arc),y)
|
||||
BINUTILS_VERSION = arc-2016.09-eng010
|
||||
BINUTILS_VERSION = arc-2016.09-release
|
||||
else
|
||||
BINUTILS_VERSION = 2.25.1
|
||||
endif
|
||||
@@ -29,19 +29,8 @@ BINUTILS_LICENSE = GPLv3+, libiberty LGPLv2.1+
|
||||
BINUTILS_LICENSE_FILES = COPYING3 COPYING.LIB
|
||||
|
||||
ifeq ($(BINUTILS_FROM_GIT),y)
|
||||
BINUTILS_DEPENDENCIES += host-flex host-bison host-texinfo
|
||||
HOST_BINUTILS_DEPENDENCIES += host-flex host-bison host-texinfo
|
||||
endif
|
||||
|
||||
# The .info files in the 2.26 tarball have an incorrect timestamp, so
|
||||
# binutils tries to re-generate them. In order to avoid the dependency
|
||||
# on host-texinfo, we simply update the timestamps.
|
||||
ifeq ($(BR2_BINUTILS_VERSION_2_26_X),y)
|
||||
define BINUTILS_FIXUP_INFO_TIMESTAMPS
|
||||
find $(@D) -name '*.info' -exec touch {} \;
|
||||
endef
|
||||
BINUTILS_POST_PATCH_HOOKS += BINUTILS_FIXUP_INFO_TIMESTAMPS
|
||||
HOST_BINUTILS_POST_PATCH_HOOKS += BINUTILS_FIXUP_INFO_TIMESTAMPS
|
||||
BINUTILS_DEPENDENCIES += host-flex host-bison
|
||||
HOST_BINUTILS_DEPENDENCIES += host-flex host-bison
|
||||
endif
|
||||
|
||||
# When binutils sources are fetched from the binutils-gdb repository,
|
||||
@@ -68,8 +57,12 @@ endif
|
||||
|
||||
# Don't build documentation. It takes up extra space / build time,
|
||||
# and sometimes needs specific makeinfo versions to work
|
||||
BINUTILS_CONF_ENV += ac_cv_prog_MAKEINFO=missing
|
||||
HOST_BINUTILS_CONF_ENV += ac_cv_prog_MAKEINFO=missing
|
||||
BINUTILS_CONF_ENV += MAKEINFO=true
|
||||
BINUTILS_MAKE_OPTS += MAKEINFO=true
|
||||
BINUTILS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) MAKEINFO=true install
|
||||
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
|
||||
# error: unable to find a register to spill in class 'CCREGS'
|
||||
@@ -77,6 +70,13 @@ ifeq ($(BR2_bfin),y)
|
||||
BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
|
||||
endif
|
||||
|
||||
# Workaround a build issue with -Os for ARM Cortex-M cpus.
|
||||
# (Binutils 2.25.1 and 2.26.1)
|
||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=20552
|
||||
ifeq ($(BR2_ARM_CPU_ARMV7M)$(BR2_OPTIMIZE_S),yy)
|
||||
BINUTILS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O2"
|
||||
endif
|
||||
|
||||
# Install binutils after busybox to prefer full-blown utilities
|
||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||
BINUTILS_DEPENDENCIES += busybox
|
||||
@@ -102,22 +102,22 @@ HOST_BINUTILS_CONF_OPTS = \
|
||||
# binutils run configure script of subdirs at make time, so ensure
|
||||
# our TARGET_CONFIGURE_ARGS are taken into consideration for those
|
||||
define BINUTILS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_ARGS) $(MAKE) -C $(@D)
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_ARGS) $(MAKE) $(BINUTILS_MAKE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
# We just want libbfd, libiberty and libopcodes,
|
||||
# not the full-blown binutils in staging
|
||||
define BINUTILS_INSTALL_STAGING_CMDS
|
||||
$(MAKE) -C $(@D)/bfd DESTDIR=$(STAGING_DIR) install
|
||||
$(MAKE) -C $(@D)/opcodes DESTDIR=$(STAGING_DIR) install
|
||||
$(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(STAGING_DIR) install
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/opcodes DESTDIR=$(STAGING_DIR) install
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
# If we don't want full binutils on target
|
||||
ifneq ($(BR2_PACKAGE_BINUTILS_TARGET),y)
|
||||
define BINUTILS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(TARGET_DIR) install
|
||||
$(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user