summaryrefslogtreecommitdiffstats
path: root/package/binutils/binutils.mk
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-03-14 11:30:32 -0700
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-26 15:49:22 +0200
commit12d97d01db7e054447241d1a6af0bb0c258e439e (patch)
tree5b5867957293cdaffade3fe7e39b6f4193f41407 /package/binutils/binutils.mk
parentbcecbed654c517cf9349c7e108d014a0831d3aed (diff)
downloadbuildroot-12d97d01db7e054447241d1a6af0bb0c258e439e.tar.gz
buildroot-12d97d01db7e054447241d1a6af0bb0c258e439e.zip
package/binutils: use the Xtensa variables
... instead of re-computing them over-and-over-again. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/binutils/binutils.mk')
-rw-r--r--package/binutils/binutils.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 6d29f245e1..914393ef00 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -121,11 +121,9 @@ define BINUTILS_INSTALL_TARGET_CMDS
endef
endif
-XTENSA_CORE_NAME = $(call qstrip, $(BR2_XTENSA_CORE_NAME))
-ifneq ($(XTENSA_CORE_NAME),)
+ifneq ($(ARCH_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
+ tar xf $(ARCH_XTENSA_OVERLAY_TAR) -C $(@D) --strip-components=1 binutils
endef
BINUTILS_PRE_PATCH_HOOKS += BINUTILS_XTENSA_PRE_PATCH
HOST_BINUTILS_PRE_PATCH_HOOKS += BINUTILS_XTENSA_PRE_PATCH
OpenPOWER on IntegriCloud