[U-Boot] [PATCH v2] sun7i: Set ARMV7_BOOT_SEC_DEFAULT when OLD_SUNXI_KERNEL_COMPAT is set

Hi,
Here is v2 of my "sun7i: Set ARMV7_BOOT_SEC_DEFAULT when OLD_SUNXI_KERNEL_COMPAT is set" patch, now using Kconfig as requested.
Note that this depends on the "[PATCH v4 0/2] ARM: Add non-secure / virt Kconfig options and allow secure boot on non-secure configs" series which I've just posted and should be merged after that.
Regards,
Hans

Old kernels cannot handle booting in non-secure (hyp) mode, so when OLD_SUNXI_KERNEL_COMPAT is set, also set ARMV7_BOOT_SEC_DEFAULT.
Note that whether to booting secure or non-secure can always be overriden using the bootm_boot_mode environment variable.
Signed-off-by: Hans de Goede hdegoede@redhat.com -- Changes in v2: -Use Kconfig rather the a hard-define in include/configs/sun7i.h --- board/sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index abbd2df..8159a54 100644 --- a/board/sunxi/Kconfig +++ b/board/sunxi/Kconfig @@ -14,6 +14,7 @@ config TARGET_SUN6I
config TARGET_SUN7I bool "sun7i family" + select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
config TARGET_SUN8I bool "sun8i family"
participants (1)
-
Hans de Goede