diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-01 12:47:35 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-01 12:47:35 +0100 |
| commit | 85bcada8cf78bdf2bfb3be583289686026e0f25e (patch) | |
| tree | 0ce404c4840432db9b6d3addd3947a736d103382 /build/build-kernel | |
| parent | 2ce14aec655589f00442ab469b9d877a143eeefd (diff) | |
screen: start drm implementation
Diffstat (limited to 'build/build-kernel')
| -rwxr-xr-x | build/build-kernel | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build/build-kernel b/build/build-kernel new file mode 100755 index 0000000..4265e94 --- /dev/null +++ b/build/build-kernel @@ -0,0 +1,24 @@ +#!/bin/sh + +VERSION="6.12.11" +MAJOR_VERSION="$(echo "$VERSION" | sed -E 's/^([0-9]*)\..*$/\1/g')" + +SRC_DIR=".kernel" +URL="https://cdn.kernel.org/pub/linux/kernel/v$MAJOR_VERSION.x/linux-$VERSION.tar.xz" + +TARGET_KERNEL="linux-$VERSION/arch/x86_64/boot/bzImage" + +mkdir -p "$SRC_DIR" +cd "$SRC_DIR" + +if [ ! -e "linux-$VERSION" ]; then + curl "$URL" | tar -J -xvf - +fi + +if [ ! -e "$TARGET_KERNEL" ]; then + cd "linux-$VERSION" + make defconfig + make -j$(nproc) +fi + +echo "$SRC_DIR/$TARGET_KERNEL" |