binutils: use $(TARGET_MAKE_ENV) when calling $(MAKE)
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
cc5e9fe4bb
commit
99f1e508f0
@ -108,16 +108,16 @@ 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user