build-sys: silence make by default or V=0

Move generic make flags in MAKEFLAGS (SUBDIR_MAKEFLAGS is more qemu specific).

Use --quiet to silence make 'is up to date' message.

Backports commit 42a77f1ce4934b243df003f95bda88530631387a from qemu
This commit is contained in:
Marc-André Lureau 2018-03-06 08:57:54 -05:00 committed by Lioncash
parent b658f1f36c
commit cf80a410a9
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 3 additions and 1 deletions

View file

@ -58,7 +58,7 @@ $(call set-vpath, $(SRC_PATH))
LIBS+=-lz $(LIBS_TOOLS) LIBS+=-lz $(LIBS_TOOLS)
SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR) SUBDIR_MAKEFLAGS=BUILD_DIR=$(BUILD_DIR)
SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %-config-devices.mak.d, $(TARGET_DIRS)) SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %-config-devices.mak.d, $(TARGET_DIRS))

View file

@ -119,6 +119,8 @@ modules:
quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))
MAKEFLAGS += $(if $(V),,--no-print-directory --quiet)
# cc-option # cc-option
# Usage: CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) # Usage: CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)