Skip to content

Commit df7ed70

Browse files
committed
workflows: debos: Add input to use mainline kernel
This will allow limiting the builds where we use it. Signed-off-by: Loïc Minier <[email protected]>
1 parent 7e5b1f8 commit df7ed70

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

.github/workflows/debos.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: Build debos recipe
22

33
on:
44
workflow_call:
5+
inputs:
6+
mainline_kernel:
7+
description: Whether to use a mainline kernel deb
8+
required: true
9+
type: boolean
10+
default: true
11+
512
outputs:
613
artifacts_url:
714
description: "URL to retrieve build artifacts"
@@ -48,15 +55,17 @@ jobs:
4855
- name: Copy Linux deb and U-Boot for RB1 from fileserver space for downloads
4956
run: |
5057
set -ux
51-
mkdir -v debos-recipes/local-debs
5258
dir="/fileserver-downloads/qcom-deb-images"
53-
# copy linux-image but not the -dbg e.g.
54-
# linux-image-6.15.0-..._6.15.0...-1_arm64.deb but not
55-
# linux-image-6.15.0-...-dbg_6.15.0...-1_arm64.deb
56-
find "${dir}/linux-deb-latest/" \
57-
-name linux-image\*.deb \
58-
-not -name linux-image\*-dbg_\*.deb \
59-
-exec cp -av '{}' debos-recipes/local-debs/ \;
59+
if [ "${{ inputs.mainline_kernel }}" == true ]; then
60+
mkdir -v debos-recipes/local-debs
61+
# copy linux-image but not the -dbg e.g.
62+
# linux-image-6.15.0-..._6.15.0...-1_arm64.deb but not
63+
# linux-image-6.15.0-...-dbg_6.15.0...-1_arm64.deb
64+
find "${dir}/linux-deb-latest/" \
65+
-name linux-image\*.deb \
66+
-not -name linux-image\*-dbg_\*.deb \
67+
-exec cp -av '{}' debos-recipes/local-debs/ \;
68+
fi
6069
# copy U-Boot RB1 binary
6170
cp -av "${dir}/u-boot-rb1-latest/rb1-boot.img" .
6271
@@ -67,7 +76,11 @@ jobs:
6776
- name: Build rootfs with debos
6877
run: |
6978
set -ux
70-
debos -t xfcedesktop:true -t localdebs:local-debs/ \
79+
localdebs=""
80+
if [ -d debos-recipes/local-debs ]; then
81+
localdebs="-t localdebs:local-debs/"
82+
fi
83+
debos -t xfcedesktop:true ${localdebs} \
7184
debos-recipes/qualcomm-linux-debian-rootfs.yaml
7285
7386
- name: Build UFS and SD card images with debos

0 commit comments

Comments
 (0)