Skip to content

Commit 14c16d8

Browse files
committed
fix(debos/flash): Fix root_path in contents.xml
Use board specific subdirectories in windows_ and linux_root_path. Signed-off-by: Loïc Minier <[email protected]>
1 parent 428befd commit 14c16d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ actions:
238238
# copy platform partition files
239239
cp --preserve=mode,timestamps -v build/ptool/{{ $board.platform }}/* \
240240
"${flash_dir}"
241+
# adjust path to use board-specific flash_* subdir
242+
sed -i \
243+
-e ":<windows_root_path>.*:<windows_root_path>.\\\\${flash_dir}\\\\</<windows_root_path>:" \
244+
-e ":<linux_root_path>.*:<linux_root_path>./${flash_dir}/</<linux_root_path>:" \
245+
contents.xml
241246
# remove BLANK_GPT and WIPE_PARTITIONS files as it's common for people
242247
# to run "qdl rawprogram*.xml", mistakingly including these; perhaps
243248
# ptool should have a flag not to generate these; note that there are

0 commit comments

Comments
 (0)