Created
January 2, 2012 13:29
-
-
Save kentfredric/1550685 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pushd /usr/src/linux | |
CF="-march=native -mtune=native -O3" | |
MF='V=2 ARCH=x86_64 --jobs=10 --load-average=6.0' | |
mount /boot; | |
make ${MF} CFLAGS="${CF}" modules_prepare || exit 255; | |
make ${MF} CFLAGS="${CF}" vmlinux || exit 255; | |
make ${MF} CFLAGS="${CF}" modules || exit 255; | |
make ${MF} CFLAGS="${CF}" bzImage || exit 255; | |
make ${MF} CFLAGS="${CF}" modules_install || exit 255; | |
kn=$(make kernelrelease) | |
depmod --all --verbose --warn $kn | |
echo cp /usr/src/linux/arch/x86_64/boot/bzImage /boot/kernel.${kn}.xz | |
dracut --xz --hostonly --stdlog 5 --verbose --force /tmp/initramfs.${kn}.xz ${kn} || exit 255 | |
cp -v /usr/src/linux/arch/x86_64/boot/bzImage /boot/kernel.${kn}.xz | |
cp -v /tmp/initramfs.${kn}.xz /boot/initramfs.${kn}.xz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Next is to