openamp: add OPENAMP_DEBUG config to enable/disable openamp debug

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
wangbowen6 2023-06-01 18:40:24 +08:00 committed by Petro Karashchenko
parent fa94317447
commit b3fead9d28
2 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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