KERNEL_DIR=$(pwd)
make mrproper
make menuconfig
make dep
make clean
make bzImage
cp arch/x86_64/boot/bzImage /boot/vmlinuz-2.6.26
make modules
make modules_install
cd /boot
mkinitrd initrd-2.6.26 2.6.26
cd $KERNEL_DIR
cp System.map /boot/System.map-2.6.26
cd /boot
ln -s System.map-2.6.26 System.map
make mrproper
make menuconfig
make dep
make clean
make bzImage
cp arch/x86_64/boot/bzImage /boot/vmlinuz-2.6.26
make modules
make modules_install
cd /boot
mkinitrd initrd-2.6.26 2.6.26
cd $KERNEL_DIR
cp System.map /boot/System.map-2.6.26
cd /boot
ln -s System.map-2.6.26 System.map

发表评论