archlinux 内核编译笔记

# cp linux-3.10.5.tar.gz /usr/src/linux-3.10.5.tar.gz
# cd /usr/src
# tar xvzf linux-3.10.5.tar.gz linux-3.10.5
# cd linux-3.10.5
# make mrproper
# make clean

预防没有abs命令
# pacman -S abs
从abs获取.config
# abs
# cp /var/abs/core/linux/config.x86_64 .config
# make menuconfig

预防没有bc命令
# pacman -S bc
# make
# make bzImage
# make modules
# make modules_install
# make install
拷贝内核到/boot
# cp -v arch/x86/boot/bzImage  /boot/vmlinuz-linux-3.10.5-ARCH
# mkinitcpio -k 3.10.5-ARCH -g /boot/initramfs-linux-3.10.5-ARCH.img
# grub-mkconfig -o /boot/grub/grub.cfg
# reboot

原文地址:https://www.cnblogs.com/spaces/p/3255082.html