Merge pull request #10970 from miri64/make/fix/pseudo-submodules
make: Allow for true pseudo-submodules
This commit is contained in:
commit
623381f9d3
@ -41,7 +41,7 @@ ifeq (1, $(SUBMODULES))
|
|||||||
BASE_MODULE ?= $(MODULE)
|
BASE_MODULE ?= $(MODULE)
|
||||||
|
|
||||||
# for each $(BASE_MODULE)_<name> in USEMODULE, add <name>.c to SRC
|
# for each $(BASE_MODULE)_<name> in USEMODULE, add <name>.c to SRC
|
||||||
SRC += $(patsubst $(BASE_MODULE)_%,%.c,$(filter $(BASE_MODULE)_%,$(USEMODULE)))
|
SRC += $(wildcard $(patsubst $(BASE_MODULE)_%,%.c,$(filter $(BASE_MODULE)_%,$(USEMODULE))))
|
||||||
|
|
||||||
# don't fail if a selected *.c file does not exist
|
# don't fail if a selected *.c file does not exist
|
||||||
ifeq (1, $(SUBMODULES_NOFORCE))
|
ifeq (1, $(SUBMODULES_NOFORCE))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user