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>
This commit is contained in:
committed by
Damien George
parent
160a4812cd
commit
31a1e2b96d
@@ -2,6 +2,8 @@
|
|||||||
#
|
#
|
||||||
# This is a simple wrapper around cmake
|
# This is a simple wrapper around cmake
|
||||||
|
|
||||||
|
include ../../py/verbose.mk
|
||||||
|
|
||||||
# Select the board to build for:
|
# Select the board to build for:
|
||||||
ifdef BOARD_DIR
|
ifdef BOARD_DIR
|
||||||
# Custom board path - remove trailing slash and get the final component of
|
# Custom board path - remove trailing slash and get the final component of
|
||||||
@@ -28,7 +30,9 @@ else
|
|||||||
BUILD ?= build-$(BOARD)
|
BUILD ?= build-$(BOARD)
|
||||||
endif
|
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))"
|
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:
|
all:
|
||||||
[ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS}
|
[ -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:
|
clean:
|
||||||
$(RM) -rf $(BUILD)
|
$(RM) -rf $(BUILD)
|
||||||
|
|||||||
Reference in New Issue
Block a user