make BOARD=all will build all board configuration targets

This commit is contained in:
Trammell hudson 2018-08-13 11:40:17 -04:00
parent 2bcbd0bfe0
commit 1a34183462
Failed to extract signature

View File

@ -32,6 +32,19 @@ ifneq "" "$(filter $(make_version)%,$(LOCAL_MAKE_VERSION))"
# This is the correct version of Make
BOARD ?= qemu-coreboot
ifeq "$(BOARD)" "all"
# Special case for building all supported boards
ALL-BOARDS := $(shell ls boards/)
all:
for board in $(ALL-BOARDS); do \
echo "------- $$board ------" ; \
$(MAKE) BOARD=$$board ; \
done
else
# Building a specific board
CONFIG := $(pwd)/boards/$(BOARD)/$(BOARD).config
# Create the board output directory if it doesn't already exist
@ -547,7 +560,7 @@ real.clean:
done
rm -rf ./install
endif
else
# Wrong make version detected -- build our local version
# and re-invoke the Makefile with it instead.