mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
net/netdev: fix compile error and add cmake/makefile
Fix compilation errors and add build files Signed-off-by: daichuan <daichuan@xiaomi.com>
This commit is contained in:
@@ -57,4 +57,8 @@ if(CONFIG_NETDEV_RSS)
|
|||||||
list(APPEND SRCS netdev_notify_recvcpu.c)
|
list(APPEND SRCS netdev_notify_recvcpu.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_NETDEV_CHECKSUM)
|
||||||
|
list(APPEND SRCS netdev_checksum.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_sources(net PRIVATE ${SRCS})
|
target_sources(net PRIVATE ${SRCS})
|
||||||
|
|||||||
@@ -48,6 +48,10 @@ ifeq ($(CONFIG_NETDEV_RSS),y)
|
|||||||
NETDEV_CSRCS += netdev_notify_recvcpu.c
|
NETDEV_CSRCS += netdev_notify_recvcpu.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_NETDEV_CHECKSUM),y)
|
||||||
|
NETDEV_CSRCS += netdev_checksum.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Include netdev build support
|
# Include netdev build support
|
||||||
|
|
||||||
DEPPATH += --dep-path netdev
|
DEPPATH += --dep-path netdev
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/net/netdev.h>
|
#include <nuttx/net/netdev.h>
|
||||||
|
#include <nuttx/net/udp.h>
|
||||||
|
#include <nuttx/net/tcp.h>
|
||||||
|
|
||||||
#include "netdev/netdev.h"
|
#include "netdev/netdev.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user