From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/4] bootm: make use of legacy image format configurable
Date: Tue, 20 May 2014 06:21:05 +0200 [thread overview]
Message-ID: <537AD831.7000300@denx.de> (raw)
In-Reply-To: <E43FD5B915DC244EA021DC00950BB5AC04974D93@DB3PRD9003MB055.MGDPHG.emi.philips.com>
Hello Lars,
Am 19.05.2014 16:11, schrieb Steubesand, Lars:
> Hi Heiko,
>
> [snip]
>> When relying on signed FIT images with required signature check the
>> legacy image format should be disabled. Therefore introduce this new
>> define and enable legacy image format if CONFIG_FIT_SIGNATURE is not
>> set. If CONFIG_FIT_SIGNATURE is set disable per default the legacy
>> image format.
> [snip]
>> diff --git a/include/config_defaults.h b/include/config_defaults.h
>> index
>> ad08c1d..fbe0743 100644
>> --- a/include/config_defaults.h
>> +++ b/include/config_defaults.h
>> @@ -20,4 +20,12 @@
>> #define CONFIG_ZLIB 1
>> #define CONFIG_PARTITIONS 1
>>
>> +#ifndef CONFIG_FIT_SIGNATURE
>> +#define CONFIG_IMAGE_FORMAT_LEGACY
>> +#endif
>> +
>> +#ifdef CONFIG_DISABLE_IMAGE_LEGACY
>> +#undef CONFIG_IMAGE_FORMAT_LEGACY
>> +#endif
>> +
>> #endif
> [snip]
>
> it appears that the config changes in config_defaults.h have actually
> not the desired effect since the board specific config file is evaluated
> after the config_defaults.h. A proper change most likely needs to be applied
> to config_fallbacks.h.
Yep, you are completely right! good catch!
I prepared a v4 for this issue, and just compiling a MAKEALL for arm
and powerpc with the above change.
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2014-05-20 4:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 5:10 [U-Boot] [PATCH v3 0/4] mpc8313: ids8313 board updates Heiko Schocher
2014-05-19 5:10 ` [U-Boot] [PATCH v3 1/4] bootm: make use of legacy image format configurable Heiko Schocher
2014-05-19 14:11 ` Steubesand, Lars
2014-05-20 4:21 ` Heiko Schocher [this message]
2014-05-19 5:10 ` [U-Boot] [PATCH v3 2/4] mpc8313, signed fit: enable legacy image format on ids8313 board Heiko Schocher
2014-05-19 5:10 ` [U-Boot] [PATCH v3 3/4] lib, fdt: move fdtdec_get_int() out of lib/fdtdec.c Heiko Schocher
2014-05-24 0:10 ` Simon Glass
2014-05-26 5:31 ` Heiko Schocher
2014-05-19 5:10 ` [U-Boot] [PATCH v3 4/4] mpc8313: add CONFIG_SYS_GENERIC_BOARD to ids8313 board Heiko Schocher
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=537AD831.7000300@denx.de \
--to=hs@denx.de \
--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