Skip to content

Commit 10b1834

Browse files
committed
py/py.mk: Ignore USER_C_MODULES check when building mpy-cross.
Signed-off-by: Andrew Leech <[email protected]>
1 parent bfb1bee commit 10b1834

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

py/py.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ 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.
36+
# Confirm the provided path exists, show abspath if not to make it clearer to fix. Check skipped for mpy-cross build.
37+
ifneq ($(PROG),mpy-cross)
3738
$(if $(wildcard $(USER_C_MODULES)/.),,$(error USER_C_MODULES doesn't exist: $(abspath $(USER_C_MODULES))))
39+
endif
40+
3841

3942
# C/C++ files that are included in the QSTR/module build
4043
SRC_USERMOD_C :=

0 commit comments

Comments
 (0)