Skip to content

Commit 6ab99f0

Browse files
committed
feat(debos): Generate contents.xml
Signed-off-by: Loïc Minier <[email protected]>
1 parent 2cae96c commit 6ab99f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ actions:
158158
(
159159
cd build/{{ $board.platform }}_ptool
160160
conf="${QCOM_PTOOL}/platforms/{{ $board.platform }}/partitions.conf"
161+
contents="${QCOM_PTOOL}/platforms/{{ $board.platform }}/contents.xml.in"
161162
disk_type="unknown"
162163
# make a copy of partitions.conf; infer storage type from lines
163164
# like:
@@ -220,6 +221,12 @@ actions:
220221
# generate ptool-partitions.xml from partitions.conf
221222
"${QCOM_PTOOL}/gen_partition.py" -i partitions.conf \
222223
-o ptool-partitions.xml
224+
# generate contents.xml from ptool-partitions.xml and contents.xml.in
225+
if [ -e "$contents" ]; then
226+
"${QCOM_PTOOL}/gen_contents.py" -p ptool-partitions.xml \
227+
-t "$contents" \
228+
-o contents.xml
229+
fi
223230
# generate flashing files from qcom-partitions.xml
224231
"${QCOM_PTOOL}/ptool.py" -x ptool-partitions.xml
225232
)

0 commit comments

Comments
 (0)