Skip to content

Commit 590c061

Browse files
committed
py/py.mk: Add check that any specified USER_C_MODULES folder exists.
Signed-off-by: Andrew Leech <[email protected]>
1 parent 838f212 commit 590c061

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/py.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ 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+
$(if $(wildcard $(USER_C_MODULES)/.),,$(error USER_C_MODULES doesn't exist: $(abspath $(USER_C_MODULES))))
37+
3638
# C/C++ files that are included in the QSTR/module build
3739
SRC_USERMOD_C :=
3840
SRC_USERMOD_CXX :=

0 commit comments

Comments
 (0)