12 lines
596 B
Bash
12 lines
596 B
Bash
cp ../config.$CARCH .config
|
|
LLVM=1 make olddefconfig
|
|
LLVM=1 make -s kernelrelease > version
|
|
LLVM=1 make all
|
|
echo "Installing Kernel..."
|
|
install -Dm644 "$(make -s image_name)" "$DESTDIR/boot/vmlinuz-linux-vertex"
|
|
echo "Installing modules..."
|
|
ZSTD_CLEVEL=22 LLVM=1 make INSTALL_MOD_PATH="$DESTDIR/usr" INSTALL_MOD_STRIP=1 DEPMOD=/doesnt/exist modules_install
|
|
find "$DESTDIR/usr/lib/modules" -mindepth 2 -maxdepth 2 \( -name build -o -name source \) -exec rm -rf -- {} +
|
|
kver="$(LLVM=1 make -s kernelrelease)"
|
|
ln -sfn "../../../../boot/vmlinuz-linux-vertex" "$DESTDIR/usr/lib/modules/$kver/vmlinuz"
|