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:
yangao1
2025-01-14 19:43:02 +08:00
committed by Xiang Xiao
parent ee39e7a4a2
commit 9903b11656
9 changed files with 1 additions and 11 deletions
-2
View File
@@ -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)
-2
View File
@@ -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)
-1
View File
@@ -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"
-2
View File
@@ -32,8 +32,6 @@
#include <metal/mutex.h>
#include <metal/sys.h>
#include <rpmsg/rpmsg_internal.h>
#include "rpmsg_port.h"
/****************************************************************************
-1
View File
@@ -33,7 +33,6 @@
#include <stdbool.h>
#include <nuttx/kmalloc.h>
#include <rpmsg/rpmsg_internal.h>
#include "rpmsg_router.h"
-1
View File
@@ -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"
-1
View File
@@ -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
-1
View File
@@ -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
+1
View File
@@ -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