diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host index de5ca866e5..e62fea1406 100644 --- a/package/binutils/Config.in.host +++ b/package/binutils/Config.in.host @@ -5,6 +5,9 @@ config BR2_PACKAGE_HOST_BINUTILS_SUPPORTS_CFI default y depends on !BR2_microblaze +config BR2_PACKAGE_BINUTILS_HAS_LIBSFRAME + bool + choice prompt "Binutils Version" default BR2_BINUTILS_VERSION_2_39_X if !BR2_arc @@ -20,6 +23,7 @@ config BR2_BINUTILS_VERSION_2_39_X config BR2_BINUTILS_VERSION_2_40_X bool "binutils 2.40" + select BR2_PACKAGE_BINUTILS_HAS_LIBSFRAME config BR2_BINUTILS_VERSION_ARC bool "binutils arc (2.34.50)" diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk index 0dd8526b26..48a036651c 100644 --- a/package/binutils/binutils.mk +++ b/package/binutils/binutils.mk @@ -105,12 +105,19 @@ endif # our TARGET_CONFIGURE_ARGS are taken into consideration for those BINUTILS_MAKE_ENV = $(TARGET_CONFIGURE_ARGS) +ifeq ($(BR2_PACKAGE_BINUTILS_HAS_LIBSFRAME),y) +define BINUTILS_INSTALL_STAGING_LIBSFRAME + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libsframe DESTDIR=$(STAGING_DIR) install +endef +endif + # We just want libbfd, libiberty and libopcodes, # not the full-blown binutils in staging define BINUTILS_INSTALL_STAGING_CMDS $(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 + $(BINUTILS_INSTALL_STAGING_LIBSFRAME) endef # If we don't want full binutils on target