kernel-config/build.sh

25 lines
489 B
Bash
Raw Normal View History

2020-05-21 12:32:42 -06:00
kernel="${1}"
if [ "${kernel}" = "" ]; then
echo "Please specify a kernel\n";
eselect kernel list;
exit;
fi
sudo eselect kernel set "${kernel}"
cd /usr/src/linux
make mrproper defconfig
cd -
"$(dirname "$0")/configure.sh"
cd /usr/src/linux;
make KCFLAGS="-march=native" -j "$(nproc)" olddefconfig all
2020-11-11 21:55:00 -07:00
dracut --host-only --no-kernel
2021-07-17 18:40:15 -06:00
(mountpoint -q /boot || mount /boot)
make install modules_install && grub-mkconfig -o /boot/grub/grub.cfg
2020-05-21 12:32:42 -06:00
emerge -avtq @{x11-,}module-rebuild