Skip to content

Commit 5eee5a6

Browse files
committed
rp2/Makefile: Use $(Q) prefix on all commands.
This prevents printing the lengthy command and makes the build output a little cleaner. Signed-off-by: Damien George <[email protected]>
1 parent a828b99 commit 5eee5a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ports/rp2/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ HELP_PICO_SDK_SUBMODULE ?= "\033[1;31mError: pico-sdk submodule is not initializ
6060
HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m"
6161

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

6767
clean:
6868
$(RM) -rf $(BUILD)
@@ -73,5 +73,5 @@ clean:
7373
# This is done in a dedicated build directory as some CMake cache values are not
7474
# set correctly if not all submodules are loaded yet.
7575
submodules:
76-
$(MAKE) -f ../../py/mkrules.mk GIT_SUBMODULES="lib/pico-sdk" submodules
77-
cmake -S . -B $(BUILD)/submodules -DUPDATE_SUBMODULES=1 ${CMAKE_ARGS}
76+
$(Q)$(MAKE) -f ../../py/mkrules.mk GIT_SUBMODULES="lib/pico-sdk" submodules
77+
$(Q)cmake -S . -B $(BUILD)/submodules -DUPDATE_SUBMODULES=1 ${CMAKE_ARGS}

0 commit comments

Comments
 (0)