make bcmrpi_defconfig mkdir build mv .config build/ make silentoldconfig prepare headers_install scripts LOCALVERSION=+ O=build cp -a build/ build-kernel/ rm -rf build/usr/ rm -rf build/kernel/ rm -rf build/source rm -rf build/Makefile make LOCALVERSION=+ O=build-kernel cp build-kernel/Module.symvers build/ cp Kbuild build/ find . \ -path './build/*' -prune -o \ -path './build-kernel/*' -prune -o \ -path './debian/*' -prune -o \ -path './scripts/*' -prune -o \ -path './Documentation/*' -prune -o \ -type f \( -name Makefile -o -name 'Kconfig*' \) -print | \ cpio -pd --preserve-modification-time $(pwd)/build rsync -av scripts build/ rsync -av include build/ find build/ -name .gitignore -exec rm \{\} \;