https://www.mediafire.com/file/r1ui4kaf ... 206.tar.gz
(398 KB)
Usage:
Code: Select all
./kernel.sh [kernelVersionYouWantToCompile]
Code: Select all
./kernel.sh 5.12.14
- vmlinuz
- 000-kernel.xzm
- 06-crippled_sources-[kernelVersion].xzm.
Code: Select all
Initial setup...
Downloading kernel source code...
Extracting kernel source code...
Copying .config file...
Downloading AUFS...
Patching AUFS...
Building kernel (this may take a while)...
Creating symlinks...
Downloading firmware...
Extracting firmware...
Adding firmware...
Blacklisting...
Copying cryptsetup...
Creating kernel xzm module...
Creating crippled xzm module...
Cleaning up...
All finished.
Files generated:
vmlinuz -> should go into boot/syslinux
000-kernel.xzm -> should go into porteus/base
06-crippled_sources-5.12.14.xzm -> should go into porteus/base
1- If the script detects either the kernel source package or firmware package in the script folder it won't download them again.
2- All the temporary files will be created in /tmp/kernel-builder, and they should be deleted when the process finishes.
3- If you forget to run it as sudo it will ask for sudo pass.
4- You only need 3 files for this to work (they're all included in the package above):
- kernel.sh (of course)
- 64bit.config or 32bit.config (which contains kernel configuration)
- cryptsetup (for handling encrypted save changes)
Next version should include a way to log the output -- at the moment the script is swallowing all the output for a cleaner experience.
I would like to thank neko for his generous patience to teach me all the tricks that involve building Linux kernel. He's the man!
