forked from raspberrypi/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.29 KB
/
kbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# test kernel build
name: kbuild
on: [push, pull_request]
jobs:
x86_64_deftest:
name: Compile kernel using X86_64 defconfig merged with kselftest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install tools
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: |
git bc bison flex libssl-dev make libelf-dev build-essential
version: 1.0
- name: Configure and build
run: |
make defconfig
make kselftest-merge
make -j $(nproc)
bcm2711_deftest:
name: Cross-compile kernel using BCM2711 defconfig merged with kselftest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install tools
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: |
git bc bison flex libssl-dev make libc6-dev
crossbuild-essential-arm64
version: 2.0
- name: Configure and build
env:
KERNEL: kernel8
ARCH: arm64
CROSS_COMPILE: aarch64-linux-gnu-
run: |
make bcm2711_defconfig
make olddefconfig
make kselftest-merge
make Image modules dtbs -j $(nproc)
# todo: um_deftest (test usermode linux build and run)