Skip to contentSkip to conversation

mkimage: Use board config to get CONFIG_FIT_SIGNATURE value

PATCH New Simon Glass 2 participants 3 messages Jul 17, 2013 – Jul 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkimage: Use board config to get CONFIG_FIT_SIGNATURE value

The value of this config variable is not available to image.h on the host, since the board config is not actually included. Bring this in so that mkimage will be built with image-signing support for sandbox at least.

---
 config.mk | 4 ++++
 1 file changed, 4 insertions(+)
config.mk +4 -0
index 81c2584..f71e145 100644
@@ -213,6 +213,10 @@ endif
 # TODO(sjg at chromium.org): Is this correct on Mac OS?
 ifdef CONFIG_FIT_SIGNATURE
 HOSTLIBS	+= -lssl -lcrypto
+
+# This affects include/image.h, but including the board config file
+# is tricky, so manually define this options here.
+HOSTCFLAGS	+= -DCONFIG_FIT_SIGNATURE
 endif
 
 ifneq ($(CONFIG_SYS_TEXT_BASE),)
Signature · 1 line
1.8.3
#1 lore raw

PATCH 1/1 mkimage: Use board config to get CONFIG_FIT_SIGNATURE value

Hi Tom,

Quoted 6 lines · Simon Glass

The value of this config variable is not available to image.h on the host, since the board config is not actually included. Bring this in so that mkimage will be built with image-signing support for sandbox at least.

This is another bug fix - although I don't have a good explanation for why I didn't seem to need this when I was testing a few weeks ago.

Regards,
Simon

#2 lore raw

PATCH 1/1 mkimage: Use board config to get CONFIG_FIT_SIGNATURE value

In reply to Simon Glass
Quoted 5 lines · Simon Glass

The value of this config variable is not available to image.h on the host, since the board config is not actually included. Bring this in so that mkimage will be built with image-signing support for sandbox at least.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130719/b66f6f96/attachment.pgp>