From 9f17ac02b8561ca7adeb7911e4939b2ac9ad6320 Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Wed, 29 Jul 2026 22:25:20 +0200 Subject: [PATCH] package/uboot-tools: fix host build without FIT support Commit [1] "package/uboot-tools: fix host FIT signature support" slightly changed the logic in which the file $(@D)/include/generated/autoconf.h is created. When there is no Kconfig sub-option selected, the file is no longer created and the build fails with error: include/linux/kconfig.h:4:10: fatal error: generated/autoconf.h: No such file or directory The issue can be reproduced with the with the simple commands: cat >.config < Reported-by: Robert P. J. Day Tested-by: Robert P. J. Day Signed-off-by: Julien Olivain --- package/uboot-tools/uboot-tools.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk index ef8bcabbd9..8a2877333c 100644 --- a/package/uboot-tools/uboot-tools.mk +++ b/package/uboot-tools/uboot-tools.mk @@ -124,6 +124,7 @@ define HOST_UBOOT_TOOLS_CONFIGURE_CMDS echo "#include " > $(@D)/include/config.h touch $(@D)/include/config/auto.conf mkdir -p $(@D)/include/generated + touch $(@D)/include/generated/autoconf.h $(if $(BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT),$(UBOOT_TOOLS_ENABLE_HASH_ALGOS)) $(if $(BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT),echo '#define CONFIG_TOOLS_FIT_PRINT 1' >> $(@D)/include/generated/autoconf.h) $(if $(BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT),echo '#define CONFIG_TOOLS_IMAGE_PRE_LOAD 1' >> $(@D)/include/generated/autoconf.h)