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:
daichuan
2025-08-30 01:18:03 +08:00
committed by Xiang Xiao
parent d2dde8a29a
commit 42da4e322a
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -57,4 +57,8 @@ if(CONFIG_NETDEV_RSS)
list(APPEND SRCS netdev_notify_recvcpu.c)
endif()
if(CONFIG_NETDEV_CHECKSUM)
list(APPEND SRCS netdev_checksum.c)
endif()
target_sources(net PRIVATE ${SRCS})
+4
View File
@@ -48,6 +48,10 @@ ifeq ($(CONFIG_NETDEV_RSS),y)
NETDEV_CSRCS += netdev_notify_recvcpu.c
endif
ifeq ($(CONFIG_NETDEV_CHECKSUM),y)
NETDEV_CSRCS += netdev_checksum.c
endif
# Include netdev build support
DEPPATH += --dep-path netdev
+2
View File
@@ -25,6 +25,8 @@
****************************************************************************/
#include <nuttx/net/netdev.h>
#include <nuttx/net/udp.h>
#include <nuttx/net/tcp.h>
#include "netdev/netdev.h"