openamp/Kconfig: add config to enable/disable the cache feature

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
wangbowen6 2023-05-27 13:36:47 +08:00 committed by Petro Karashchenko
parent 9b6cd96671
commit fa94317447
2 changed files with 11 additions and 0 deletions

View File

@ -11,4 +11,11 @@ config OPENAMP
if OPENAMP
config OPENAMP_CACHE
bool "Enable OpenAMP Cache support"
default n
---help---
Enable or disable OpenAMP Cache support (VIRTIO_CACHED_BUFFERS and
VIRTIO_CACHED_VRINGS)
endif # OPENAMP

View File

@ -20,6 +20,10 @@
ifeq ($(CONFIG_OPENAMP),y)
ifeq ($(CONFIG_OPENAMP_CACHE),y)
CFLAGS += -DVIRTIO_CACHED_BUFFERS -DVIRTIO_CACHED_VRINGS
endif
CSRCS += open-amp/lib/remoteproc/elf_loader.c
CSRCS += open-amp/lib/remoteproc/remoteproc.c
CSRCS += open-amp/lib/remoteproc/remoteproc_virtio.c