Skip to content

Commit 71d0e86

Browse files
authored
Merge pull request #206 from lool/lemans-evk
2 parents 5219b84 + 8c2709b commit 71d0e86

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

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

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ architecture: arm64
1515
actions:
1616
- action: download
1717
description: Download qcom-ptool
18-
url: https://github.com/qualcomm-linux/qcom-ptool/archive/abf334c24cb24140a8b5c4cc99b633a119244639.tar.gz
18+
url: https://github.com/qualcomm-linux/qcom-ptool/archive/8ed8d47982228e4fe21fdc670318fc083d8e7614.tar.gz
1919
name: qcom-ptool
2020
filename: qcom-ptool.tar.gz
2121
unpack: true
@@ -113,6 +113,27 @@ actions:
113113
"cdt_filename" "cdt_ride_sx.bin"
114114
"dtb" "qcom/qcs9100-ride-r3.dtb"
115115
)}}
116+
{{- $boards = append $boards (dict
117+
"name" "lemans-evk"
118+
"silicon_family" "qcs9075"
119+
"platform" "iq-9075-evk/ufs"
120+
"boot_binaries_download" (dict
121+
"description" "QCS9100 boot binaries"
122+
"url" "https://softwarecenter.qualcomm.com/download/software/chip/qualcomm_linux-spf-1-0/qualcomm-linux-spf-1-0_test_device_public/r1.0_00095.0/qcs9100-le-1-0/common/build/ufs/bin/QCS9100_bootbinaries.zip"
123+
"name" "qcs9100_boot-binaries"
124+
"filename" "qcs9100_boot-binaries.zip"
125+
"sha256sum" "c201c9e966a706c9e76685ff4298f0940958c4d4877299eee1248ef26b809aa0"
126+
)
127+
"cdt_download" (dict
128+
"description" "QCS9100 RB8 Core Kit CDT"
129+
"url" "https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/QCS9100/cdt/rb8_core_kit.zip"
130+
"name" "qcs9100-rb8-core-kit_cdt"
131+
"filename" "qcs9100-rb8-core-kit_cdt.zip"
132+
"sha256sum" "a252244f800d7c9e15883e12935af4113f9f2ecba6490e46cd9b943169f15bfa"
133+
)
134+
"cdt_filename" "cdt_rb8_core_kit.bin"
135+
"dtb" "qcom/lemans-evk.dtb"
136+
)}}
116137
{{- end }}
117138
{{- if eq $build_rb1 "true" }}
118139
{{- $boards = append $boards (dict
@@ -127,6 +148,7 @@ actions:
127148
"sha256sum" "c75b6c63eb24c8ca36dad08ba4d4e93f3f4cd7dce60cf1b6dfb5790dc181cc3d"
128149
)
129150
"u_boot_file" .u_boot_rb1
151+
"dtb" "qcom/qrb2210-rb1.dtb"
130152
)}}
131153
{{- end }}
132154

@@ -206,13 +228,13 @@ actions:
206228
skip_board=true
207229
echo "Skipping board {{ $board.name }}: not in target list"
208230
fi
209-
{{- if $board.dtb }}
210-
# set skip_board if board has a dtb and dtb isn't present
231+
232+
# set skip_board if board dtb isn't present
211233
if ! grep -Fxq "{{ $board.dtb }}" "${dtbs_file}"; then
212234
skip_board=true
213235
echo "Skipping board {{ $board.name }}: dtb not available"
214236
fi
215-
{{- end }}
237+
216238

217239
# unpack boot binaries
218240
mkdir -v build/{{ $board.name }}_boot-binaries
@@ -294,14 +316,8 @@ actions:
294316
if [ -e "$contents" ]; then
295317
"${QCOM_PTOOL}/gen_contents.py" -p ptool-partitions.xml \
296318
-t "$contents" \
319+
-b "{{$buildid}}" \
297320
-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
305321
fi
306322
# generate flashing files from qcom-partitions.xml
307323
"${QCOM_PTOOL}/ptool.py" -x ptool-partitions.xml
@@ -373,7 +389,6 @@ actions:
373389
fi
374390
{{- end }}
375391

376-
{{- if $board.dtb }}
377392
if [ "${skip_board}" = false ]; then
378393
# generate a dtb.bin FAT partition with just a single dtb for the
379394
# current board; long-term this should really be a set of dtbs and
@@ -394,7 +409,6 @@ actions:
394409
mcopy -vmp -i "${dtb_bin}" "build/{{ $board.dtb }}" \
395410
::/combined-dtb.dtb
396411
fi
397-
{{- end }}
398412
{{- end }}
399413

400414
# cleanup

0 commit comments

Comments
 (0)