[beken-72xx] Move to external lwIP v2.0.2
This commit is contained in:
@@ -249,6 +249,7 @@ env.AddLibrary(
|
||||
"+<usb>",
|
||||
"+<../ip/**>",
|
||||
],
|
||||
options=dict(CCFLAGS=["-Wno-unused-variable"]),
|
||||
)
|
||||
|
||||
# Sources - functional components
|
||||
@@ -263,6 +264,7 @@ env.AddLibrary(
|
||||
"+<camera_intf/*.c>",
|
||||
"+<hostapd_intf/*.c>",
|
||||
"+<joint_up/*.c>",
|
||||
"+<lwip_intf/dhcpd/*.c>",
|
||||
"+<misc/*.c>",
|
||||
"+<net_param_intf/*.c>",
|
||||
"+<power_save/*.c>",
|
||||
@@ -288,6 +290,7 @@ env.AddLibrary(
|
||||
"+<ethernet_intf>",
|
||||
"+<include>",
|
||||
"+<joint_up>",
|
||||
"+<lwip_intf>", # for config/lwipopts.h
|
||||
"+<power_save>",
|
||||
"+<rf_test>",
|
||||
"+<rf_use>",
|
||||
@@ -343,27 +346,7 @@ env.AddLibrary(
|
||||
)
|
||||
|
||||
# Sources - lwIP 2.0.2
|
||||
env.AddLibrary(
|
||||
name="bdk_lwip",
|
||||
base_dir=join(FUNC_DIR, "lwip_intf"),
|
||||
srcs=[
|
||||
"+<lwip-2.0.2/port/*.c>",
|
||||
"+<lwip-2.0.2/src/api/*.c>",
|
||||
"+<lwip-2.0.2/src/apps/ping/*.c>",
|
||||
"+<lwip-2.0.2/src/apps/mdns/*.c>",
|
||||
"+<lwip-2.0.2/src/core/*.c>",
|
||||
"+<lwip-2.0.2/src/core/ipv4/*.c>",
|
||||
"+<lwip-2.0.2/src/core/ipv6/*.c>",
|
||||
"+<lwip-2.0.2/src/netif/ethernet.c>",
|
||||
"+<dhcpd/*.c>",
|
||||
],
|
||||
includes=[
|
||||
"+<lwip-2.0.2/port>",
|
||||
"+<lwip-2.0.2/src/include>",
|
||||
"+<lwip-2.0.2/src/include/netif>",
|
||||
],
|
||||
options=dict(CCFLAGS=["-Wno-missing-braces"]),
|
||||
)
|
||||
env.AddLibraryLwIP(version="2.0.2", port="bdk")
|
||||
|
||||
# Sources - mbedTLS 2.6.0
|
||||
env.AddLibrary(
|
||||
|
||||
@@ -25,6 +25,13 @@ def env_add_lwip(
|
||||
"+<port/realtek>",
|
||||
"+<port/realtek/freertos>",
|
||||
]
|
||||
elif port in ["bdk"]:
|
||||
port_srcs = [
|
||||
"+<port/*.c>",
|
||||
]
|
||||
port_includes = [
|
||||
"+<port>",
|
||||
]
|
||||
|
||||
env.AddLibrary(
|
||||
name=f"lwip{version}_{port}",
|
||||
|
||||
@@ -69,7 +69,12 @@
|
||||
"manifest": {
|
||||
"description": "Beken Development Kit for FreeRTOS"
|
||||
},
|
||||
"toolchain": "gccarmnoneeabi@~1.40804.0"
|
||||
"toolchain": "gccarmnoneeabi@~1.40804.0",
|
||||
"libraries": {
|
||||
"lwip": [
|
||||
"v2.0.2-bdk"
|
||||
]
|
||||
}
|
||||
},
|
||||
"framework-arduino-api": {
|
||||
"type": "framework",
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next "lwipopts.h"
|
||||
#include "lwip-2.0.2/port/lwipopts.h"
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
#define LWIP_MDNS_RESPONDER 1
|
||||
#define LWIP_NUM_NETIF_CLIENT_DATA 1
|
||||
|
||||
Reference in New Issue
Block a user