openamp: add OPENAMP_DEBUG config to enable/disable openamp debug
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
parent
fa94317447
commit
b3fead9d28
2 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue