py/py.mk: Add check that any specified USER_C_MODULES folder exists.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
This commit is contained in:
committed by
Damien George
parent
181800eebd
commit
b65e89107c
3
py/py.mk
3
py/py.mk
@@ -33,6 +33,9 @@ ifneq ($(USER_C_MODULES),)
|
|||||||
# pre-define USERMOD variables as expanded so that variables are immediate
|
# pre-define USERMOD variables as expanded so that variables are immediate
|
||||||
# expanded as they're added to them
|
# expanded as they're added to them
|
||||||
|
|
||||||
|
# Confirm the provided path exists, show abspath if not to make it clearer to fix.
|
||||||
|
$(if $(wildcard $(USER_C_MODULES)/.),,$(error USER_C_MODULES doesn't exist: $(abspath $(USER_C_MODULES))))
|
||||||
|
|
||||||
# C/C++ files that are included in the QSTR/module build
|
# C/C++ files that are included in the QSTR/module build
|
||||||
SRC_USERMOD_C :=
|
SRC_USERMOD_C :=
|
||||||
SRC_USERMOD_CXX :=
|
SRC_USERMOD_CXX :=
|
||||||
|
|||||||
Reference in New Issue
Block a user