move --verbose setting into the makefile

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent b528e01a1e
commit 754161cf94
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -169,7 +169,6 @@ _find_sketch() {
exit 1 exit 1
} }
}
cmd_flash() { cmd_flash() {
@ -329,12 +328,6 @@ _read_conf_files
# shellcheck disable=SC1090 # shellcheck disable=SC1090
if [ -n "${VERBOSE}" ] && [[ "${VERBOSE}" -gt 0 ]]; then
ARDUINO_VERBOSE="--verbose"
else
ARDUINO_VERBOSE=""
fi
if [[ -z "${ARCH}" && -n "${FQBN}" ]]; then if [[ -z "${ARCH}" && -n "${FQBN}" ]]; then
ARCH=$(echo "${FQBN}" | sed -n -e 's/^[^:]\+:\([^:]\+\).*/\1/p') ARCH=$(echo "${FQBN}" | sed -n -e 's/^[^:]\+:\([^:]\+\).*/\1/p')
fi fi

@ -19,6 +19,12 @@ else
export ARDUINO_CLI ?= $(system_arduino_cli) export ARDUINO_CLI ?= $(system_arduino_cli)
endif endif
ifneq ($(VERBOSE),)
export ARDUINO_VERBOSE ?= --verbose
else
export ARDUINO_VERBOSE ?=
endif
.DEFAULT_GOAL := compile .DEFAULT_GOAL := compile
all: all:

Loading…
Cancel
Save