How to create a defconfig file from a .config?

前端 未结 2 1239
囚心锁ツ
囚心锁ツ 2020-12-24 02:17

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

2条回答
  •  情歌与酒
    2020-12-24 02:55

    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
    

    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-savedefconfig for linux
    • barebox-savedefconfig for barebox bootloader
    • uboot-savedefconfig for U-Boot bootloader

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

提交回复
热议问题