File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,23 @@ actions:
190190 /etc/apt/sources.list.d/debian-experimental.sources
191191{{- end }}
192192
193+ - action : run
194+ description : Create DTBs tarball
195+ chroot : false
196+ command : |
197+ set -eux
198+ # find the highest kernel version installed; kernels are backwards
199+ # compatible with older dtbs, so it would make sense to take dtbs from
200+ # the oldest available kernel as to allow all kernels to boot, but if
201+ # this image has pulled a more recent kernel, it's probably to gain
202+ # support for new hardware which would happen through new or updated dtbs
203+ # only in that new kernel, so use the latest dtbs
204+ latest_kernel="$(
205+ ls -d "$ROOTDIR"/usr/lib/linux-image-* | sort -V | tail -1)"
206+ tar -C "${latest_kernel}" -cvzf "$ARTIFACTDIR/dtbs.tar.gz" \
207+ qcom/qcs6490-rb3gen2.dtb \
208+ qcom/qrb2210-rb1.dtb
209+
193210 - action : pack
194211 description : Create root filesystem tarball
195212 file : rootfs.tar.gz
You can’t perform that action at this time.
0 commit comments