-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmos.yml
147 lines (137 loc) · 4.02 KB
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
author: mongoose-os
description: LwIP TCP/IP stack
type: lib
version: 2.1.2
build_vars:
MGOS_ESP8266_LWIP: 1_SDK
MGOS_LWIP_ENABLE_IPV4_NAT: 0
conds:
# For esp32xx, SDK provides LwIP and this is basically an no-op library.
- when: mos.platform == "esp32"
apply:
sources:
- src
includes:
- include
build_vars:
CONFIG_MBEDTLS_CMAC_C: y
CONFIG_MBEDTLS_DES_C: n
CONFIG_MBEDTLS_NIST_KW_C: y
CONFIG_MBEDTLS_RC4_DISABLED: y
ESP_IDF_SDKCONFIG_OPTS: >
${build_vars.ESP_IDF_SDKCONFIG_OPTS}
CONFIG_LWIP_DHCP_DISABLE_VENDOR_CLASS_ID=n
CONFIG_LWIP_DHCP_GET_NTP_SRV=y
CONFIG_LWIP_TCP_MSL=5000
conds:
- when: build_vars.MGOS_LWIP_ENABLE_IPV4_NAT == "1"
apply:
build_vars:
ESP_IDF_SDKCONFIG_OPTS: >
${build_vars.ESP_IDF_SDKCONFIG_OPTS}
CONFIG_LWIP_L2_TO_L3_COPY=y
CONFIG_LWIP_IP_FORWARD=y
CONFIG_LWIP_IPV4_NAPT=y
cdefs:
IP_NAPT_MAX: 64
IP_PORTMAP_MAX: 8
- when: mos.platform == "esp32c3"
apply:
sources:
- src
includes:
- include
build_vars:
CONFIG_MBEDTLS_CMAC_C: y
CONFIG_MBEDTLS_DES_C: n
CONFIG_MBEDTLS_NIST_KW_C: y
CONFIG_MBEDTLS_RC4_DISABLED: y
ESP_IDF_SDKCONFIG_OPTS: >
${build_vars.ESP_IDF_SDKCONFIG_OPTS}
CONFIG_LWIP_DHCP_DISABLE_VENDOR_CLASS_ID=n
CONFIG_LWIP_DHCP_GET_NTP_SRV=y
CONFIG_LWIP_TCP_MSL=5000
conds:
- when: build_vars.MGOS_LWIP_ENABLE_IPV4_NAT == "1"
apply:
build_vars:
ESP_IDF_SDKCONFIG_OPTS: >
${build_vars.ESP_IDF_SDKCONFIG_OPTS}
CONFIG_LWIP_L2_TO_L3_COPY=y
CONFIG_LWIP_IP_FORWARD=y
CONFIG_LWIP_IPV4_NAPT=y
cdefs:
IP_NAPT_MAX: 64
IP_PORTMAP_MAX: 8
- when: mos.platform == "esp8266"
apply:
conds:
- when: build_vars.MGOS_ESP8266_LWIP == "1_SDK"
apply:
version: 1.4.2
includes:
- src/esp8266/sdk_lwip/include
sources:
- src/esp8266
- src/esp8266/sdk_lwip/src/api
- src/esp8266/sdk_lwip/src/core
- src/esp8266/sdk_lwip/src/core/ipv4
- src/esp8266/sdk_lwip/src/netif
- src/esp8266/sdk_lwip/src/app/dhcpserver.c
cdefs:
EBUF_LWIP: 1
LWIP_OPEN_SRC: 1
PBUF_RSV_FOR_WLAN: 1
LWIP_RAND: os_random
TCP_MSL: 5000
TCP_MSS: 1460
TCP_WND: 2920
MEMP_NUM_TCP_PCB: 20
LWIP_DNS_NO_CLIENT: 1
# LWIP_DEBUG: 1
# DHCP_DEBUG: LWIP_DBG_ON
# TODO(rojer): When mos supports more elaborate conds, this can be deduped.
- when: mos.platform == "stm32"
apply:
libs:
- location: https://github.com/mongoose-os-libs/freertos
- location: https://github.com/mongoose-os-libs/mbedtls
sources:
- src
- src/freertos
- lwip/src/api
- lwip/src/core
- lwip/src/core/ipv4
- lwip/src/core/ipv6
- lwip/src/netif
- lwip/src/netif/ppp
includes:
- include
- include/lwip
- lwip/src/include
- when: mos.platform == "rs14100"
apply:
libs:
- location: https://github.com/mongoose-os-libs/freertos
- location: https://github.com/mongoose-os-libs/mbedtls
sources:
- src
- src/freertos
- lwip/src/api
- lwip/src/core
- lwip/src/core/ipv4
- lwip/src/core/ipv6
- lwip/src/netif
- lwip/src/netif/ppp
includes:
- include
- include/lwip
- lwip/src/include
cdefs:
MG_LWIP: 1
build_vars:
MGOS_MG_NET_IF: MG_NET_IF_LWIP_LOW_LEVEL
no_implicit_init_deps: true
init_after:
- freertos
manifest_version: 2018-06-12