Skip to content

Commit 4ed6011

Browse files
committed
debos: flash: Add build_qcm6490 conditional
Allows skipping QCM6490 when working on other platforms. Signed-off-by: Loïc Minier <[email protected]>
1 parent c58a215 commit 4ed6011

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
@@ -1,3 +1,4 @@
1+
{{- $build_qcm6490 := or .build_qcm6490 "true" }}
12
{{- $build_rb1 := "false" -}}
23
{{- if .u_boot_rb1 -}}
34
{{- $build_rb1 = "true" }}
@@ -22,17 +23,21 @@ actions:
2223
filename: qrb2210-rb1_rescue-image.zip
2324
{{- end }}
2425

26+
{{- if eq $build_qcm6490 "true" }}
2527
- action: download
2628
description: Download QCM6490 boot binaries
2729
url: https://softwarecenter.qualcomm.com/download/software/chip/qualcomm_linux-spf-1-0/qualcomm-linux-spf-1-0_test_device_public/r1.0_00075.0/qcm6490-le-1-0/common/build/ufs/bin/QCM6490_bootbinaries.zip
2830
name: qcm6490_boot-binaries
2931
filename: qcm6490_boot-binaries.zip
32+
{{- end }}
3033

34+
{{- if eq $build_qcm6490 "true" }}
3135
- action: download
3236
description: Download RB3 Gen2 Vision Kit CDT
3337
url: https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/QCS6490/cdt/rb3gen2-vision-kit.zip
3438
name: rb3gen2-vision-kit_cdt
3539
filename: rb3gen2-vision-kit_cdt.zip
40+
{{- end }}
3641

3742
- action: run
3843
description: Generate flash directories for eMMC and UFS boards
@@ -82,6 +87,7 @@ actions:
8287
# rb1-bootloader-emmc-linux-47528.zip
8388
{{- end }}
8489

90+
{{- if eq $build_qcm6490 "true" }}
8591
## platform: QCM6490
8692
# unpack boot binaries
8793
unzip -j "${ROOTDIR}/../qcm6490_boot-binaries.zip" \
@@ -178,6 +184,7 @@ actions:
178184
sed -i \
179185
'/label="rootfs"/s#filename="[^"]*"#filename="../disk-ufs.img2"#' \
180186
"${flash_dir}"/rawprogram*.xml
187+
{{- end }}
181188

182189
# cleanup
183190
rm -rf build

0 commit comments

Comments
 (0)