mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
drivers/rpmsg: remove unnecessary header files, revise make.def and cmake
Already copy the rpmsg_internal.h from openamp to the nuttx/include, so do not need add the include patch for .c files. Signed-off-by: yangao1 <yangao1@xiaomi.com> Signed-off-by: wangshaoxin <wangshaoxin@xiaomi.com>
This commit is contained in:
@@ -31,8 +31,6 @@ if(CONFIG_RPMSG)
|
||||
|
||||
if(CONFIG_RPMSG_PORT)
|
||||
list(APPEND SRCS rpmsg_port.c)
|
||||
target_include_directories(drivers
|
||||
PRIVATE ${NUTTX_DIR}/openamp/open-amp/lib)
|
||||
endif()
|
||||
|
||||
if(CONFIG_RPMSG_PORT_SPI)
|
||||
|
||||
@@ -40,7 +40,6 @@ endif
|
||||
|
||||
ifeq ($(CONFIG_RPMSG_PORT),y)
|
||||
CSRCS += rpmsg_port.c
|
||||
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)openamp$(DELIM)open-amp$(DELIM)lib
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_RPMSG_PORT_SPI),y)
|
||||
@@ -61,7 +60,6 @@ endif
|
||||
|
||||
ifeq ($(CONFIG_RPMSG_VIRTIO_LITE),y)
|
||||
CSRCS += rpmsg_virtio_lite.c
|
||||
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)openamp$(DELIM)open-amp$(DELIM)lib
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_RPMSG_VIRTIO_IVSHMEM),y)
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <nuttx/rwsem.h>
|
||||
#include <nuttx/semaphore.h>
|
||||
#include <nuttx/rpmsg/rpmsg.h>
|
||||
#include <rpmsg/rpmsg_internal.h>
|
||||
|
||||
#include "rpmsg_ping.h"
|
||||
#include "rpmsg_router.h"
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
#include <metal/mutex.h>
|
||||
#include <metal/sys.h>
|
||||
|
||||
#include <rpmsg/rpmsg_internal.h>
|
||||
|
||||
#include "rpmsg_port.h"
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <rpmsg/rpmsg_internal.h>
|
||||
|
||||
#include "rpmsg_router.h"
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include <nuttx/mutex.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/wqueue.h>
|
||||
#include <rpmsg/rpmsg_internal.h>
|
||||
|
||||
#include "rpmsg_router.h"
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include <nuttx/virtio/virtio-config.h>
|
||||
#include <metal/utilities.h>
|
||||
#include <openamp/rpmsg_virtio.h>
|
||||
#include <rpmsg/rpmsg_internal.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
#include <nuttx/power/pm.h>
|
||||
#include <nuttx/semaphore.h>
|
||||
#include <nuttx/rpmsg/rpmsg_virtio_lite.h>
|
||||
#include <rpmsg/rpmsg_internal.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
#include <nuttx/rpmsg/rpmsg_ping.h>
|
||||
#include <openamp/rpmsg.h>
|
||||
#include <openamp/rpmsg_internal.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
||||
Reference in New Issue
Block a user