diff options
-rw-r--r-- | Makefile.rules | 6 | ||||
-rwxr-xr-x | util/make_all.sh | 10 |
2 files changed, 7 insertions, 9 deletions
diff --git a/Makefile.rules b/Makefile.rules index 7c0af672d0..16af68a096 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -12,6 +12,7 @@ build-utils := $(foreach u,$(build-util-bin),$(out)/util/$(u)) host-utils := $(foreach u,$(host-util-bin),$(out)/util/$(u)) build-srcs := $(foreach u,$(build-util-bin),$(sort $($(u)-objs:%.o=util/%.c) util/$(u).c)) host-srcs := $(foreach u,$(host-util-bin),$(sort $($(u)-objs:%.o=util/%.c) util/$(u).c)) +boards := $(filter-out host,$(subst board/,,$(wildcard board/*))) # Create output directories if necessary _dir_create := $(foreach d,$(dirs),$(shell [ -d $(out)/$(d) ] || \ @@ -61,6 +62,11 @@ targ_if_prog = $(if $(shell which $(1) 2>/dev/null),$(2),) .PHONY: all tests utils hosttests all: $(out)/$(PROJECT).bin utils +buildall: $(foreach b, $(boards), proj-$(b)) runtests +proj-%: + @echo "======= building $*"; \ + $(MAKE) --no-print-directory BOARD=$* V=$(V) + dis-y = $(out)/$(PROJECT).RO.dis $(out)/$(PROJECT).RW.dis dis: $(dis-y) diff --git a/util/make_all.sh b/util/make_all.sh index 33370eb260..852c9f12fd 100755 --- a/util/make_all.sh +++ b/util/make_all.sh @@ -6,12 +6,4 @@ # # Build all EC boards and run unit tests -# Build all boards except host -boards=$(ls -1 board | grep -v host) -for b in $boards; do - echo ======== building $b - make BOARD=$b $* -done - -# Run unit tests -make BOARD=host runtests $* +echo "$0 is deprecated. Please run 'make buildall' instead." |