Skip to content

Commit e59b578

Browse files
committed
Makefile: support optional build_id for contents.xml generation
Add support for passing an optional `build_id` argument to the Makefile, which in turn used by gen_contents.py to add unique build_id into the generated `contents.xml`, as required by Axiom. Signed-off-by: Viswanath Kraleti <[email protected]>
1 parent 4b77d21 commit e59b578

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ CONTENTS_XML := $(patsubst %.xml.in,%.xml, $(CONTENTS_XML_IN))
88
BINS := gen_contents.py gen_partition.py msp.py ptool.py
99
PREFIX ?= /usr/local
1010

11+
# optional build_id for Axiom contents.xml files
12+
BUILD_ID ?=
13+
1114
.PHONY: all check clean lint integration
1215

1316
all: $(PLATFORMS) $(PARTITIONS_XML) $(CONTENTS_XML)
@@ -19,7 +22,7 @@ all: $(PLATFORMS) $(PARTITIONS_XML) $(CONTENTS_XML)
1922
$(TOPDIR)/gen_partition.py -i $^ -o $@
2023

2124
%/contents.xml: %/partitions.xml %/contents.xml.in
22-
$(TOPDIR)/gen_contents.py -p $< -t $@.in -o $@
25+
$(TOPDIR)/gen_contents.py -p $< -t $@.in -o $@ $${BUILD_ID:+ -b $(BUILD_ID)}
2326

2427
lint:
2528
# W605: invalid escape sequence

0 commit comments

Comments
 (0)