Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
WeirdTreeThing committed Nov 26, 2023
0 parents commit c16b5dc
Show file tree
Hide file tree
Showing 6 changed files with 11,875 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Debian kernel"
on:
push:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt update; sudo apt install -y git build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison binutils
- name: Build kernel
run: bash build.sh
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: debian-kernel
retention-days: 7
path: |
*.deb
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
linux*
20 changes: 20 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

VERSION="6.6.2"

ROOT="$PWD"
TARBALL="linux-${VERSION}.tar.xz"
TARBALLURL="https://cdn.kernel.org/pub/linux/kernel/v${VERSION:0:1}.x/${TARBALL}"

curl -LO $TARBALLURL
tar -xf $TARBALL
cd linux-${VERSION}

for patch in $(ls $ROOT/patches)
do
patch -p1 < $ROOT/patches/$patch
done

cp ${ROOT}/config .config
make olddefconfig
make bindeb-pkg -j$(nproc) INSTALL_MOD_STRIP=1
Loading

0 comments on commit c16b5dc

Please sign in to comment.