On Mon, Aug 01, 2016 at 10:30:23AM -0500, Andrew F. Davis wrote: > Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE. An SPL which define > this will panic() if the image it has loaded is not a FIT image. > > Signed-off-by: Andrew F. Davis <a...@ti.com> > --- > Kconfig | 8 ++++++++ > common/spl/spl.c | 4 ++++ > 2 files changed, 12 insertions(+) > > diff --git a/Kconfig b/Kconfig > index ef12f9f..4c03716 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -336,6 +336,14 @@ config SPL_FIT_IMAGE_POST_PROCESS > injected into the FIT creation (i.e. the blobs would have been pre- > processed before being added to the FIT image). > > +config SPL_PANIC_ON_NON_FIT_IMAGE > + bool "Disable SPL loading of non-FIT images"
I think we should make this default y if SPL_FIT_SIGNATURE since the point of enabling these options is that you want to be verified or failing. During development you can disable this easily enough. -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot