Build Kernel #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Kernel | |
on: | |
workflow_dispatch: | |
jobs: | |
build-kernel: | |
runs-on: ubuntu-latest | |
# container: ghcr.io/76op/kernel_build:main | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get Kernel source | |
run: | | |
ls -la | |
mkdir work | |
cd ./work | |
apt update && apt install wget tar xz-utils git -y | |
apt install -y build-essential flex bison libncurses-dev libelf-dev libssl-dev bc python3 dwarves pahole cpio rsync kmod | |
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.82.tar.xz > /dev/null 2>&1 | |
tar -xvf linux-6.1.82.tar.xz > /dev/null 2>&1 | |
- name: Patch | |
run: | | |
pwd | |
ls -la | |
cp debian12-config linux-6.1.82/.config | |
cp acso.patch linux-6.1.82/acso.patch | |
cd linux-6.1.82 | |
git init | |
git apply acso.patch | |
echo "$(cat drivers/pci/quirks.c | grep pcie_acs_overrides)" | |
- name: Build | |
run: | | |
ls -la | |
echo $(nproc) | |
cd linux-6.1.82 | |
# make -j$(nproc) | |
- name: Build DebPkg | |
run: | | |
pwd | |
ls -la | |
cd linux-6.1.82 | |
apt update && apt install rsync kmod cpio -y | |
make deb-pkg LOCALVERSION=-bookworm KDEB_PKGVERSION=$(make kernelversion)-1 | |
ls -la | |
ls -la ../ |