diff --git a/openamp/open-amp.cmake b/openamp/open-amp.cmake index 419bce9c745..3fea5fde9b5 100644 --- a/openamp/open-amp.cmake +++ b/openamp/open-amp.cmake @@ -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) diff --git a/openamp/open-amp.defs b/openamp/open-amp.defs index 508e26ea071..6985eedb86b 100644 --- a/openamp/open-amp.defs +++ b/openamp/open-amp.defs @@ -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