mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
openamp/Kconfig: add config to enable/disable the cache feature
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
9b6cd96671
commit
fa94317447
@@ -11,4 +11,11 @@ config OPENAMP
|
|||||||
|
|
||||||
if 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
|
endif # OPENAMP
|
||||||
|
|||||||
@@ -20,6 +20,10 @@
|
|||||||
|
|
||||||
ifeq ($(CONFIG_OPENAMP),y)
|
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/elf_loader.c
|
||||||
CSRCS += open-amp/lib/remoteproc/remoteproc.c
|
CSRCS += open-amp/lib/remoteproc/remoteproc.c
|
||||||
CSRCS += open-amp/lib/remoteproc/remoteproc_virtio.c
|
CSRCS += open-amp/lib/remoteproc/remoteproc_virtio.c
|
||||||
|
|||||||
Reference in New Issue
Block a user