配置 linux kernel 特性

编译内核的第一步就是配置内核,这是增加或是减少对一些内核特性支持的必要步骤。

为完成内核的配置必须切换到root 用户,然后转入内核源码目录:

#cd /usr/src/linux

#make config

make 后面跟上什么样的config 可以查看一下帮助信息:

root@ubuntu:/usr/src/linux-headers-3.2.0-32# make config
scripts/kconfig/conf --oldaskconfig Kconfig
*
* Linux/i386 3.2.30 Kernel Configuration
*
DMA memory allocation support (ZONE_DMA) [Y/n/?]

从上面执行make config 输入的log 可以看出是执行的script/kconfig/conf 可执行文件,然后跟上选项参数。

因此可以,

#cd scripts/kconfig/

#./conf --help

root@ubuntu:/usr/src/linux-headers-3.2.0-32/scripts/kconfig# ./conf --help
./conf:无法识别的选项“--help”
Usage: ./conf [option] <kconfig-file>
[option] is _one_ of the following:
  --listnewconfig         List new options
  --oldaskconfig          Start a new configuration using a line-oriented program
  --oldconfig             Update a configuration using a provided .config as base
  --silentoldconfig       Same as oldconfig, but quietly, additionally update deps
  --oldnoconfig           Same as silentoldconfig but set new symbols to no
  --defconfig <file>      New config with default defined in <file>
  --savedefconfig <file>  Save the minimal current configuration to <file>
  --allnoconfig           New config where all options are answered with no
  --allyesconfig          New config where all options are answered with yes
  --allmodconfig          New config where all options are answered with mod
  --alldefconfig          New config with all symbols set to default
  --randconfig            New config with random answer to all options
root@ubuntu:/usr/src/linux-headers-3.2.0-32/scripts/kconfig#


administrator@ubuntu:~/project/omap$ make menuconfig


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值