On Thu, Feb 20, 2025 at 12:58:47PM -0800, Stephen Boyd wrote:

> Add a 'coreboot' cpu to armv8 that looks for the coreboot table near the
> top of the 4G address space.
> 
> Signed-off-by: Stephen Boyd <swb...@chromium.org>
> ---
>  arch/arm/Kconfig                     |  2 ++

We can't really ask SYS_COREBOOT in two places, as unlike the kernel
everyone always parses arch/*/Kconfig, so we should move
arch/x86/cpu/coreboot/Kconfig to say arch/Kconfig.coreboot and do
something like:
config SYS_COREBOOT
        bool "Support for booting u-boot as a coreboot payload" if ARM64
        depends on ARM64 || VENDOR_COREBOOT
        default y if VENDOR_COREBOOT

And then any of the sub-options that are imply'd by the existing stanza
in the x86 file aren't applicable to ARM64 they can be "... if X86".

As similar to the work to make EFI payload be a more generic option
rather than x86 only, this too needs some thought to be easily
expandable to cover the ARM case today and I'll assume RISC-V at some
point in the future.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to