如何从.config创建defconfig文件? [英] How to create a defconfig file from a .config?

查看:999
本文介绍了如何从.config创建defconfig文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为板defconfig做了make menuconfig,并修改了一些配置.当我选择保存,一个新的在内核顶层目录已创建.

I have done make menuconfig for a board defconfig and modified few configurations. When I select save, a new .config was created in the Kernel top directory.

我要为此创建的.config文件创建新的defconfig.

I want to create new defconfig for this .config file created.

我可以将.config复制为新的defconfig并复制到arch/arm/configs/吗?

Can I copy the .config as a new defconfig and copy to arch/arm/configs/?

$ cp .config arch/arm/configs/board_new_defconfig

推荐答案

我认为您只需要执行一个命令即可使用创建的文件.

I think you have to do just one command and use the created file as you want to.

% make savedefconfig 
% cp defconfig arch/arm/configs/my_cool_defconfig

要获得所有可能的目标,只需运行

To get all possible targets just run

% make help

Adam Miller 所述,其后是

As noted by Adam Miller followed by Jeremy, users of Buildroot distribution can use wrappers for that purpose, i.e. (per Buildroot manual, section 8.1):

  • 用于linux
  • 的linux-savedefconfig
  • barebox-savedefconfig (用于barebox引导程序)
  • uboot-savedefconfig (用于U-Boot引导程序)
  • linux-savedefconfig for linux
  • barebox-savedefconfig for barebox bootloader
  • uboot-savedefconfig for U-Boot bootloader

make savedefconfig 最小化生成的 跳过其他人隐含的冗余配置.

make savedefconfig minimizes the generated defconfig skipping redundant configs that are implied by others.

这篇关于如何从.config创建defconfig文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆