diff options
Diffstat (limited to 'templates/kernel/template')
| -rw-r--r-- | templates/kernel/template | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/kernel/template b/templates/kernel/template new file mode 100644 index 0000000..3a1b452 --- /dev/null +++ b/templates/kernel/template @@ -0,0 +1,35 @@ +pkgname=kernel +description="the linux kernel with customized patches by x221e" +version=0.0.1-v7.0 +build_no=1 +upstream="https://universe.0xinfinity.dev/distro/kernel/snapshot/${version}.tar.gz" +cddir=${version} +#makedepends=(bc flex m4 bash binutils bison e2fsprogs gcc make tar iptables jfsutils kmod mcelog nfs-utils openssl libcrypto pahole pcmciautils PPP procps python quota-tools sphinx squashfs-tools udev util-linux xfsprogs) ## Must be built before the initramfs + +function do_configure { + make mrproper + + mkdir build/ + mkdir initramfs/ + make O=$(pwd)/build 0x221E_defconfig +} + +function do_build { + ## Build linux kernel + + cd build/ + make -j$(nproc) + + ## Build initramfs + +} + +function do_install { + ## Copy the built kernel to the /compiled directory + + cd build/ + cp arch/x86/boot/bzImage /compiled/ + + ## Convert the initramfs to a newc cpio format and paste to /compiled + +} |
