#!/bin/sh
#文件夹:"linux-2.6.32.61"。
#命令:sh buildkernel.sh 2.6.32.61
#准备:
# apt-get update
# apt-get install fakeroot kernel-package libncurses5-dev libqt3-mt-dev bzip2 wget build-essential
cd linux-${1}
make clean mrproper
cp /boot/config-2.6.32-5gnewsense1-amd64 -r ./.config
make menuconfig
make -j3
make modules
make modules_install
make install
mkinitramfs ${1} -o /boot/initrd.img-${1}
#修改启动项。
grub-mkconfig -o /boot/grub/grub.cfg
#参考:
#http://www.gnewsense.org/Documentation/BuildKernel
#http://blog.csdn.net/mayouyang/article/details/3997849
#http://www.cnblogs.com/mywolrd/archive/2009/02/06/1930706.html
#http://www.cnblogs.com/wwang/archive/2011/01/07/1929486.html
gNewSense 内核编译脚本
时间: 2024-11-07 20:57:33