]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/image.h
bootm: make use of legacy image format configurable
[karo-tx-uboot.git] / include / image.h
index 41e56abe15ce22e9244fc5ab348b26025f6463cd..132abdf05595051d5e48ffc982f5429ba377ee1a 100644 (file)
@@ -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 */