-
Notifications
You must be signed in to change notification settings - Fork 1.3k
51 lines (41 loc) · 1.21 KB
/
build-kernel.yml
File metadata and controls
51 lines (41 loc) · 1.21 KB
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
47
48
49
50
name: Build RK3566 Kernel
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Kernel Source
uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y build-essential gcc-aarch64-linux-gnu bc bison flex libssl-dev libncurses-dev
- name: Configure Kernel
run: |
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rk356x_defconfig
- name: Compile Kernel
run: |
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc)
- name: Upload Kernel Image
uses: actions/upload-artifact@v4
with:
name: rk3566-kernel
path: arch/arm64/boot/Image.gz
- name: Create Boot Image
run: |
mkbootimg --kernel arch/arm64/boot/Image.gz \
--ramdisk ramdisk.img \
--cmdline "console=ttyFIQ0 root=/dev/mmcblk0p5 rw" \
--output boot.img
- name: Upload Boot Image
uses: actions/upload-artifact@v4
with:
name: boot-image
path: boot.img