Skip to content

Commit

Permalink
config: chromeos: Add ChromiumOS tree and Clang kbuild jobs
Browse files Browse the repository at this point in the history
Add the ChromiumOS kernel tree (branches 5.4 to 6.12) and define new
Clang kbuild jobs for both ARM64 and x86_64 Chromebooks.

Signed-off-by: Laura Nao <[email protected]>
  • Loading branch information
laura-nao committed Feb 5, 2025
1 parent f008354 commit 0e8a9b9
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
70 changes: 70 additions & 0 deletions config/jobs-chromeos.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
_anchors:
kbuild-clang-17-chromeos:
params: &kbuild-clang-17-chromeos-params
compiler: clang-17
defconfig: 'cros://chromeos-{krev}/{crosarch}/chromiumos-{flavour}.flavour.config'
flavour: '{crosarch}-generic'
kselftest: disable

kbuild-clang-17-arm64-chromeos: &kbuild-clang-17-arm64-chromeos-job
template: kbuild.jinja2
kind: kbuild
image: ghcr.io/kernelci/{image_prefix}clang-17:arm64-kselftest-kernelci
params: &kbuild-clang-17-arm64-chromeos-params
<<: *kbuild-clang-17-chromeos-params
arch: arm64
cross_compile: 'aarch64-linux-gnu-'
fragments:
- lab-setup
- arm64-chromebook
- CONFIG_MODULE_COMPRESS=n
- CONFIG_MODULE_COMPRESS_NONE=y
rules: &kbuild-clang-17-arm64-chromeos-rules
tree:
- chromiumos

kbuild-clang-17-x86-chromeos: &kbuild-clang-17-x86-chromeos-job
<<: *kbuild-clang-17-arm64-chromeos-job
image: ghcr.io/kernelci/{image_prefix}clang-17:x86-kselftest-kernelci
params: &kbuild-clang-17-x86-chromeos-params
<<: *kbuild-clang-17-chromeos-params
arch: x86_64
fragments:
- lab-setup
- x86-board
- CONFIG_MODULE_COMPRESS=n
- CONFIG_MODULE_COMPRESS_NONE=y
rules: &kbuild-clang-17-x86-chromeos-rules
<<: *kbuild-clang-17-arm64-chromeos-rules

kbuild-gcc-12-arm64-chromeos: &kbuild-gcc-12-arm64-chromeos-job
template: kbuild.jinja2
Expand Down Expand Up @@ -572,6 +609,39 @@ jobs:
baseline-x86-amd-staging-chromebook: *baseline-job
baseline-x86-intel-chromebook: *baseline-job

kbuild-clang-17-arm64-chromeos-mediatek:
<<: *kbuild-clang-17-arm64-chromeos-job
params:
<<: *kbuild-clang-17-arm64-chromeos-params
flavour: mediatek
rules:
<<: *kbuild-clang-17-arm64-chromeos-rules
min_version:
version: 5
patchlevel: 10

kbuild-clang-17-arm64-chromeos-qualcomm:
<<: *kbuild-clang-17-arm64-chromeos-job
params:
<<: *kbuild-clang-17-arm64-chromeos-params
flavour: qualcomm
rules:
<<: *kbuild-clang-17-arm64-chromeos-rules
branch:
- 'chromeos-6.6'

kbuild-clang-17-x86-chromeos-amd:
<<: *kbuild-clang-17-x86-chromeos-job
params:
<<: *kbuild-clang-17-x86-chromeos-params
flavour: amd-stoneyridge

kbuild-clang-17-x86-chromeos-intel:
<<: *kbuild-clang-17-x86-chromeos-job
params:
<<: *kbuild-clang-17-x86-chromeos-params
flavour: intel-pineview

kbuild-gcc-12-arm64-chromebook:
<<: *kbuild-gcc-12-arm64-chromeos-job
params:
Expand Down
30 changes: 30 additions & 0 deletions config/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ _anchors:
rules:
tree:
- '!android'
- '!chromiumos'

kbuild-clang-17-arm64-job: &kbuild-clang-17-arm64-job
<<: *kbuild-job
Expand Down Expand Up @@ -230,6 +231,7 @@ runtimes:
rules:
tree:
- '!android'
- '!chromiumos'

lava-cip:
lab_type: lava
Expand Down Expand Up @@ -1433,6 +1435,7 @@ jobs:
rules:
tree:
- '!android'
- '!chromiumos'

kbuild-gcc-12-x86-kselftest:
<<: *kbuild-gcc-12-x86-job
Expand Down Expand Up @@ -1938,6 +1941,9 @@ trees:
chrome-platform:
url: "https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git"

chromiumos:
url: "https://chromium.googlesource.com/chromiumos/third_party/kernel"

cip:
url: "https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git"

Expand Down Expand Up @@ -3430,6 +3436,30 @@ build_configs:
tree: chrome-platform
branch: 'for-firmware-next'

chromiumos-5.4: &chromiumos
tree: chromiumos
branch: 'chromeos-5.4'

chromiumos-5.10:
<<: *chromiumos
branch: 'chromeos-5.10'

chromiumos-5.15:
<<: *chromiumos
branch: 'chromeos-5.15'

chromiumos-6.1:
<<: *chromiumos
branch: 'chromeos-6.1'

chromiumos-6.6:
<<: *chromiumos
branch: 'chromeos-6.6'

chromiumos-6.12:
<<: *chromiumos
branch: 'chromeos-6.12'

cip-4.4:
tree: cip
branch: 'linux-4.4.y-cip'
Expand Down

0 comments on commit 0e8a9b9

Please sign in to comment.