mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
binutils: Makefile and Config.in rework for oprofile ext toolchain compilation
* When select full binutils binaries use the default INSTALL_TARGET_CMDS from AUTOTARGET. * Menu config improvement. * Install libiberty into Staging dir. [Peter: Fix typos, Config.in fixes, install libiberty to target as well] Signed-off-by: Benoit Mauduit <benoit.mauduit@openwide.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
8d04fa9cc6
commit
48391acd2c
@ -1,12 +1,9 @@
|
|||||||
config BR2_PACKAGE_BINUTILS
|
config BR2_PACKAGE_BINUTILS
|
||||||
bool "libbfd (binutils)"
|
bool "binutils"
|
||||||
depends on BR2_TOOLCHAIN_BUILDROOT
|
|
||||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||||
select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
|
select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||||
help
|
help
|
||||||
Install libbfd from binutils in the target.
|
Install binutils on the target
|
||||||
|
|
||||||
This is used by oprofile to avoid a full-blown target binutils.
|
|
||||||
|
|
||||||
config BR2_PACKAGE_BINUTILS_TARGET
|
config BR2_PACKAGE_BINUTILS_TARGET
|
||||||
bool "binutils binaries"
|
bool "binutils binaries"
|
||||||
|
@ -4,7 +4,13 @@
|
|||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
|
# Version is set when using buildroot toolchain.
|
||||||
|
# If not, we do like other packages
|
||||||
BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
|
BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
|
||||||
|
ifeq ($(BINUTILS_VERSION),)
|
||||||
|
BINUTILS_VERSION = 2.21
|
||||||
|
endif
|
||||||
|
|
||||||
BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.bz2
|
BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.bz2
|
||||||
BINUTILS_SITE = $(BR2_GNU_MIRROR)/binutils
|
BINUTILS_SITE = $(BR2_GNU_MIRROR)/binutils
|
||||||
ifeq ($(ARCH),avr32)
|
ifeq ($(ARCH),avr32)
|
||||||
@ -34,23 +40,19 @@ HOST_BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
|
|||||||
$(BR2_CONFIGURE_STAGING_SYSROOT) \
|
$(BR2_CONFIGURE_STAGING_SYSROOT) \
|
||||||
$(BINUTILS_EXTRA_CONFIG_OPTIONS)
|
$(BINUTILS_EXTRA_CONFIG_OPTIONS)
|
||||||
|
|
||||||
# We just want libbfd, not the full-blown binutils in staging
|
# We just want libbfd and libiberty, not the full-blown binutils in staging
|
||||||
define BINUTILS_INSTALL_STAGING_CMDS
|
define BINUTILS_INSTALL_STAGING_CMDS
|
||||||
$(MAKE) -C $(@D)/bfd DESTDIR=$(STAGING_DIR) install
|
$(MAKE) -C $(@D)/bfd DESTDIR=$(STAGING_DIR) install
|
||||||
|
$(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# only libbfd in the target...
|
# If we don't want full binutils on target
|
||||||
BINUTILS_INSTALL_FROM = $(@D)/bfd
|
ifneq ($(BR2_PACKAGE_BINUTILS_TARGET),y)
|
||||||
|
|
||||||
# unless we want full...
|
|
||||||
ifeq ($(BR2_PACKAGE_BINUTILS_TARGET),y)
|
|
||||||
BINUTILS_INSTALL_FROM = $(@D)
|
|
||||||
endif
|
|
||||||
|
|
||||||
define BINUTILS_INSTALL_TARGET_CMDS
|
define BINUTILS_INSTALL_TARGET_CMDS
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(BINUTILS_INSTALL_FROM) \
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(TARGET_DIR) install
|
||||||
DESTDIR=$(TARGET_DIR) install
|
$(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS))
|
$(eval $(call AUTOTARGETS))
|
||||||
$(eval $(call AUTOTARGETS,host))
|
$(eval $(call AUTOTARGETS,host))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user