Skip to content

Commit a6ae1c2

Browse files
committed
refactor(debos/flash): Use new ptool build id flag
Recent ptool versions support passing the build-id when generating contents.xml files, drop our custom logic. Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com>
1 parent 54cfff2 commit a6ae1c2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,8 @@ actions:
294294
if [ -e "$contents" ]; then
295295
"${QCOM_PTOOL}/gen_contents.py" -p ptool-partitions.xml \
296296
-t "$contents" \
297+
-b "{{$buildid}}" \
297298
-o contents.xml
298-
# XXX insert build_id element before windows_root_path;
299-
# this will be nicer to do when gen_contents.py supports
300-
# setting this; see also:
301-
# https://github.com/qualcomm-linux/qcom-ptool/pull/38
302-
sed -i \
303-
"/windows_root_path/ i \t\t\t\t<build_id>{{$buildid}}</build_id>" \
304-
contents.xml
305299
fi
306300
# generate flashing files from qcom-partitions.xml
307301
"${QCOM_PTOOL}/ptool.py" -x ptool-partitions.xml

0 commit comments

Comments
 (0)