Skip to content

Commit d47f7cb

Browse files
committed
fix: Add build_id element to contents.xml
This should be a gen_contents.py flag, but in the meantime, fix the contents.xml files to allow Axiom testing. Signed-off-by: Loïc Minier <[email protected]>
1 parent ec8417d commit d47f7cb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/debos.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ jobs:
117117
- name: Build flashable files with debos
118118
run: |
119119
set -ux
120-
debos -t u_boot_rb1:rb1-boot.img \
120+
debos \
121+
-t u_boot_rb1:rb1-boot.img \
122+
-t "buildid:${BUILD_ID}" \
121123
--print-recipe \
122124
debos-recipes/qualcomm-linux-debian-flash.yaml
123125

debos-recipes/qualcomm-linux-debian-flash.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{{- if .u_boot_rb1 -}}
66
{{- $build_rb1 = "true" }}
77
{{- end -}}
8+
{{- $buildid := or .buildid "" }}
89

910
architecture: arm64
1011

@@ -227,6 +228,12 @@ actions:
227228
-t "$contents" \
228229
-o contents.xml
229230
fi
231+
# XXX insert build_id element before windows_root_path; this will be
232+
# nicer to do when gen_contents.py supports setting this;
233+
# https://github.com/qualcomm-linux/qcom-ptool/pull/38
234+
sed -i \
235+
"/windows_root_path/ i \t\t\t\t<build_id>{{$buildid}}</build_id>" \
236+
contents.xml
230237
# generate flashing files from qcom-partitions.xml
231238
"${QCOM_PTOOL}/ptool.py" -x ptool-partitions.xml
232239
)

0 commit comments

Comments
 (0)