[PATCH 1/3] sandbox: Move HOST_ARCH detection to Kconfig

Jiaxun Yang jiaxun.yang at flygoat.com
Sat May 18 14:27:16 CEST 2024



在2024年5月17日五月 下午11:09,Jiaxun Yang写道:
[...]
> diff --git a/lib/efi_selftest/efi_selftest_miniapp_exception.c 
> b/lib/efi_selftest/efi_selftest_miniapp_exception.c
> index f668cdac4ab2..2dfbb7c74075 100644
> --- a/lib/efi_selftest/efi_selftest_miniapp_exception.c
> +++ b/lib/efi_selftest/efi_selftest_miniapp_exception.c

Seeme like I forgot to move host_arch.h from this file, I don't understand why
does it only cause problem non-sandbox build.

Will resend if no further review comments.

Thanks
- Jiaxun

> @@ -36,11 +36,11 @@ efi_status_t EFIAPI efi_main(efi_handle_t handle,
>  #elif defined(CONFIG_X86)
>  	asm volatile (".word 0xffff\n");
>  #elif defined(CONFIG_SANDBOX)
> -#if (HOST_ARCH == HOST_ARCH_ARM || HOST_ARCH == HOST_ARCH_AARCH64)
> +#if (CONFIG_IS_ENABLED(HOST_ARCH_ARM) || 
> CONFIG_IS_ENABLED(HOST_ARCH_AARCH64))
>  	asm volatile (".word 0xe7f7defb\n");
> -#elif (HOST_ARCH == HOST_ARCH_RISCV32 || HOST_ARCH == 
> HOST_ARCH_RISCV64)
> +#elif (CONFIG_IS_ENABLED(HOST_ARCH_RISCV32) || 
> CONFIG_IS_ENABLED(HOST_ARCH_RISCV64))
>  	asm volatile (".word 0xffffffff\n");
> -#elif (HOST_ARCH == HOST_ARCH_X86 || HOST_ARCH == HOST_ARCH_X86_64)
> +#elif (CONFIG_IS_ENABLED(HOST_ARCH_X86) || 
> CONFIG_IS_ENABLED(HOST_ARCH_X86_64))
>  	asm volatile (".word 0xffff\n");
>  #endif
>  #endif
>
> -- 
> 2.34.1

-- 
- Jiaxun


More information about the U-Boot mailing list