openamp: replace VIRTIO_DRIVER/DEVICE_ONLY to VIRTIO_DRIVER/DEVICE_SUPPORT

New OpenAMP change the VIRTIO_DRIVER/DEVICE_ONLY to the
VIRTIO_DRIVER_DEVCE_SUPPORT, so upgrade the NuttX OpenAMP config too

Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
This commit is contained in:
wangyongrong 2024-07-01 16:34:05 +08:00 committed by Xiang Xiao
parent 8b4376683a
commit ef67a866f3
3 changed files with 22 additions and 14 deletions

View File

@ -22,12 +22,12 @@ config OPENAMP_DEBUG
bool "Enable OpenAMP Debug" bool "Enable OpenAMP Debug"
default n default n
config OPENAMP_VIRTIO_DEVICE_ONLY config OPENAMP_VIRTIO_DEVICE_SUPPORT
bool "Enable VIRTIO_DEVICE_ONLY" bool "Enable VIRTIO_DEVICE_SUPPORT"
default n default y
config OPENAMP_VIRTIO_DRIVER_ONLY config OPENAMP_VIRTIO_DRIVER_SUPPORT
bool "Enable VIRTIO_DRIVER_ONLY" bool "Enable VIRTIO_DRIVER_SUPPORT"
default n default y
endif # OPENAMP endif # OPENAMP

View File

@ -87,12 +87,16 @@ endif()
add_compile_definitions(elf_load=remoteproc_elf_load) add_compile_definitions(elf_load=remoteproc_elf_load)
if(CONFIG_OPENAMP_VIRTIO_DEVICE_ONLY) if(CONFIG_OPENAMP_VIRTIO_DEVICE_SUPPORT)
add_compile_definitions(VIRTIO_DEVICE_ONLY) add_compile_definitions(VIRTIO_DEVICE_SUPPORT=1)
else()
add_compile_definitions(VIRTIO_DEVICE_SUPPORT=0)
endif() endif()
if(CONFIG_OPENAMP_VIRTIO_DRIVER_ONLY) if(CONFIG_OPENAMP_VIRTIO_DRIVER_SUPPORT)
add_compile_definitions(VIRTIO_DRIVER_ONLY) add_compile_definitions(VIRTIO_DRIVER_SUPPORT=1)
else()
add_compile_definitions(VIRTIO_DRIVER_SUPPORT=0)
endif() endif()
set(WITH_LIBMETAL_FIND OFF) set(WITH_LIBMETAL_FIND OFF)

View File

@ -32,12 +32,16 @@ endif
CFLAGS += -Delf_load=remoteproc_elf_load CFLAGS += -Delf_load=remoteproc_elf_load
ifeq ($(CONFIG_OPENAMP_VIRTIO_DEVICE_ONLY),y) ifeq ($(CONFIG_OPENAMP_VIRTIO_DEVICE_SUPPORT),y)
CFLAGS += -DVIRTIO_DEVICE_ONLY CFLAGS += -DVIRTIO_DEVICE_SUPPORT=1
else
CFLAGS += -DVIRTIO_DEVICE_SUPPORT=0
endif endif
ifeq ($(CONFIG_OPENAMP_VIRTIO_DRIVER_ONLY),y) ifeq ($(CONFIG_OPENAMP_VIRTIO_DRIVER_SUPPORT),y)
CFLAGS += -DVIRTIO_DRIVER_ONLY CFLAGS += -DVIRTIO_DRIVER_SUPPORT=1
else
CFLAGS += -DVIRTIO_DRIVER_SUPPORT=0
endif endif
CSRCS += open-amp/lib/remoteproc/elf_loader.c CSRCS += open-amp/lib/remoteproc/elf_loader.c