Save buildroot configuration: Difference between revisions

From ArmadeusWiki
FabienM (talk | contribs)
FabienM (talk | contribs)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In this page we will lean how to save buildroot and linux configuration for a project.
In this page you will learn how to save Buildroot and Linux configuration for a project.


== Buildroot ==
== Buildroot ==


To save buildroot config use the command :
=== General ===
To save Buildroot config use the command :


<pre class="host">
<pre class="host">
Line 9: Line 10:
</pre>
</pre>


The saved config file will be available in file ''buildroot/defconfig''.
The saved config will be available in ''buildroot/defconfig'' file.


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


<pre class="host">
<pre class="host">
$ vimdiff buildroot/defconfig buildroot/configs/<BOARD_NAME>_defconfig
$ vimdiff buildroot/defconfig buildroot/configs/<BOARD_NAME>_defconfig
</pre>
</pre>
=== Busybox ===
TODO


== Linux ==
== Linux ==


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


<pre class="host">
<pre class="host">
Line 28: Line 33:
</pre>
</pre>


And give your favorite diff tools then press enter. Under your diff tools, do the merge. The final config file will be saved in ''
And choose your favorite diff tool, 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''
buildroot/target/device/armadeus/<BOARD_NAME>/<BOARD_NAME>-linux-<KERNEL_NUM>.config''

Latest revision as of 09:41, 12 September 2013

In this page you will learn how to save Buildroot and Linux configuration for a project.

Buildroot

General

To save Buildroot config use the command :

$ make savedefconfig

The saved config will be available in buildroot/defconfig file.

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

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

Busybox

TODO

Linux

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

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

And choose your favorite diff tool, 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