summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/rp2/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/rp2/Makefile b/ports/rp2/Makefile
index 6d2fc0096..c603f5403 100644
--- a/ports/rp2/Makefile
+++ b/ports/rp2/Makefile
@@ -22,9 +22,11 @@ ifeq ($(DEBUG),1)
CMAKE_ARGS += -DCMAKE_BUILD_TYPE=Debug
endif
+HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m"
+
all:
[ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS}
- $(MAKE) $(MAKESILENT) -C $(BUILD)
+ $(MAKE) $(MAKESILENT) -C $(BUILD) || (echo -e $(HELP_BUILD_ERROR); false)
clean:
$(RM) -rf $(BUILD)