比如linux kernel 3.10
1.make mrproper
2.make menuconfig or cp /lib/modules/kernelXXX/build/.config ./
3.make O=../gcc_o
or make all
4.make O=../gcc_o INSTALL_PATH=../build install
5.make O=../gcc_o modules
6.make O=../gcc_o INSTALL_MOD_PATH=../build modules_install
7.initrd, ls /boot/ ,initrd vs initramfs
8.grub.cfg or menu.lst, grub or grub2
9.OK.
阅读(1330) | 评论(0) | 转发(0) |