Skip to content

Commit aa8a4cf

Browse files
liuguo09xiaoxiang781216
authored andcommitted
Add xtensa esp32 boards build support
1. Add xtensa esp32 gcc toolchains 2. Add xtensa esp32 boards into full testlist firstly Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
1 parent 447f9a8 commit aa8a4cf

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

cibuild.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ apps=$WD/../apps
2424
tools=$WD/../tools
2525
prebuilt=$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

2929
function 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+
110123
function c-cache {
111124
add_path $prebuilt/ccache/bin
112125

testlist/full.dat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@
3636
-sim:rpserver
3737

3838
/x86
39+
40+
/xtensa

0 commit comments

Comments
 (0)