blob: 3a1b4528478a6d70f374cc4e5381c089a08a4a70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
}
|