b7310c8d07
Xtensa core configuration must be added to linux before it can be built for that xtensa CPU variant. Extract configuration files from the xtensa overlay as is done for other packages that need to be configured for a specific xtensa core. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
36 lines
1.6 KiB
Plaintext
36 lines
1.6 KiB
Plaintext
################################################################################
|
|
# This variable can be used by packages that need to extract the overlay.
|
|
#
|
|
# ARCH_XTENSA_OVERLAY_FILE is the path to the overlay tarball; empty if not
|
|
# using any overlay
|
|
#
|
|
# Example:
|
|
# ifneq ($(ARCH_XTENSA_OVERLAY_FILE),)
|
|
# tar xf $(ARCH_XTENSA_OVERLAY_FILE) -C $(@D) --strip-components=1 gcc
|
|
# endif
|
|
################################################################################
|
|
BR_ARCH_XTENSA_OVERLAY_FILE = $(call qstrip,$(BR2_XTENSA_OVERLAY_FILE))
|
|
ifneq ($(filter http://% https://% ftp://% scp://%,$(BR_ARCH_XTENSA_OVERLAY_FILE)),)
|
|
ARCH_XTENSA_OVERLAY_URL = $(BR_ARCH_XTENSA_OVERLAY_FILE)
|
|
ARCH_XTENSA_OVERLAY_FILE = $(DL_DIR)/$(notdir $(BR_ARCH_XTENSA_OVERLAY_FILE))
|
|
# Do not check that file, we can't know its hash
|
|
BR_NO_CHECK_HASH_FOR += $(notdir $(ARCH_XTENSA_OVERLAY_URL))
|
|
else
|
|
ARCH_XTENSA_OVERLAY_FILE = $(BR_ARCH_XTENSA_OVERLAY_FILE)
|
|
endif
|
|
|
|
################################################################################
|
|
# arch-xtensa-overlay-extract -- extract an extensa overlay
|
|
#
|
|
# argument 1 is the path in which to extract
|
|
# argument 2 is the component to extract, one of: gcc, binutils, gdb, linux
|
|
#
|
|
# Example:
|
|
# $(call arch-xtensa-overlay-extract,/path/to/overlay.tar,$(@D),gcc)
|
|
################################################################################
|
|
define arch-xtensa-overlay-extract
|
|
$(call suitable-extractor,$(ARCH_XTENSA_OVERLAY_FILE)) \
|
|
$(ARCH_XTENSA_OVERLAY_FILE) | \
|
|
$(TAR) --strip-components=1 -C $(1) $(TAR_OPTIONS) - $(2)
|
|
endef
|