问题描述
我已经为板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 所述,其后是,Buildroot发行版的用户可以为此使用包装器,即(根据Buildroot手册,第8.1节):
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文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!