一、生成配置文件(自己配置可以省略此步骤)
方法一:复制现有配置文件
cp /boot/config-current_version-general ./.config
方法二:生成默认配置文件
$ make defconfig
方法三:使用图形界面
终端字符环境:
$ make menuconfig
X环境:
$ make xconfig
GTK环境:
$ make gconfig
以menuconfig为例:
$ make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
Aho! 遇到错误,我们缺少 ncurses-dev这个包: