From 12d97d01db7e054447241d1a6af0bb0c258e439e Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 14 Mar 2017 11:30:32 -0700 Subject: [PATCH] package/binutils: use the Xtensa variables ... instead of re-computing them over-and-over-again. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Max Filippov Signed-off-by: Thomas Petazzoni --- package/binutils/binutils.mk | 6 ++---- 1 file 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 -- 2.30.2