File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ apps=$WD/../apps
2424tools=$WD /../tools
2525prebuilt=$WD /../prebuilt
2626
27- install=" gen-romfs gperf kconfig-frontends arm-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain c-cache"
27+ install=" gen-romfs gperf kconfig-frontends arm-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain xtensa-esp32-gcc-toolchain c-cache"
2828
2929function add_path {
3030 PATH=$1 :$PATH
@@ -107,6 +107,19 @@ function riscv-gcc-toolchain {
107107 riscv64-unknown-elf-gcc --version
108108}
109109
110+ function xtensa-esp32-gcc-toolchain {
111+ add_path $prebuilt /xtensa-esp32-elf/bin
112+
113+ if [ ! -f " $prebuilt /xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc" ]; then
114+ cd $prebuilt
115+ wget https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar.xz
116+ xz -d xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar.xz
117+ tar xf xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar
118+ rm xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar
119+ fi
120+ xtensa-esp32-elf-gcc --version
121+ }
122+
110123function c-cache {
111124 add_path $prebuilt /ccache/bin
112125
Original file line number Diff line number Diff line change 3636-sim:rpserver
3737
3838/x86
39+
40+ /xtensa
You can’t perform that action at this time.
0 commit comments