cd ~/compile rm -r linux-2.6.31.8 rm -r linux_headers mkdir linux_headers wget https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.8.tar.gz tar xvzf linux-2.6.31.8.tar.gz cd linux-2.6.31.8 export ARCH=arm export ARM_ARCH=armv5te export CLFS_FLOAT=soft unset CFLAGS unset CPPFLAGS unset CXXFLAGS #For Zyxel NSA310 only: #Replace /ffp/home/root/compile/linux-2.6.31.8/arch/arm/Makefile with #/ffp/home/root/temp/build_NSA310/trunk/linux-2.6.31.8/arch/arm/Makefile #from http://gpl.nas-central.org/ZYXEL/NSA310_GPL/FW4.40/build_NSA310.tar.gz cp -v /ffp/home/root/temp/build_NSA310/trunk/linux-2.6.31.8/arch/arm/Makefile /ffp/home/root/compile/linux-2.6.31.8/arch/arm/Makefile make mrproper make ARCH=arm ARM_ARCH=armv5te CLFS_FLOAT=soft headers_check make ARCH=arm ARM_ARCH=armv5te CLFS_FLOAT=soft INSTALL_HDR_PATH=`pwd`/../linux_headers headers_install cd ../linux_headers #That's all! #the below is the packaging specific for my Zyxel NSA310 mkdir ffp mv include/ ffp/ #makepkg findutils version buildnumber makepkg linux-headers 2.6.31.8 ? cp /tmp/linux-headers-2.6.31.8-arm-*.txz ~/ffp_0.7_armv5 funpkg -q linux funpkg -r linux-headers-2.6.31.8-arm funpkg -i ~/ffp_0.7_armv5/linux-headers-2.6.31.8-arm-?.txz
Table 4.1. ARM Hard Floating Point Versions fpa fpe2 fpe3 maverick vfp vfpv3 vfpv3-fp16 vfpv3-d16 vfpv3-d16-fp16 vfpv3xd vfpv3xd-fp16 neon neon-fp16 vfpv4 vfpv4-d16 fpv4-sp-d16 neon-vfpv4 Table 4.3. ARM Archiecture Choices armv4t armv5 armv5t armv5te armv6 armv6j armv6t2 armv6z armv6zk armv6-m armv7 armv7-a armv7-r armv7-m
For ARCH, ARM_ARCH, CLFS_FLOAT values click also here. Inspired from here.