File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ function print_size_info()
32
32
fi
33
33
34
34
elf_name=$( basename $elf_file )
35
+ ls -l $elf_name
35
36
sketch_name=" ${elf_name% .* } "
36
37
# echo $sketch_name
38
+ echo $PATH
37
39
declare -A segments
38
40
while read -a tokens; do
39
41
seg=${tokens[0]}
@@ -44,7 +46,6 @@ function print_size_info()
44
46
segments[$seg ]=$size
45
47
fi
46
48
47
-
48
49
done < <( xtensa-lx106-elf-size --format=sysv $elf_file )
49
50
50
51
total_ram=$(( ${segments[data]} + ${segments[rodata]} + ${segments[bss]} ))
@@ -203,7 +204,13 @@ function install_ide()
203
204
echo -e " \n----\n"
204
205
cd esp8266/tools
205
206
python3 get.py -q
206
- export PATH=" $ide_path :$core_path /tools/xtensa-lx106-elf/bin:$PATH "
207
+ if [ " $WINDOWS " = " 1" ]; then
208
+ # Because the symlinks don't work well under Win32, we need to add the path to this copy, not the original...
209
+ relbin=$( realpath $PWD /xtensa-lx106-elf/bin)
210
+ export PATH=" $ide_path :$relbin :$PATH "
211
+ else
212
+ export PATH=" $ide_path :$core_path /tools/xtensa-lx106-elf/bin:$PATH "
213
+ fi
207
214
}
208
215
209
216
function install_arduino()
You can’t perform that action at this time.
0 commit comments