[U-Boot] [PATCH] mkimage: Use board config to get CONFIG_FIT_SIGNATURE value

Simon Glass sjg at chromium.org
Thu Jul 18 00:10:59 CEST 2013


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.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 config.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/config.mk b/config.mk
index 81c2584..f71e145 100644
--- a/config.mk
+++ b/config.mk
@@ -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),)
-- 
1.8.3



More information about the U-Boot mailing list