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.
I want to create new defconfig
for this .config
file created.
Can I copy the .config
as a new defconfig
and copy to arch/arm/configs/
?
$ cp .config arch/arm/configs/board_new_defconfig
For your platform, in a new defconfig file, yes. In fact this is the safest way to create a new defconfig. If you manually remove config entries from an existing config file to create a new one, you are likely to get dependency issues and during build, it might restart the kernel config and give you prompts for selecting individual config options.
I think you have to do just one command and use the created file as you want to.
To get all possible targets just run
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
barebox
bootloaderU-Boot
bootloadermake savedefconfig
minimizes the generateddefconfig
skipping redundant configs that are implied by others.