* [Buildroot] [PATCH] package/uboot-tools: fix CONFIG_FIT_SIGNATURE_MAX_SIZE build failure
@ 2019-03-31 20:20 Giulio Benetti
2019-04-03 20:32 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Giulio Benetti @ 2019-03-31 20:20 UTC (permalink / raw)
To: buildroot
When CONFIG_FIT_SIGNATURE is enabled for building,
CONFIG_FIT_SIGNATURE_MAX_SIZE must be defined since it's a dependency of
CONFIG_FIT_SIGNATURE. Using uboot Kconfig, CONFIG_GIT_SIGNATURE_MAX_SIZE
is set to its default(0x10000000) according to Kconfig, but Buildroot
doesn't use uboot Kconfig, it passes directly CONFIG_* as make
arguments.
Append CONFIG_FIT_SIGNATURE_MAX_SIZE=0x10000000 after
CONFIG_FIT_SIGNATURE=y to UBOOT_TOOLS_MAKE_OPTS and
HOST_UBOOT_TOOLS_MAKE_OPTS.
Fixes:
http://autobuild.buildroot.net/results/612/6126848e08d9273911e7d5b0151847aa2293ed87/
http://autobuild.buildroot.net/results/b49/b49ae4977b605ed24783161618f383551f1662b8/
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
---
package/uboot-tools/uboot-tools.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk
index d7a631fdc8..2966ccf6d0 100644
--- a/package/uboot-tools/uboot-tools.mk
+++ b/package/uboot-tools/uboot-tools.mk
@@ -28,7 +28,7 @@ UBOOT_TOOLS_DEPENDENCIES += dtc
endif
ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT),y)
-UBOOT_TOOLS_MAKE_OPTS += CONFIG_FIT_SIGNATURE=y
+UBOOT_TOOLS_MAKE_OPTS += CONFIG_FIT_SIGNATURE=y CONFIG_FIT_SIGNATURE_MAX_SIZE=0x10000000
UBOOT_TOOLS_DEPENDENCIES += openssl host-pkgconf
endif
@@ -91,7 +91,7 @@ HOST_UBOOT_TOOLS_DEPENDENCIES += host-dtc
endif
ifeq ($(BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT),y)
-HOST_UBOOT_TOOLS_MAKE_OPTS += CONFIG_FIT_SIGNATURE=y
+HOST_UBOOT_TOOLS_MAKE_OPTS += CONFIG_FIT_SIGNATURE=y CONFIG_FIT_SIGNATURE_MAX_SIZE=0x10000000
HOST_UBOOT_TOOLS_DEPENDENCIES += host-openssl
endif
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] package/uboot-tools: fix CONFIG_FIT_SIGNATURE_MAX_SIZE build failure
2019-03-31 20:20 [Buildroot] [PATCH] package/uboot-tools: fix CONFIG_FIT_SIGNATURE_MAX_SIZE build failure Giulio Benetti
@ 2019-04-03 20:32 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-04-03 20:32 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 31 Mar 2019 22:20:29 +0200
Giulio Benetti <giulio.benetti@micronovasrl.com> wrote:
> When CONFIG_FIT_SIGNATURE is enabled for building,
> CONFIG_FIT_SIGNATURE_MAX_SIZE must be defined since it's a dependency of
> CONFIG_FIT_SIGNATURE. Using uboot Kconfig, CONFIG_GIT_SIGNATURE_MAX_SIZE
> is set to its default(0x10000000) according to Kconfig, but Buildroot
> doesn't use uboot Kconfig, it passes directly CONFIG_* as make
> arguments.
>
> Append CONFIG_FIT_SIGNATURE_MAX_SIZE=0x10000000 after
> CONFIG_FIT_SIGNATURE=y to UBOOT_TOOLS_MAKE_OPTS and
> HOST_UBOOT_TOOLS_MAKE_OPTS.
>
> Fixes:
> http://autobuild.buildroot.net/results/612/6126848e08d9273911e7d5b0151847aa2293ed87/
> http://autobuild.buildroot.net/results/b49/b49ae4977b605ed24783161618f383551f1662b8/
>
> Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
> ---
> package/uboot-tools/uboot-tools.mk | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to master, thanks. Long term I think we should try to use the
Kconfig stuff even for uboot-tools, but for a short term solution, your
patch is fine.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-03 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-31 20:20 [Buildroot] [PATCH] package/uboot-tools: fix CONFIG_FIT_SIGNATURE_MAX_SIZE build failure Giulio Benetti
2019-04-03 20:32 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.