ubuntu环境下使用make config nconfig menuconfig xconfig gconfig的方法及效果图

看U-boot的make文件,在帮助页面发现一片config方法,逐一尝试,看看有什么区别

注意,下面使用的make命令中都带有 O=/tmp/build 表示所有的输出文件都放到/tmp/build目录中,而这个目录是临时目录,关机时将被清空,如果不需要可以删去或者更换目录

Configuration targets:
  config          - Update current config utilising a line-oriented program
  nconfig         - Update current config utilising a ncurses menu based program
  menuconfig      - Update current config utilising a menu based program
  xconfig         - Update current config utilising a Qt based front-end
  gconfig         - Update current config utilising a GTK+ based front-end
  oldconfig       - Update current config utilising a provided .config as base
  localmodconfig  - Update current config disabling modules not loaded
  localyesconfig  - Update current config converting local mods to core
  defconfig       - New config with default from ARCH supplied defconfig
  savedefconfig   - Save current config as ./defconfig (minimal config)
  allnoconfig     - New config where all options are answered with no
  allyesconfig    - New config where all options are accepted with yes
  allmodconfig    - New config selecting modules when possible
  alldefconfig    - New config with all symbols set to default
  randconfig      - New config with random answer to all options
  listnewconfig   - List new options
  olddefconfig    - Same as oldconfig but sets new symbols to their default value without prompting

config

使用命令

make O=/tmp/build config

效果如下图

终端会列出所有配置项,需要依次选择,上百甚至几百个配置项选择非常耗时,不建议使用。

 

 

nconfig

 

使用命令

make O=/tmp/build nconfig

效果如下图

比单纯的config界面要友好些,使用方向键操作。好像不需要什么特殊的支持库,我电脑上是直接使用的。

 

 

menuconfig

使用最多的一种配置方法

可能提示缺的支持库

sudo apt-get install libncurses5-dev

使用命令

make O=/tmp/build menuconfig

效果如下图

越来越好看了,虽然还是文本的,但是多了一些背景,看起来像是视窗的。

 

 

xconfig

带QT界面的配置软件

需要先安装qt库

sudo apt-get install libqt4-dev

后使用

make O=/tmp/build xconfig

效果如下图

使用鼠标点一点就可以配置好,和windows环境非常类似。

 

 

gconfig

带GTK+界面的配置软件

需要先安装GTK+库

sudo apt-get install gtk+-2.0 glib-2.0 libglade2-dev

后使用

make O=/tmp/build gconfig

效果如下图

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值