mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: Allow for true pseudo-submodules
When providing a pseudo-submodule for a module already using the `SUBMODULES` mechanism to provide submodules, it is not possible to create a true pseudo-module as submodule (i.e. one without any code on its own), since the build system currently always expects there to be a C file `module_submodule.c`. This removes this requirement.
This commit is contained in:
parent
56bf778156
commit
744fbc5cad
@ -31,7 +31,7 @@ ifeq (1, $(SUBMODULES))
|
||||
BASE_MODULE ?= $(MODULE)
|
||||
|
||||
# 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
|
||||
ifeq (1, $(SUBMODULES_NOFORCE))
|
||||
|
Loading…
Reference in New Issue
Block a user