From: Yann E. MORIN Date: Tue, 14 Mar 2017 18:30:37 +0000 (-0700) Subject: package/gdb: use macro to extract Xtensa overlay X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0cd0b907dd1142ab048223402470772d882622b;p=buildroot.git package/gdb: use macro to extract Xtensa overlay Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Max Filippov Signed-off-by: Thomas Petazzoni --- diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index 0e4d384d2d..13b1ab2a69 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -46,7 +46,7 @@ HOST_GDB_INSTALL_OPTS += MAKEINFO=true install # Apply the Xtensa specific patches ifneq ($(ARCH_XTENSA_CORE_NAME),) define GDB_XTENSA_PRE_PATCH - tar xf $(ARCH_XTENSA_OVERLAY_TAR) -C $(@D) --strip-components=1 gdb + $(call arch-xtensa-overlay-extract,$(@D),gdb) endef GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH HOST_GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH