SPL: Default to disabling legacy image support when using FIT
authorTom Rini <trini@konsulko.com>
Thu, 23 May 2019 11:14:08 +0000 (07:14 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jul 2019 18:11:19 +0000 (14:11 -0400)
When we have a FIT image being used by SPL by default that means the
most common case is that we'll never run into a legacy image.  Disable
legacy image support by default in that case to reclaim space.

Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/Kconfig

index 802166131c54503e76f736efa90d43df2640e783..a48617ddcd0bad540a98db643a7534caf1b3e024 100644 (file)
@@ -158,7 +158,7 @@ config SPL_RAW_IMAGE_SUPPORT
 
 config SPL_LEGACY_IMAGE_SUPPORT
        bool "Support SPL loading and booting of Legacy images"
 
 config SPL_LEGACY_IMAGE_SUPPORT
        bool "Support SPL loading and booting of Legacy images"
-       default y if !TI_SECURE_DEVICE
+       default y if !TI_SECURE_DEVICE && !SPL_LOAD_FIT
        help
          SPL will support loading and booting Legacy images when this option
          is y. If this is not set, SPL will move on to other available
        help
          SPL will support loading and booting Legacy images when this option
          is y. If this is not set, SPL will move on to other available