Skip to contentSkip to conversation

Migration to KConfig

U-Boot Linder Pascal 2 participants 2 messages Apr 12, 2019

lore
Share & tools
lore
#0 lore raw

Hello everyone,

My task is to migrate a board from a U-Boot of version v2016.01 to the latest state of the mainline. So first of all, I am analyzing the configuration system KConfig that has changed in the meantime.

I do not really understand what has changed with KConfig. Is it just the fact that we can now declare the configurations in the "defconfig" file? As I have seen, the KConfig file in the board specific folder only contains general information like the vendor and board name.

I would really appreciate a helpful answer that brings me further in my school project.

Sincerely,

Pascal Linder

Student Telekommunikation Netzwerke und Sicherheit

Klasse T-3b

#1 lore raw

Sali Pascal

Quoted 11 lines · Linder Pascal

Hello everyone,

My task is to migrate a board from a U-Boot of version v2016.01 to the latest state of the mainline. So first of all, I am analyzing the configuration system KConfig that has changed in the meantime.

I do not really understand what has changed with KConfig. Is it just the fact that we can now declare the configurations in the "defconfig" file?

You may find the full documentation about Kconfig here:

https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt

Quoted 2 lines

As I have seen, the KConfig file in the board specific folder only contains general information like the vendor and board name.

Yes, for a board maintainer in U-Boot this pretty much jsut boils down to adding a Kconfig file along your board files e.g. like [1]. And then just like you already found out there needs to be a default configuration file e.g. like [2]. This one may be created as follows:

make savedefconfig

Which saves a minimal configuration to a file called defconfig.

Quoted 2 lines

I would really appreciate a helpful answer that brings me further in my school project.

Of course further migration work you may want to tackle is driver model (DM) and/or device tree enablement.

Should you have any further questions you know where to ask (;-p).

[1]
https://git.denx.de/?p=u-boot.git;a=blob;f=board/toradex/colibri_vf/Kconfig;h=5f7129dd359bfb6d392f77cd5a58994e6ea2929d;hb=HEAD
[2]
https://git.denx.de/?p=u-boot.git;a=blob;f=configs/colibri_vf_defconfig;h=41925012571e14ea2ee7b8d6e7f1755cd649c2a4;hb=HEAD

Quoted 5 lines

Sincerely,

Pascal Linder

Quoted 7 lines

Student Telekommunikation Netzwerke und Sicherheit

Klasse T-3b
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Best regards - Mit freundlichen Grüssen - Meilleures salutations

Marcel Ziswiler
Platform Manager Embedded Linux

Toradex AG
Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48 00 (main line) | Direct: +41 41 500 48 10