Skip to contentSkip to conversation

cml1: use KCONFIG_CONFIG_ROOTDIR in savedefconfig

PATCH Andreas Mützel 1 participant 1 message Jul 7 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · On Tuesday, 7 July 2026 08:56:31 CEST Andreas Mützel via…

For example, in U-Boot with the new configuration flow from wrynose and configs defined using the UBOOT_CONFIG_* variables, the project sources and configs will be located in a subdirectory of ${B}. This will result in the following error when running do_savedefconfig:
make: *** No rule to make target 'savedefconfig'. Stop.

Sorry, I missed one part in the description: This only fixes it for the case of one single UBOOT_CONFIG being built. When UBOOT_CONFIG contains multiple active entries, uboot-config.bbclass will not set KCONFIG_CONFIG_ROOTDIR (and also set KCONFIG_CONFIG_ENABLE_MENUCONFIG to false).

But in those cases, do_showconfig is broken as well. It will show ${B}/.config as the config path, but that path does not exist and the real configs will be in ${B}/<config>/.config.

So I'm not sure whether my patch should be applied - it fixes the task for one case and does not break any others that I tested (e.g. the kernel), but some problems remain in the "interactive" tasks of the config handling.

Best regards,
Andreas

Signature · 12 lines
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail [email protected]
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
Office München: Am Knie 16, 81241 München, Germany
http://www.emlix.com

emlix - your embedded Linux partner