Re: [Buildroot] [PATCH 1/1] package/uboot-tools: fix host build without FIT support
Julien Olivain via buildroot <[email protected]> Wed, 29 Jul 2026 23:16:48 +0200
| Newsgroups | net.busybox.buildroot |
|---|---|
| Message-ID | <[email protected]> |
On 29/07/2026 22:52, Robert P. J. Day wrote: > On Wed, 29 Jul 2026, Julien Olivain wrote: > >> 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 <<EOF >> BR2_aarch64=y >> BR2_TOOLCHAIN_EXTERNAL=y >> BR2_PACKAGE_HOST_UBOOT_TOOLS=y >> EOF >> make olddefconfig >> make host-uboot-tools >> >> This commit fixes the issue by simply adding a touch of the file >> at the beginning to make sure it will always exist. >> >> [1] >> https://gitlab.com/buildroot.org/buildroot/-/commit/928cc5dc5cb82e6f2cb43f853488309eb806ef89 >> >> Cc: James Hilliard <[email protected]> >> Reported-by: Robert P. J. Day <[email protected]> >> Signed-off-by: Julien Olivain <[email protected]> >> --- >> 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 <linux/kconfig.h>" > $(@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) >> -- >> 2.55.0 >> > for what little it's worth: > > Tested-by: Robert P. J. Day <[email protected]> Thanks for testing. Applied to master. Best regards, Julien. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot