make: Reduce build output
Default to silent builds, only outputting the file being generated. This gives output similar to Linux/coreboot output when building. `VERBOSE=1` can be passed to show the actual commands. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Tim Crawford
parent
2056d4d5e0
commit
b03c960b4f
12
Makefile
12
Makefile
@@ -5,6 +5,11 @@
|
||||
# Disable built-in rules and variables
|
||||
MAKEFLAGS += -rR
|
||||
|
||||
# Default to silent builds
|
||||
ifneq ($(VERBOSE),1)
|
||||
MAKEFLAGS += -s
|
||||
endif
|
||||
|
||||
# Parameter for current board
|
||||
ifeq ($(BOARD),)
|
||||
all:
|
||||
@@ -20,11 +25,12 @@ REV=$(shell git describe --abbrev=7 --always --dirty)
|
||||
VERSION?=$(DATE)_$(REV)
|
||||
|
||||
# Set build directory
|
||||
BUILD=build/$(BOARD)/$(VERSION)
|
||||
obj = build
|
||||
BUILD = $(obj)/$(BOARD)/$(VERSION)
|
||||
|
||||
# Default target - build the board's EC firmware
|
||||
all: $(BUILD)/ec.rom
|
||||
$(info Built '$(VERSION)' for '$(BOARD)')
|
||||
$(info Built $(VERSION) for $(BOARD))
|
||||
|
||||
# Include common source
|
||||
COMMON_DIR=src/common
|
||||
@@ -65,4 +71,4 @@ endif
|
||||
|
||||
# Target to remove build artifacts
|
||||
clean:
|
||||
rm -rf build
|
||||
rm -rf $(obj)
|
||||
|
Reference in New Issue
Block a user