openamp/libmetal: support other arch sim host

Add support for x86, arm and arm64 host. Tested on M2 mac.

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee 2022-10-11 11:18:27 +08:00 committed by Masayuki Ishikawa
parent 10efe43c4c
commit 9c7bb9e088
1 changed files with 8 additions and 0 deletions

View File

@ -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