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 11, 2025
1 parent f008354 commit a7649da
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 1 deletion.
95 changes: 94 additions & 1 deletion 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 @@ -33,7 +70,7 @@ _anchors:
- x86-board
- CONFIG_MODULE_COMPRESS=n
- CONFIG_MODULE_COMPRESS_NONE=y
rules:
rules: &kbuild-gcc-12-x86-chromeos-rules
tree:
- '!android'

Expand Down Expand Up @@ -572,12 +609,56 @@ 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
branch:
- '!chromiumos:chromeos-5.4'
- '!chromiumos:chromeos-6.6'

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
rules:
<<: *kbuild-clang-17-x86-chromeos-rules
branch:
- '!chromiumos:chromeos-5.15'
- '!chromiumos:chromeos-6.1'
- '!chromiumos:chromeos-6.12'

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:
<<: *kbuild-gcc-12-arm64-chromeos-params
cross_compile_compat:
defconfig: defconfig
rules:
<<: *kbuild-gcc-12-arm64-chromeos-rules
tree:
- '!android'
- '!chromiumos'

kbuild-gcc-12-arm64-chromeos-mediatek:
<<: *kbuild-gcc-12-arm64-chromeos-job
Expand All @@ -589,18 +670,30 @@ jobs:
min_version:
version: 6
patchlevel: 1
branch:
- '!chromiumos:chromeos-6.6'

kbuild-gcc-12-arm64-chromeos-qualcomm:
<<: *kbuild-gcc-12-arm64-chromeos-job
params:
<<: *kbuild-gcc-12-arm64-chromeos-params
flavour: qualcomm
rules:
<<: *kbuild-gcc-12-arm64-chromeos-rules
branch:
- 'chromiumos:chromeos-6.6'

kbuild-gcc-12-x86-chromeos-amd:
<<: *kbuild-gcc-12-x86-chromeos-job
params:
<<: *kbuild-gcc-12-x86-chromeos-params
flavour: amd-stoneyridge
rules:
<<: *kbuild-gcc-12-x86-chromeos-rules
branch:
- '!chromiumos:chromeos-5.15'
- '!chromiumos:chromeos-6.1'
- '!chromiumos:chromeos-6.12'

kbuild-gcc-12-x86-chromeos-intel:
<<: *kbuild-gcc-12-x86-chromeos-job
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
12 changes: 12 additions & 0 deletions config/scheduler-chromeos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,18 @@ scheduler:
- job: baseline-x86-intel-chromebook
<<: *test-job-x86-intel

- job: kbuild-clang-17-arm64-chromeos-mediatek
<<: *build-k8s-all

- job: kbuild-clang-17-arm64-chromeos-qualcomm
<<: *build-k8s-all

- job: kbuild-clang-17-arm64-chromeos-amd
<<: *build-k8s-all

- job: kbuild-clang-17-arm64-chromeos-intel
<<: *build-k8s-all

- job: kbuild-gcc-12-arm64-chromebook
<<: *build-k8s-all

Expand Down

0 comments on commit a7649da

Please sign in to comment.