mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
openamp: add OPENAMP_DEBUG config to enable/disable openamp debug
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
fa94317447
commit
b3fead9d28
@@ -18,4 +18,12 @@ config OPENAMP_CACHE
|
||||
Enable or disable OpenAMP Cache support (VIRTIO_CACHED_BUFFERS and
|
||||
VIRTIO_CACHED_VRINGS)
|
||||
|
||||
config OPENAMP_RPMSG_DEBUG
|
||||
bool "Enable OpenAMP Rpmsg Debug"
|
||||
default n
|
||||
|
||||
config OPENAMP_VQUEUE_DEBUG
|
||||
bool "Enable OpenAMP Virtio Queue Debug"
|
||||
default n
|
||||
|
||||
endif # OPENAMP
|
||||
|
||||
@@ -24,6 +24,14 @@ ifeq ($(CONFIG_OPENAMP_CACHE),y)
|
||||
CFLAGS += -DVIRTIO_CACHED_BUFFERS -DVIRTIO_CACHED_VRINGS
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_OPENAMP_RPMSG_DEBUG),y)
|
||||
CFLAGS += -DRPMSG_DEBUG
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_OPENAMP_VQUEUE_DEBUG),y)
|
||||
CFLAGS += -DVQUEUE_DEBUG
|
||||
endif
|
||||
|
||||
CSRCS += open-amp/lib/remoteproc/elf_loader.c
|
||||
CSRCS += open-amp/lib/remoteproc/remoteproc.c
|
||||
CSRCS += open-amp/lib/remoteproc/remoteproc_virtio.c
|
||||
|
||||
Reference in New Issue
Block a user