package/gcc: 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>
This commit is contained in:
parent
0a4ecbbf7a
commit
725f05967d
@ -15,7 +15,7 @@ HOST_GCC_FINAL_DEPENDENCIES = \
|
||||
HOST_GCC_FINAL_EXCLUDES = $(HOST_GCC_EXCLUDES)
|
||||
HOST_GCC_FINAL_POST_EXTRACT_HOOKS += HOST_GCC_FAKE_TESTSUITE
|
||||
|
||||
ifneq ($(call qstrip, $(BR2_XTENSA_CORE_NAME)),)
|
||||
ifneq ($(ARCH_XTENSA_CORE_NAME),)
|
||||
HOST_GCC_FINAL_POST_EXTRACT_HOOKS += HOST_GCC_XTENSA_OVERLAY_EXTRACT
|
||||
endif
|
||||
|
||||
|
@ -13,7 +13,7 @@ HOST_GCC_INITIAL_DEPENDENCIES = $(HOST_GCC_COMMON_DEPENDENCIES)
|
||||
HOST_GCC_INITIAL_EXCLUDES = $(HOST_GCC_EXCLUDES)
|
||||
HOST_GCC_INITIAL_POST_EXTRACT_HOOKS += HOST_GCC_FAKE_TESTSUITE
|
||||
|
||||
ifneq ($(call qstrip, $(BR2_XTENSA_CORE_NAME)),)
|
||||
ifneq ($(ARCH_XTENSA_CORE_NAME),)
|
||||
HOST_GCC_INITIAL_POST_EXTRACT_HOOKS += HOST_GCC_XTENSA_OVERLAY_EXTRACT
|
||||
endif
|
||||
|
||||
|
@ -24,11 +24,8 @@ endif
|
||||
#
|
||||
# Xtensa special hook
|
||||
#
|
||||
|
||||
HOST_GCC_XTENSA_OVERLAY_TAR = $(BR2_XTENSA_OVERLAY_DIR)/xtensa_$(call qstrip,$(BR2_XTENSA_CORE_NAME)).tar
|
||||
|
||||
define HOST_GCC_XTENSA_OVERLAY_EXTRACT
|
||||
tar xf $(HOST_GCC_XTENSA_OVERLAY_TAR) -C $(@D) --strip-components=1 gcc
|
||||
tar xf $(ARCH_XTENSA_OVERLAY_TAR) -C $(@D) --strip-components=1 gcc
|
||||
endef
|
||||
|
||||
#
|
||||
@ -307,7 +304,7 @@ HOST_GCC_COMMON_CCACHE_HASH_FILES += \
|
||||
$(addsuffix /gcc/$(GCC_VERSION)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) \
|
||||
$(addsuffix /gcc/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR)))))
|
||||
ifeq ($(BR2_xtensa),y)
|
||||
HOST_GCC_COMMON_CCACHE_HASH_FILES += $(HOST_GCC_XTENSA_OVERLAY_TAR)
|
||||
HOST_GCC_COMMON_CCACHE_HASH_FILES += $(ARCH_XTENSA_OVERLAY_TAR)
|
||||
endif
|
||||
ifeq ($(ARCH),powerpc)
|
||||
ifneq ($(BR2_SOFT_FLOAT),)
|
||||
|
Loading…
Reference in New Issue
Block a user