Configuring the kernel on Intel systems


mv /usr/src/linux /usr/src/linux-old


rm -r /usr/include/linux /usr/include/asm


cd /usr/include
ln -s ../src/linux/include/linux linux
ln -s ../src/linux/include/asm-<cpu> asm

Look in the /usr/src/linux/include directory and see which asm-* directories are present. Choose the correct one for your platform. If you're on an Intel platform, you'd run ln -s ../src/linux/include/asm-i386 asm


make dep


make bzImage


cp arch/<cpu>/boot/bzImage /boot/lfskernel

Replace <cpu> by the CPU type you are using like i386 on Intel system.s


cp -av /usr/src/linux $LFS/usr/src


cd $LFS/usr/include
ln -s ../src/linux/include/linux linux
ln -s ../src/linux/include/asm asm