Files
MyLFS/phase4/linux.sh

28 lines
457 B
Bash

# LINUX Phase 4
CONFIGFILE=config-$KERNELVERS
make mrproper
if [ -f /boot/$CONFIGFILE ]
then
cp /boot/$CONFIGFILE ./.config
make olddefconfig
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