Files
surface-go2-kernel-build/README.md
Loosetooth 1f91bf6ad5
Some checks failed
Build Custom Kernel / build-kernel (push) Failing after 0s
add export to use all cores
2024-12-29 23:22:34 +01:00

547 B

Building the custom kernel

On a NIX machine:

export NIX_BUILD_CORES=0
nix-build '<nixpkgs/nixos>' -A config.system.build.kernel --arg configuration ./custom-kernel.nix

Uploading the kernel as an artifact to Gitea

  1. Create a tarball of the built kernel:
mkdir result-writable
cp -rL result/lib/modules/6.6.63/kernel result-writable/kernel
sudo chmod -R u+rwX,g+rwX,o+rX result-writable
tar -czf custom-kernel.tar.gz -C result-writable .
rm -rf result-writable
  1. Create a new release on Gitea and upload the tarball