1
0
Fork 0
forked from nuttx/nuttx-update

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"
default n
config OPENAMP_VIRTIO_DEVICE_ONLY
bool "Enable VIRTIO_DEVICE_ONLY"
default n
config OPENAMP_VIRTIO_DEVICE_SUPPORT
bool "Enable VIRTIO_DEVICE_SUPPORT"
default y
config OPENAMP_VIRTIO_DRIVER_ONLY
bool "Enable VIRTIO_DRIVER_ONLY"
default n
config OPENAMP_VIRTIO_DRIVER_SUPPORT
bool "Enable VIRTIO_DRIVER_SUPPORT"
default y
endif # OPENAMP

View file

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

View file

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