From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] bootm: allow to disable legacy image format
Date: Mon, 12 May 2014 11:00:28 -0400 [thread overview]
Message-ID: <20140512150028.GE22182@bill-the-cat> (raw)
In-Reply-To: <53707A16.20703@denx.de>
On Mon, May 12, 2014 at 09:36:54AM +0200, Heiko Schocher wrote:
> Hello Tom, Simon, Wolfgang, Lars,
[snip]
> Ok, summary for one first step (I can do):
>
> - introduce CONFIG_IMAGE_FORMAT_LEGACY based on patch [1]
> (rename "+#if !defined(CONFIG_DISABLE_IMAGE_FORMAT_LEGACY)"
> to "+#if defined(CONFIG_IMAGE_FORMAT_LEGACY)")
>
> - set CONFIG_IMAGE_FORMAT_LEGACY as default:
> (little bit adapted towards simons CONFIG_FIT_SIGNATURE_VERIFICATION
> proposal ... I dont want to introduce a new define ...)
>
> in config_defaults:
> +#ifndef CONFIG_FIT_SIGNATURE
> +#define CONFIG_IMAGE_LEGACY
> +#endif
>
> so, if boards not define CONFIG_FIT_SIGNATURE, they
> have default CONFIG_IMAGE_FORMAT_LEGACY enabled (as currently).
>
> If CONFIG_FIT_SIGNATURE is enabled, legacy image format is default
> disabled (change current behaviour of boards, which use this
> feature! This is only the case for:
>
> $ grep -lr CONFIG_FIT_SIGNATURE include/
> include/configs/zynq-common.h -> Michal, add Michal therefore to Cc
> include/configs/sandbox.h -> Simon
> include/configs/ids8313.h -> me
> include/image.h
> $
>
> ), but boards can enable it if needed (as ids8313 board needs
> it ... yes not nice ...)
>
> If boards which have not enabled CONFIG_FIT_SIGNATURE
> and want to disable legacy image format ... we can add this
> case if we want like:
>
> in config_defaults:
> +#ifndef CONFIG_FIT_SIGNATURE
> +#define CONFIG_IMAGE_LEGACY
> +#endif
> +
> +#ifdef CONFIG_DISABLE_IMAGE_LEGACY
> +#undef CONFIG_IMAGE_LEGACY
> +#endif
>
> Is this a way to go?
Sounds right to me, thanks.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140512/9c2b61a8/attachment.pgp>
next prev parent reply other threads:[~2014-05-12 15:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 11:05 [U-Boot] [PATCH 0/4] mpc8313: ids8313 board updates Heiko Schocher
2014-05-08 11:05 ` [U-Boot] [PATCH 1/4] bootm: allow to disable legacy image format Heiko Schocher
2014-05-08 13:02 ` mike
2014-05-09 4:29 ` Wolfgang Denk
2014-05-09 5:12 ` Heiko Schocher
2014-05-09 13:13 ` Simon Glass
2014-05-09 13:35 ` Wolfgang Denk
2014-05-09 18:47 ` Simon Glass
2014-05-09 19:12 ` Tom Rini
2014-05-12 7:36 ` Heiko Schocher
2014-05-12 15:00 ` Tom Rini [this message]
2014-05-08 11:05 ` [U-Boot] [PATCH 2/4] mpc8313, signed fit: disable legacy image format on ids8313 board Heiko Schocher
2014-05-08 20:19 ` Kim Phillips
2014-05-08 11:05 ` [U-Boot] [PATCH 3/4] lib, fdt: move fdtdec_get_int() out of lib/fdtdec.c Heiko Schocher
2014-05-09 19:59 ` Simon Glass
2014-05-12 7:09 ` Heiko Schocher
2014-05-08 11:05 ` [U-Boot] [PATCH 4/4] mpc8313: add CONFIG_SYS_GENERIC_BOARD to ids8313 board Heiko Schocher
2014-05-08 20:19 ` Kim Phillips
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140512150028.GE22182@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox