Configuring the kernel on PPC 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 PPC platform, you'd run ln -s ../src/linux/include/asm-ppc asm


cd /usr/src/linux
gzip -cd ../usb-2.3.50-1-for-2.2.14.diff.gz | patch -p1
make distclean


pmac_config


make dep


make vmlinux


cp vmlinux /boot/lfskernel


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