openamp/Kconfig: add config to enable/disable the cache feature
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
parent
9b6cd96671
commit
fa94317447
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue