Skip to content

Commit b65e891

Browse files
pi-anldpgeorge
authored andcommitted
py/py.mk: Add check that any specified USER_C_MODULES folder exists.
Signed-off-by: Andrew Leech <[email protected]>
1 parent 181800e commit b65e891

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/py.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ ifneq ($(USER_C_MODULES),)
3333
# pre-define USERMOD variables as expanded so that variables are immediate
3434
# expanded as they're added to them
3535

36+
# Confirm the provided path exists, show abspath if not to make it clearer to fix.
37+
$(if $(wildcard $(USER_C_MODULES)/.),,$(error USER_C_MODULES doesn't exist: $(abspath $(USER_C_MODULES))))
38+
3639
# C/C++ files that are included in the QSTR/module build
3740
SRC_USERMOD_C :=
3841
SRC_USERMOD_CXX :=

0 commit comments

Comments
 (0)