From b2f498f7da4ad904a16e8f2c5211611fb1f9f365 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Sat, 28 Apr 2018 19:57:00 +0800 Subject: [PATCH] build: allow EXCLUDE_COMPONENTS to contain quotes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'dequote' macro can’t be used at this point yet, use subst directly. Also prevent EXCLUDE_COMPONENTS from being passed to bootloader build. --- components/bootloader/Makefile.projbuild | 3 ++- make/project.mk | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/bootloader/Makefile.projbuild b/components/bootloader/Makefile.projbuild index 7876635cc..1d569bab3 100644 --- a/components/bootloader/Makefile.projbuild +++ b/components/bootloader/Makefile.projbuild @@ -32,7 +32,8 @@ BOOTLOADER_MAKE= +\ V=$(V) \ BUILD_DIR_BASE=$(BOOTLOADER_BUILD_DIR) \ TEST_COMPONENTS= \ - TESTS_ALL= + TESTS_ALL= \ + EXCLUDE_COMPONENTS= .PHONY: bootloader-clean bootloader-flash bootloader-list-components bootloader $(BOOTLOADER_BIN) diff --git a/make/project.mk b/make/project.mk index 01b29bcb3..636e46fc3 100644 --- a/make/project.mk +++ b/make/project.mk @@ -153,7 +153,8 @@ COMPONENTS := $(sort $(foreach comp,$(COMPONENTS),$(lastword $(subst /, ,$(comp) endif # After a full manifest of component names is determined, subtract the ones explicitly omitted by the project Makefile. ifdef EXCLUDE_COMPONENTS -COMPONENTS := $(filter-out $(EXCLUDE_COMPONENTS), $(COMPONENTS)) +COMPONENTS := $(filter-out $(subst ",,$(EXCLUDE_COMPONENTS)), $(COMPONENTS)) +# to keep syntax highlighters happy: ")) endif export COMPONENTS