fit musl for riscv64 boards.

This commit is contained in:
TXuian
2022-07-27 05:35:56 -07:00
parent 214cf55603
commit cb4a9d03e0
124 changed files with 768 additions and 1260 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ ifeq ($(CONFIG_RESOURCES_USB),y)
endif
ifeq ($(CONFIG_RESOURCES_LWIP),y)
# SRC_DIR += ethernet
SRC_DIR += ethernet
endif
ifeq ($(CONFIG_RESOURCES_WDT),y)
@@ -38,7 +38,7 @@
#define LWIP_HDR_DEBUG_H
#include "lwip/arch.h"
#include "lwip/opt.h"
/**
* @defgroup debugging_levels LWIP_DBG_MIN_LEVEL and LWIP_DBG_TYPES_ON values
@@ -38,6 +38,7 @@
#define LWIP_HDR_ERRNO_H
#include "lwip/opt.h"
#include <errno.h>
#ifdef __cplusplus
extern "C" {
@@ -43,7 +43,7 @@
#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/ip_addr.h"
#include "lwip/ip6_addr.h"
// #include "lwip/ip6_addr.h"
#ifdef __cplusplus
extern "C" {
@@ -43,7 +43,7 @@
#define LWIP_HDR_IP6_ADDR_H
#include "lwip/opt.h"
#include "def.h"
#include "lwip/def.h"
#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */
@@ -37,8 +37,8 @@
#ifndef LWIP_HDR_IP_ADDR_H
#define LWIP_HDR_IP_ADDR_H
#include "lwip/opt.h"
#include "lwip/def.h"
// #include "lwip/opt.h"
// #include "lwip/def.h"
#include "lwip/ip4_addr.h"
#include "lwip/ip6_addr.h"
@@ -37,11 +37,11 @@
#ifndef LWIP_HDR_NETIF_H
#define LWIP_HDR_NETIF_H
#include "lwip/opt.h"
// #include "lwip/opt.h"
#define ENABLE_LOOPBACK (LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF)
#include "lwip/err.h"
// #include "lwip/err.h"
#include "lwip/ip_addr.h"
@@ -38,7 +38,7 @@
#ifndef LWIP_HDR_PBUF_H
#define LWIP_HDR_PBUF_H
#include "lwip/opt.h"
// #include "lwip/opt.h"
#include "lwip/err.h"
#ifdef __cplusplus
@@ -37,11 +37,10 @@
#ifndef LWIP_HDR_SOCKETS_PRIV_H
#define LWIP_HDR_SOCKETS_PRIV_H
#include "lwip/opt.h"
// #include "lwip/opt.h"
#if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */
#include "lwip/err.h"
// #include "lwip/errno.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
@@ -45,7 +45,7 @@
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#include "lwip/err.h"
// #include "lwip/err.h"
#include "lwip/inet.h"
#include "lwip/errno.h"
Binary file not shown.
+2 -2
View File
@@ -1,4 +1,4 @@
SRC_DIR += LwIP cmd_lwip
LWIP_DIR := LwIP
SRC_DIR += cmd_lwip
LWIP_DIR := LwIP
include $(KERNEL_ROOT)/compiler.mk
@@ -35,9 +35,9 @@
#include <sys_arch.h>
#include "connect_ethernet.h"
char test_ip_addr[] = {192, 168, 250, 253};
char test_ip_addr[] = {192, 168, 145, 220};
char test_net_mask[] = {255, 255, 255, 0};
char test_gw_addr[] = {192, 168, 250, 252};
char test_gw_addr[] = {192, 168, 145, 1};
ip4_addr_t ping_addr;
/******************************************************************************/