]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/spl/Kconfig
spl: fit: add SPL_FIT_IMAGE_TINY config to reduce code-size
[people/ms/u-boot.git] / common / spl / Kconfig
index ce7c3afa59c59879b6633f2ff919b03d95f11bd4..b1ee15c96d130b24e6e64cd38a956b8bd8cb251a 100644 (file)
@@ -228,6 +228,22 @@ config SPL_SHA256_SUPPORT
          SHA256 variant is supported: SHA512 and others are not currently
          supported in U-Boot.
 
+config SPL_FIT_IMAGE_TINY
+       bool "Remove functionality from SPL FIT loading to reduce size"
+       depends on SPL_FIT
+       default y if MACH_SUN50I || MACH_SUN50I_H5
+       default y if ARCH_OMAP2PLUS
+       help
+         Enable this to reduce the size of the FIT image loading code
+         in SPL, if space for the SPL binary is very tight.
+
+         This removes the detection of image types (which forces the
+         first image to be treated as having a U-Boot style calling
+         convention) and skips the recording of each loaded payload
+         (i.e. loadable) into the FDT (modifying the loaded FDT to
+         ensure this information is available to the next image
+         invoked).
+
 config SPL_CPU_SUPPORT
        bool "Support CPU drivers"
        help