File tree Expand file tree Collapse file tree 1 file changed +32
-17
lines changed Expand file tree Collapse file tree 1 file changed +32
-17
lines changed Original file line number Diff line number Diff line change 10
10
11
11
pushd " $cache_dir "
12
12
13
- cflags=$"
14
- -Os
15
- -g
16
- -free
17
- -fipa-pta
18
- -Werror=return-type
19
- -Wpointer-arith
20
- -fno-inline-functions
21
- -mtext-section-literals
22
- -mlongcalls
23
- -falign-functions=4
24
- -ffunction-sections
25
- -fdata-sections"
26
- gcc=$" $root /tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc
27
- $cflags
13
+ cppflags=$" \
14
+ -DARDUINO \
15
+ -DARDUINO_ESP8266_GENERIC \
16
+ -DF_CPU=80000000L \
17
+ -DNONOSDK305=1 \
18
+ -DLWIP_OPEN_SRC \
19
+ -DTCP_MSS=1460 \
20
+ -DLWIP_IPV4=1 \
21
+ -DLWIP_IPV6=1 \
22
+ -DLWIP_FEATURES=1 \
28
23
-I$root /cores/esp8266 \
24
+ -I$root /tools/sdk/lwip2/include \
29
25
-I$root /tools/sdk/include \
30
26
-I$root /variants/generic \
31
27
-I$root /tools/sdk/libc/xtensa-lx106-elf"
28
+ cflags=$" \
29
+ -Os \
30
+ -g \
31
+ -free \
32
+ -fipa-pta \
33
+ -Werror=return-type \
34
+ -Wpointer-arith \
35
+ -fno-inline-functions \
36
+ -mtext-section-literals \
37
+ -mlongcalls \
38
+ -falign-functions=4 \
39
+ -ffunction-sections \
40
+ -fdata-sections"
41
+ gcc=$" $root /tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc
42
+ $cppflags
43
+ $cflags "
32
44
33
45
$gcc --verbose
34
46
35
47
set -v -x
36
48
49
+ cp $root /cores/esp8266/libc_replacements.cpp ./
50
+
51
+ $gcc -c libc_replacements.cpp
52
+
37
53
cat << EOF > arduino.c
38
54
#include <Arduino.h>
39
55
EOF
@@ -99,15 +115,14 @@ step_summary \
99
115
$preprocess \
100
116
" local.eagle.flash.ld.h" \
101
117
-o " local.eagle.flash.ld"
102
- cat local.eagle.flash.ld
103
118
step_summary \
104
119
" Default local.eagle.flash.ld" \
105
120
local.eagle.flash.ld
106
121
107
122
libs=$" -lhal -lphy -lpp -lnet80211 -llwip6-1460-feat -lwpa \
108
123
-lcrypto -lmain -lwps -lbearssl -lespnow -lsmartconfig \
109
124
-lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc"
110
- objects=" arduino.o coredecls.o features.o sdk.o iostream.o"
125
+ objects=" libc_replacements.o arduino.o coredecls.o features.o sdk.o iostream.o"
111
126
112
127
link=$" $root /tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc
113
128
-nostdlib
You can’t perform that action at this time.
0 commit comments