MIPS: add compile time definition of L2 cache size
[oweals/u-boot.git] / tools / default_image.c
index 7a26232779807e187b713b02ad27582abb131bb5..f7990e28c0639852a8abe4951416c5f7647526f2 100644 (file)
@@ -20,7 +20,6 @@
 #include <tee/optee.h>
 #include <u-boot/crc.h>
 #include <imximage.h>
-#include <generated/autoconf.h>
 
 static image_header_t header;
 
@@ -109,7 +108,8 @@ static void image_set_header(void *ptr, struct stat *sbuf, int ifd,
        if (params->type == IH_TYPE_FIRMWARE_IVT)
                /* Add size of CSF minus IVT */
                imagesize = sbuf->st_size - sizeof(image_header_t)
-                           + CONFIG_CSF_SIZE - sizeof(flash_header_v2_t);
+                           + 0x2060 - sizeof(flash_header_v2_t);
+
        else
                imagesize = sbuf->st_size - sizeof(image_header_t);