|
@@ -146,16 +146,18 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_SPL_ABORT_ON_RAW_IMAGE
|
|
|
- /* Signature not found, proceed to other boot methods. */
|
|
|
- return -EINVAL;
|
|
|
-#else
|
|
|
+#ifdef CONFIG_SPL_RAW_IMAGE_SUPPORT
|
|
|
/* Signature not found - assume u-boot.bin */
|
|
|
debug("mkimage signature not found - ih_magic = %x\n",
|
|
|
header->ih_magic);
|
|
|
spl_set_header_raw_uboot(spl_image);
|
|
|
+#else
|
|
|
+ /* RAW image not supported, proceed to other boot methods. */
|
|
|
+ debug("Raw boot image support not enabled, proceeding to other boot methods");
|
|
|
+ return -EINVAL;
|
|
|
#endif
|
|
|
}
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|