Calling `ptxdist oldconfig u-boot` (or `ptxdist oldconfig all`) makes
only sense if the package actually uses Kconfig. If it does not, you
probably got an at best annoying error message of a missing u-boot
.config in your BSP.
Fixes: 44e565de9b2d ("u-boot: Add option to use Kconfig based configuration")
Signed-off-by: Alexander Dahl <[email protected]>
---
rules/u-boot.make | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rules/u-boot.make b/rules/u-boot.make
index cadca4a6b..4bc7f3f78 100644
--- a/rules/u-boot.make
+++ b/rules/u-boot.make
@@ -214,7 +214,9 @@ $(STATEDIR)/u-boot.clean:
# oldconfig / menuconfig
# ----------------------------------------------------------------------------
+ifdef PTXCONF_U_BOOT_CONFIGSYSTEM_KCONFIG
u-boot_oldconfig u-boot_menuconfig u-boot_nconfig: $(STATEDIR)/u-boot.extract
@$(call world/kconfig, U_BOOT, $(subst u-boot_,,$@))
+endif
# vim: syntax=make
--
2.39.2