openamp: Refine elf_load to remoteproc_elf_loader

to avoid the name conflict with binfmt elf loader

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2024-03-08 10:59:26 +08:00
committed by Xiang Xiao
parent 6b0c22c775
commit 815c9c464a
2 changed files with 4 additions and 0 deletions

View File

@@ -97,6 +97,8 @@ if(CONFIG_OPENAMP_DEBUG)
add_compile_definitions(VQUEUE_DEBUG)
endif()
add_compile_definitions(elf_load=remoteproc_elf_load)
set(WITH_LIBMETAL_FIND OFF)
if(NOT CMAKE_SYSTEM_PROCESSOR)

View File

@@ -30,6 +30,8 @@ ifeq ($(CONFIG_OPENAMP_DEBUG),y)
CFLAGS += -DRPMSG_DEBUG -DVQUEUE_DEBUG
endif
CFLAGS += -Delf_load=remoteproc_elf_load
CSRCS += open-amp/lib/remoteproc/elf_loader.c
CSRCS += open-amp/lib/remoteproc/remoteproc.c
CSRCS += open-amp/lib/remoteproc/remoteproc_virtio.c