From 9c7bb9e088f1523aac689cfe56a2691d19709b4e Mon Sep 17 00:00:00 2001 From: Peter Bee Date: Tue, 11 Oct 2022 11:18:27 +0800 Subject: [PATCH] openamp/libmetal: support other arch sim host Add support for x86, arm and arm64 host. Tested on M2 mac. Signed-off-by: Peter Bee --- openamp/libmetal.defs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openamp/libmetal.defs b/openamp/libmetal.defs index 9d7faabd18..ff86294ec3 100644 --- a/openamp/libmetal.defs +++ b/openamp/libmetal.defs @@ -21,7 +21,15 @@ ifeq ($(CONFIG_OPENAMP),y) ifeq ($(CONFIG_ARCH), sim) +ifeq ($(CONFIG_HOST_ARM64), y) +LIBMETAL_ARCH = aarch64 +else ifeq ($(CONFIG_HOST_ARM), y) +LIBMETAL_ARCH = arm +else ifeq ($(CONFIG_HOST_X86), y) +LIBMETAL_ARCH = x86 +else LIBMETAL_ARCH = x86_64 +endif else ifeq ($(CONFIG_ARCH), risc-v) LIBMETAL_ARCH = riscv else