Skip to content

Commit 0dd4638

Browse files
committed
Makefile: generate contents.xml for supported platforms
For platforms with a contents.in avilable, generate contents.xml from it using gen_contents.py Signed-off-by: Viswanath Kraleti <[email protected]>
1 parent 4a8cd2b commit 0dd4638

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
TOPDIR := $(PWD)
22
PLATFORMS := $(foreach platform,$(wildcard platforms/*),$(platform)/gpt)
3-
BINS := gen_partition.py msp.py ptool.py
3+
CONTENTS := $(foreach template,$(wildcard platforms/*/contents.in), $(patsubst %.in,%,$(template)))
4+
BINS := gen_contents.py gen_partition.py msp.py ptool.py
45
PREFIX ?= /usr/local
56

67
.PHONY: all check clean lint integration
78

8-
all: $(PLATFORMS)
9+
all: $(PLATFORMS) $(CONTENTS)
910

1011
%/gpt: %/partitions.xml
1112
cd $(shell dirname $^) && $(TOPDIR)/ptool.py -x partitions.xml
1213

1314
%/partitions.xml: %/partitions.conf
1415
$(TOPDIR)/gen_partition.py -i $^ -o $@
1516

17+
%/contents: %/partitions.xml
18+
$(TOPDIR)/gen_contents.py -p $^ -t $@.in -o $@.xml
19+
1620
lint:
1721
# W605: invalid escape sequence
1822
pycodestyle --select=W605 *.py

0 commit comments

Comments
 (0)