diff options
author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2024-10-16 12:03:39 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-11-20 17:34:41 +1100 |
commit | b65e89107c0194bfdaf92720786341a2047f36b6 (patch) | |
tree | 458b4ded6b95e1ec722bce7f9014a70d4bdc3530 /py | |
parent | 181800eebde2f3dbda2862c175150d884eef728d (diff) | |
download | micropython-b65e89107c0194bfdaf92720786341a2047f36b6.tar.gz micropython-b65e89107c0194bfdaf92720786341a2047f36b6.zip |
py/py.mk: Add check that any specified USER_C_MODULES folder exists.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Diffstat (limited to 'py')
-rw-r--r-- | py/py.mk | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -33,6 +33,9 @@ ifneq ($(USER_C_MODULES),) # pre-define USERMOD variables as expanded so that variables are immediate # 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 SRC_USERMOD_C := SRC_USERMOD_CXX := |