mkimage: Use board config to get CONFIG_FIT_SIGNATURE value
authorSimon Glass <sjg@chromium.org>
Wed, 17 Jul 2013 22:10:59 +0000 (15:10 -0700)
committerTom Rini <trini@ti.com>
Fri, 19 Jul 2013 13:45:19 +0000 (09:45 -0400)
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@chromium.org>
config.mk

index 81c258421629359a51d0d9a43ba45e039e9b99e8..f71e145d35543f45af135dfe7eac7378ea7d0700 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -213,6 +213,10 @@ endif
 # TODO(sjg@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),)