Skip to content

Commit 31a1e2b

Browse files
projectgusdpgeorge
authored andcommitted
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 <[email protected]>
1 parent 160a481 commit 31a1e2b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ports/rp2/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#
33
# This is a simple wrapper around cmake
44

5+
include ../../py/verbose.mk
6+
57
# Select the board to build for:
68
ifdef BOARD_DIR
79
# Custom board path - remove trailing slash and get the final component of
@@ -28,7 +30,9 @@ else
2830
BUILD ?= build-$(BOARD)
2931
endif
3032

31-
$(VERBOSE)MAKESILENT = -s
33+
ifeq ($(BUILD_VERBOSE),1)
34+
MAKE_ARGS += VERBOSE=1 # Picked up in Makefile generated by CMake
35+
endif
3236

3337
CMAKE_ARGS += -DMICROPY_BOARD=$(BOARD) -DMICROPY_BOARD_DIR="$(abspath $(BOARD_DIR))"
3438

@@ -56,7 +60,7 @@ HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wi
5660

5761
all:
5862
[ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS}
59-
$(MAKE) $(MAKESILENT) -C $(BUILD) || (echo -e $(HELP_BUILD_ERROR); false)
63+
$(MAKE) $(MAKE_ARGS) -C $(BUILD) || (echo -e $(HELP_BUILD_ERROR); false)
6064

6165
clean:
6266
$(RM) -rf $(BUILD)

0 commit comments

Comments
 (0)