[U-Boot] [PATCH 1/2] ARM: Add arch/arm/cpu/armv7/Kconfig with non-secure and virt options
Hans de Goede
hdegoede at redhat.com
Mon Oct 27 09:48:31 CET 2014
Hi,
On 10/27/2014 01:35 AM, Tom Rini wrote:
> On Fri, Oct 24, 2014 at 08:34:15PM +0200, Hans de Goede wrote:
>
>> Add arch/arm/cpu/armv7/Kconfig with non-secure and virt options, so that
>> we can have CONFIG_ARMV7_SEC_BY_DEFAULT as a proper Kconfig option.
>>
>> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
>> ---
>> arch/arm/Kconfig | 2 ++
>> arch/arm/cpu/armv7/Kconfig | 20 ++++++++++++++++++++
>> include/configs/arndale.h | 2 --
>> include/configs/sun7i.h | 2 --
>> include/configs/vexpress_ca15_tc2.h | 2 --
>
> The only problem I see is you aren't also updating the defconfigs for
> the boards in question, which results in a behavior change which we
> don't want.
The new Kconfig options have "default y", and the boards where using
those settings before.
Or are you referring to the fact that CONFIG_ARMV7_NONSEC is getting
set for arndale and vexpress_ca15_tc2 now too ? That is intentional
ARMV7_VIRT depends on CONFIG_ARMV7_NONSEC.
So far this has been somewhat unelegantly solved by writing every
#ifdef CONFIG_ARMV7_NONSEC as:
#if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT)
So that setting CONFIG_ARMV7_VIRT automatically also includes all the
NONSEC bits, note that after this patch we could simply these to just:
#ifdef CONFIG_ARMV7_NONSEC
Which would also more correctly reflect when the code should be enabled.
Regards,
Hans
More information about the U-Boot
mailing list