From: Yann E. MORIN Date: Tue, 14 Mar 2017 18:30:32 +0000 (-0700) Subject: package/binutils: use the Xtensa variables X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12d97d01db7e054447241d1a6af0bb0c258e439e;p=buildroot.git 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 --- 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