summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-12-03 11:22:49 +1100
committerDamien George <damien@micropython.org>2024-12-10 11:28:38 +1100
commit31a1e2b96decb9b5945461d808f725d40720d3c4 (patch)
tree49bfc96917fdf7464e7000e98ee4b936da80ac4c
parent160a4812cdd846f82f1f0bfb3798ada760d84d22 (diff)
rp2: Pass V=1 or BUILD_VERBOSE to rp2 build.
Similar to esp32. Previously rp2 could build verbose by passing VERBOSE=1, which is picked up by Makefiles generated from CMake. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-rw-r--r--ports/rp2/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/ports/rp2/Makefile b/ports/rp2/Makefile
index f950bc7b9..afa21cc7a 100644
--- a/ports/rp2/Makefile
+++ b/ports/rp2/Makefile
@@ -2,6 +2,8 @@
#
# This is a simple wrapper around cmake
+include ../../py/verbose.mk
+
# Select the board to build for:
ifdef BOARD_DIR
# Custom board path - remove trailing slash and get the final component of
@@ -28,7 +30,9 @@ else
BUILD ?= build-$(BOARD)
endif
-$(VERBOSE)MAKESILENT = -s
+ifeq ($(BUILD_VERBOSE),1)
+MAKE_ARGS += VERBOSE=1 # Picked up in Makefile generated by CMake
+endif
CMAKE_ARGS += -DMICROPY_BOARD=$(BOARD) -DMICROPY_BOARD_DIR="$(abspath $(BOARD_DIR))"
@@ -56,7 +60,7 @@ HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wi
all:
[ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS}
- $(MAKE) $(MAKESILENT) -C $(BUILD) || (echo -e $(HELP_BUILD_ERROR); false)
+ $(MAKE) $(MAKE_ARGS) -C $(BUILD) || (echo -e $(HELP_BUILD_ERROR); false)
clean:
$(RM) -rf $(BUILD)