Skip to content

Commit

Permalink
Makefile: Add some error checking so invalid architectures don't try …
Browse files Browse the repository at this point in the history
…to build

Also disable parallel architecture builds
  • Loading branch information
NHellFire committed Dec 4, 2017
1 parent 2e83bbd commit abffb55
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ARCH ?= i586 ppc
ARCHLIST := $(patsubst buildroot/configs/dban_%_defconfig,%,$(wildcard buildroot/configs/dban_*_defconfig))
ARCH ?= $(ARCHLIST)

all: $(ARCH)

$(ARCH):
$(ARCHLIST):
@echo Building $@
make -C buildroot clean
make -C buildroot dban_$@_defconfig
Expand All @@ -12,4 +13,9 @@ $(ARCH):
clean:
make -C buildroot clean

.PHONY: clean
help:
@echo Available architectures: $(ARCHLIST)

.PHONY: clean help

.NOTPARALLEL:

0 comments on commit abffb55

Please sign in to comment.