@@ -3,6 +3,10 @@ name: Build debos recipe
33on :
44 workflow_call :
55 inputs :
6+ suite :
7+ description : Distribution suite (e.g. trixie, forky)
8+ type : string
9+ default : trixie
610 overlays :
711 description : List of overlays to use
812 type : string
1317 linux-image-arm64) or name of a EFS kernel package directory
1418 (e.g. efs/mainline)
1519 type : string
16- # the package name will be passed to APT which interprets the trailing
17- # plus sign in the package name as a request to install the package, so
18- # use two plus signs
19- default : linux-image-6.16.7-qcom1++
20+ default : default-ci
2021 debos_extra_args :
2122 description : Extra arguments to pass to debos (e.g. -t dtb:qcom/some.dtb)
2223 type : string
4041 # image build id; used for SBOM generation
4142 BUILD_ID : ${{ github.run_id }}-${{ github.run_attempt }}
4243 KERNEL_PACKAGE : ${{ inputs.kernelpackage }}
43- DEBOS_EXTRA_ARGS : ${{ inputs.debos_extra_args }}
44+ DEBOS_EXTRA_ARGS : -t suite:${{ inputs.suite }} ${{ inputs.debos_extra_args }}
45+ PREFIX : ${{ inputs.suite }}
4446
4547jobs :
4648 build-debos :
47- name : Build and upload debos recipes
49+ name : Build and upload debos recipes (${{ inputs.suite }})
4850 outputs :
4951 url : ${{ steps.upload_artifacts_s3.outputs.url }}
5052 runs-on : [self-hosted, qcom-u2404, arm64]
@@ -101,11 +103,17 @@ jobs:
101103 run : |
102104 set -ux
103105 kernel_package="$KERNEL_PACKAGE"
104- # if kernel package is from EFS, determine actual package name
105106 case "$kernel_package" in
107+ # if kernel package is from EFS, determine actual package name
106108 efs/*)
107109 kernel_package="$(find local-apt-repo/kernel -type f -name 'linux-image-*' -not -name '*dbg*'|xargs -n1 basename|cut -f1 -d_)"
108- ;;
110+ ;;
111+ default-ci)
112+ # the package name will be passed to APT which interprets the trailing
113+ # plus sign in the package name as a request to install the package, so
114+ # use two plus signs
115+ kernel_package="linux-image-6.16.7-qcom1++"
116+ ;;
109117 esac
110118
111119 debos \
@@ -141,13 +149,13 @@ jobs:
141149 # create a directory for the current run
142150 dir="debos-artifacts"
143151 mkdir -v "${dir}"
144- # compress output files into the staging directory
145- gzip -c rootfs.tar >"${dir}/rootfs.tar.gz"
146- gzip -c disk-ufs.img >"${dir}/disk-ufs.img.gz"
147- gzip -c disk-sdcard.img >"${dir}/disk-sdcard.img.gz"
148- cp -av dtbs.tar.gz "${dir}"
152+ # compress output files directly into the staging directory
153+ gzip -c rootfs.tar >"${dir}/${PREFIX}- rootfs.tar.gz"
154+ gzip -c disk-ufs.img >"${dir}/${PREFIX}- disk-ufs.img.gz"
155+ gzip -c disk-sdcard.img >"${dir}/${PREFIX}- disk-sdcard.img.gz"
156+ cp -av dtbs.tar.gz "${dir}/${PREFIX}-dtbs.tar.gz "
149157 # create tarballs with support for all UFS and all eMMC boards
150- scripts/bundle-flash-dirs.sh "${dir}"
158+ scripts/bundle-flash-dirs.sh "${dir}" "${PREFIX}"
151159 # generate sha256sums for all artifacts
152160 (cd "${dir}" && sha256sum * | tee sha256sums.txt)
153161
@@ -202,7 +210,7 @@ jobs:
202210 dir="sboms"
203211 mkdir -v sboms
204212 for f in rootfs-sbom.*; do
205- gzip -c "$f" >"${dir}/${f}.gz"
213+ gzip -c "$f" >"${dir}/${PREFIX}-${ f}.gz"
206214 done
207215
208216 - name : Upload SBOMs as private artifacts
0 commit comments