diff options
| author | Angus Gratton <angus@redyak.com.au> | 2025-03-11 17:34:24 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-03-27 17:51:12 +1100 |
| commit | 50da085d93de55719198fb4fb1272f467e7a16a7 (patch) | |
| tree | d192585b3c8b12acdff71232c7ee04e7e77ab804 | |
| parent | cccac2cc0127eb43de4524c74424ecaaa594c80e (diff) | |
rp2: Print an error message if pico-sdk submodule is missing.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
| -rw-r--r-- | ports/rp2/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/rp2/Makefile b/ports/rp2/Makefile index bfc85f371..8cba521b2 100644 --- a/ports/rp2/Makefile +++ b/ports/rp2/Makefile @@ -56,9 +56,11 @@ ifdef MICROPY_PREVIEW_VERSION_2 CMAKE_ARGS += -DMICROPY_PREVIEW_VERSION_2=1 endif +HELP_PICO_SDK_SUBMODULE ?= "\033[1;31mError: pico-sdk submodule is not initialized.\033[0m Run 'make submodules'" HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m" all: + [ -f ../../lib/pico-sdk/README.md ] || (echo -e $(HELP_PICO_SDK_SUBMODULE); false) [ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS} $(MAKE) $(MAKE_ARGS) -C $(BUILD) || (echo -e $(HELP_BUILD_ERROR); false) |
