mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
make BOARD=all
will build all board configuration targets
This commit is contained in:
parent
2bcbd0bfe0
commit
1a34183462
15
Makefile
15
Makefile
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user