1
0
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:
Martine Lenders 2019-02-08 12:08:38 +01:00 committed by Martine S. Lenders
parent 56bf778156
commit 744fbc5cad
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -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))