summaryrefslogtreecommitdiffstats
path: root/include/image.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2014-05-28 11:33:33 +0200
committerTom Rini <trini@ti.com>2014-06-05 14:44:56 -0400
commit21d29f7f9f4888a4858b58b368ae7cf8783a6ebf (patch)
treeb6a50204d2e1af557756d43adbb54a60ca8ff78f /include/image.h
parent5f65826b1bbe155d839db7c92dca4653f0dcf025 (diff)
downloadblackbird-obmc-uboot-21d29f7f9f4888a4858b58b368ae7cf8783a6ebf.tar.gz
blackbird-obmc-uboot-21d29f7f9f4888a4858b58b368ae7cf8783a6ebf.zip
bootm: make use of legacy image format configurable
make the use of legacy image format configurable through the config define CONFIG_IMAGE_FORMAT_LEGACY. When relying on signed FIT images with required signature check the legacy image format should be disabled. Therefore introduce this new define and enable legacy image format if CONFIG_FIT_SIGNATURE is not set. If CONFIG_FIT_SIGNATURE is set disable per default the legacy image format. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Lars Steubesand <lars.steubesand@philips.com> Cc: Mike Pearce <mike@kaew.be> Cc: Wolfgang Denk <wd@denx.de> Cc: Tom Rini <trini@ti.com> Cc: Michal Simek <monstr@monstr.eu> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 41e56abe15..132abdf055 100644
--- a/include/image.h
+++ b/include/image.h
@@ -412,7 +412,9 @@ enum fit_load_op {
#ifndef USE_HOSTCC
/* Image format types, returned by _get_format() routine */
#define IMAGE_FORMAT_INVALID 0x00
+#if defined(CONFIG_IMAGE_FORMAT_LEGACY)
#define IMAGE_FORMAT_LEGACY 0x01 /* legacy image_header based format */
+#endif
#define IMAGE_FORMAT_FIT 0x02 /* new, libfdt based format */
#define IMAGE_FORMAT_ANDROID 0x03 /* Android boot image */
OpenPOWER on IntegriCloud