From: Tom Rini Date: Mon, 1 Aug 2016 13:30:48 -0400 Subject: [U-Boot] [PATCH 1/4] Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE In-Reply-To: <20160801153026.7341-2-afd@ti.com> References: <20160801153026.7341-1-afd@ti.com> <20160801153026.7341-2-afd@ti.com> Message-ID: <20160801173048.GR17970@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: