1 ################################################################################
2 # This variable can be used by packages that need to extract the overlay.
4 # ARCH_XTENSA_OVERLAY_FILE is the path to the overlay tarball; empty if not
8 # ifneq ($(ARCH_XTENSA_OVERLAY_FILE),)
9 # tar xf $(ARCH_XTENSA_OVERLAY_FILE) -C $(@D) --strip-components=1 gcc
11 ################################################################################
12 BR_ARCH_XTENSA_OVERLAY_FILE = $(call qstrip,$(BR2_XTENSA_OVERLAY_FILE))
13 ifneq ($(filter http://% https://% ftp://% scp://%,$(BR_ARCH_XTENSA_OVERLAY_FILE)),)
14 ARCH_XTENSA_OVERLAY_URL = $(BR_ARCH_XTENSA_OVERLAY_FILE)
15 ARCH_XTENSA_OVERLAY_FILE = $($(PKG)_DL_DIR)/$(notdir $(BR_ARCH_XTENSA_OVERLAY_FILE))
16 # Do not check that file, we can't know its hash
17 BR_NO_CHECK_HASH_FOR += $(notdir $(ARCH_XTENSA_OVERLAY_URL))
19 ARCH_XTENSA_OVERLAY_FILE = $(BR_ARCH_XTENSA_OVERLAY_FILE)
22 ################################################################################
23 # arch-xtensa-overlay-extract -- extract an extensa overlay
25 # argument 1 is the path in which to extract
26 # argument 2 is the component to extract, one of: gcc, binutils, gdb, linux,
30 # $(call arch-xtensa-overlay-extract,/path/to/overlay.tar,$(@D),gcc)
31 ################################################################################
32 define arch-xtensa-overlay-extract
33 $(call suitable-extractor,$(ARCH_XTENSA_OVERLAY_FILE)) \
34 $(ARCH_XTENSA_OVERLAY_FILE) | \
35 $(TAR) --strip-components=1 -C $(1) $(TAR_OPTIONS) - $(2)