Difference between revisions of "Save buildroot configuration"

From ArmadeusWiki
Jump to: navigation, search
(New page: In this page we will lean how to save buildroot and linux configuration for a project. == Buildroot == == Linux == If kernel used is > 2.6.36, a script is available in the armadeus dire...)
 
(Buildroot)
Line 2: Line 2:
  
 
== Buildroot ==
 
== Buildroot ==
 +
 +
To save buildroot config use the command :
 +
 +
<pre class="host">
 +
$ make savedefconfig
 +
</pre>
 +
 +
The saved config file will be available in file:
 +
<pre class="host">
 +
buildroot/defconfig
 +
</pre>
 +
 +
To save it under a board config file, merge it with config file available in:
 +
 +
<pre class="host">
 +
vimdiff buildroot/defconfig buildroot/configs/<BOARD_NAME>_defconfig
 +
</pre>
  
 
== Linux ==
 
== Linux ==

Revision as of 09:47, 8 October 2012

In this page we will lean how to save buildroot and linux configuration for a project.

Buildroot

To save buildroot config use the command :

$ make savedefconfig

The saved config file will be available in file:

buildroot/defconfig

To save it under a board config file, merge it with config file available in:

vimdiff buildroot/defconfig buildroot/configs/<BOARD_NAME>_defconfig

Linux

If kernel used is > 2.6.36, a script is available in the armadeus directory /scripts/. Under the bsp directory, type:

$ ./scripts/export_linux_config.sh
[...]
Please enter your favorite merge tool (ex: kompare, vimdiff, etc...)
> vimdiff

And give your favorite diff tools then press enter. Under your diff tools, do the merge. The final config file will be saved in :

buildroot/target/device/armadeus/<BOARD_NAME>/<BOARD_NAME>-linux-<KERNEL_NUM>.config