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 }