summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/esp32/Makefile6
-rw-r--r--py/mkenv.mk17
-rw-r--r--py/verbose.mk16
3 files changed, 23 insertions, 16 deletions
diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile
index 4ad3cf026..888818076 100644
--- a/ports/esp32/Makefile
+++ b/ports/esp32/Makefile
@@ -2,6 +2,8 @@
#
# This is a simple, convenience wrapper around idf.py (which uses 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
@@ -61,6 +63,10 @@ ifdef MICROPY_PREVIEW_VERSION_2
IDFPY_FLAGS += -D MICROPY_PREVIEW_VERSION_2=1
endif
+ifeq ($(BUILD_VERBOSE),1)
+ IDFPY_FLAGS += --verbose
+endif
+
HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m"
define RUN_IDF_PY
diff --git a/py/mkenv.mk b/py/mkenv.mk
index b52dafbc9..4656d1136 100644
--- a/py/mkenv.mk
+++ b/py/mkenv.mk
@@ -12,22 +12,7 @@ endif
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
TOP := $(patsubst %/py/mkenv.mk,%,$(THIS_MAKEFILE))
-# Turn on increased build verbosity by defining BUILD_VERBOSE in your main
-# Makefile or in your environment. You can also use V=1 on the make command
-# line.
-
-ifeq ("$(origin V)", "command line")
-BUILD_VERBOSE=$(V)
-endif
-ifndef BUILD_VERBOSE
-$(info Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.)
-BUILD_VERBOSE = 0
-endif
-ifeq ($(BUILD_VERBOSE),0)
-Q = @
-else
-Q =
-endif
+include $(TOP)/py/verbose.mk
# default settings; can be overridden in main Makefile
diff --git a/py/verbose.mk b/py/verbose.mk
new file mode 100644
index 000000000..734623a21
--- /dev/null
+++ b/py/verbose.mk
@@ -0,0 +1,16 @@
+# Turn on increased build verbosity by defining BUILD_VERBOSE in your main
+# Makefile or in your environment. You can also use V=1 on the make command
+# line.
+
+ifeq ("$(origin V)", "command line")
+BUILD_VERBOSE=$(V)
+endif
+ifndef BUILD_VERBOSE
+$(info Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.)
+BUILD_VERBOSE = 0
+endif
+ifeq ($(BUILD_VERBOSE),0)
+Q = @
+else
+Q =
+endif