From 0a4ecbbf7a9f989e8c0808caf5156420d5f0c938 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 14 Mar 2017 11:30:33 -0700 Subject: [PATCH] package/gdb: 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/gdb/gdb.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index d8299900ec..0e4d384d2d 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -44,11 +44,9 @@ HOST_GDB_MAKE_OPTS += MAKEINFO=true HOST_GDB_INSTALL_OPTS += MAKEINFO=true install # Apply the Xtensa specific patches -XTENSA_CORE_NAME = $(call qstrip, $(BR2_XTENSA_CORE_NAME)) -ifneq ($(XTENSA_CORE_NAME),) +ifneq ($(ARCH_XTENSA_CORE_NAME),) define GDB_XTENSA_PRE_PATCH - tar xf $(BR2_XTENSA_OVERLAY_DIR)/xtensa_$(XTENSA_CORE_NAME).tar \ - -C $(@D) --strip-components=1 gdb + tar xf $(ARCH_XTENSA_OVERLAY_TAR) -C $(@D) --strip-components=1 gdb endef GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH HOST_GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH -- 2.30.2