Strip quotes from COREBOOT_ROM_DEPENDENCIES
Macro-ify stripping quotes Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5226 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
182b09e679
commit
a84e98bd5f
6
Makefile
6
Makefile
|
@ -85,10 +85,12 @@ HOSTCC:=clang
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
strip_quotes = $(subst ",,$(subst \",,$(1)))
|
||||||
|
|
||||||
ARCHDIR-$(CONFIG_ARCH_X86) := i386
|
ARCHDIR-$(CONFIG_ARCH_X86) := i386
|
||||||
ARCHDIR-$(CONFIG_ARCH_POWERPC) := ppc
|
ARCHDIR-$(CONFIG_ARCH_POWERPC) := ppc
|
||||||
|
|
||||||
MAINBOARDDIR=$(subst ",,$(CONFIG_MAINBOARD_DIR))
|
MAINBOARDDIR=$(call strip_quotes,$(CONFIG_MAINBOARD_DIR))
|
||||||
export MAINBOARDDIR
|
export MAINBOARDDIR
|
||||||
|
|
||||||
PLATFORM-y += src/arch/$(ARCHDIR-y) src/cpu src/mainboard/$(MAINBOARDDIR)
|
PLATFORM-y += src/arch/$(ARCHDIR-y) src/cpu src/mainboard/$(MAINBOARDDIR)
|
||||||
|
@ -99,7 +101,7 @@ BUILD-y += util/cbfstool
|
||||||
BUILD-$(CONFIG_ARCH_X86) += src/pc80
|
BUILD-$(CONFIG_ARCH_X86) += src/pc80
|
||||||
|
|
||||||
ifneq ($(CONFIG_LOCALVERSION),"")
|
ifneq ($(CONFIG_LOCALVERSION),"")
|
||||||
COREBOOT_EXTRA_VERSION := -$(subst ",,$(CONFIG_LOCALVERSION))
|
COREBOOT_EXTRA_VERSION := -$(call strip_quotes,$(CONFIG_LOCALVERSION))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The primary target needs to be here before we include the
|
# The primary target needs to be here before we include the
|
||||||
|
|
|
@ -24,7 +24,8 @@ endif
|
||||||
ifeq ($(CONFIG_BOOTSPLASH),y)
|
ifeq ($(CONFIG_BOOTSPLASH),y)
|
||||||
COREBOOT_ROM_DEPENDENCIES+=$(CONFIG_FALLBACK_BOOTSPLASH_FILE)
|
COREBOOT_ROM_DEPENDENCIES+=$(CONFIG_FALLBACK_BOOTSPLASH_FILE)
|
||||||
endif
|
endif
|
||||||
$(obj)/coreboot.rom: $(obj)/coreboot.pre $(obj)/coreboot_ram $(CBFSTOOL) $(COREBOOT_ROM_DEPENDENCIES)
|
strip_quotes = $(subst ",,$(subst \",,$(1)))
|
||||||
|
$(obj)/coreboot.rom: $(obj)/coreboot.pre $(obj)/coreboot_ram $(CBFSTOOL) $(call strip_quotes,$(COREBOOT_ROM_DEPENDENCIES))
|
||||||
cp $(obj)/coreboot.pre $@.tmp
|
cp $(obj)/coreboot.pre $@.tmp
|
||||||
if [ -f fallback/coreboot_apc ]; \
|
if [ -f fallback/coreboot_apc ]; \
|
||||||
then \
|
then \
|
||||||
|
|
Loading…
Reference in New Issue