1
0
mirror of https://github.com/krglaws/MyLFS.git synced 2025-08-13 14:38:10 +00:00
Files
MyLFS-big_bash_script/phase4/linux.sh
2022-05-19 22:36:59 -04:00

27 lines
435 B
Bash

# LINUX Phase 4
CONFIGFILE=config-$KERNELVERS
make mrproper
if [ -f /boot/$CONFIGFILE ]
then
cp /boot/$CONFIGFILE ./.config
else
make defconfig
fi
make
make modules_install
cp ./.config /boot/$CONFIGFILE
cp arch/x86_64/boot/bzImage /boot/vmlinuz-$KERNELVERS-lfs-$LFS_VERSION
cp System.map /boot/System.map-$KERNELVERS
install -d /usr/share/doc/linux-$KERNELVERS
cp -r Documentation/* /usr/share/doc/linux-$KERNELVERS