8000 rp2: Print an error message if pico-sdk submodule is missing. · micropython/micropython@50da085 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50da085

Browse files
projectgusdpgeorge
authored andcommitted
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>
1 parent cccac2c commit 50da085

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/rp2/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ ifdef MICROPY_PREVIEW_VERSION_2
5656
CMAKE_ARGS += -DMICROPY_PREVIEW_VERSION_2=1
5757
endif
5858

59+
HELP_PICO_SDK_SUBMODULE ?= "\033[1;31mError: pico-sdk submodule is not initialized.\033[0m Run 'make submodules'"
5960
HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m"
6061

6162
all:
63+
[ -f ../../lib/pico-sdk/README.md ] || (echo -e $(HELP_PICO_SDK_SUBMODULE); false)
6264
[ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS}
6365
$(MAKE) $(MAKE_ARGS) -C $(BUILD) || (echo -e $(HELP_BUILD_ERROR); false)
6466

0 commit comments

Comments
 (0)
0