Skip to content

Commit 686d839

Browse files
committed
rootfs: Create a tarball with DTBs
Signed-off-by: Loïc Minier <[email protected]>
1 parent c67646d commit 686d839

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)