This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-testing.git
The following commit(s) were added to refs/heads/master by this push:
new aa8a4cf Add xtensa esp32 boards build support
aa8a4cf is described below
commit aa8a4cfae0b8460ba027808cf33914c999fc5f85
Author: liuhaitao <[email protected]>
AuthorDate: Fri Mar 20 10:49:48 2020 +0800
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 <[email protected]>
---
cibuild.sh | 15 ++++++++++++++-
testlist/full.dat | 2 ++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/cibuild.sh b/cibuild.sh
index 15e7649..2c70b7c 100755
--- a/cibuild.sh
+++ b/cibuild.sh
@@ -24,7 +24,7 @@ apps=$WD/../apps
tools=$WD/../tools
prebuilt=$WD/../prebuilt
-install="gen-romfs gperf kconfig-frontends arm-gcc-toolchain
mips-gcc-toolchain riscv-gcc-toolchain c-cache"
+install="gen-romfs gperf kconfig-frontends arm-gcc-toolchain
mips-gcc-toolchain riscv-gcc-toolchain xtensa-esp32-gcc-toolchain c-cache"
function add_path {
PATH=$1:$PATH
@@ -107,6 +107,19 @@ function riscv-gcc-toolchain {
riscv64-unknown-elf-gcc --version
}
+function xtensa-esp32-gcc-toolchain {
+ add_path $prebuilt/xtensa-esp32-elf/bin
+
+ if [ ! -f "$prebuilt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc" ]; then
+ cd $prebuilt
+ wget
https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar.xz
+ xz -d xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar.xz
+ tar xf xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar
+ rm xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar
+ fi
+ xtensa-esp32-elf-gcc --version
+}
+
function c-cache {
add_path $prebuilt/ccache/bin
diff --git a/testlist/full.dat b/testlist/full.dat
index df46889..d150249 100644
--- a/testlist/full.dat
+++ b/testlist/full.dat
@@ -36,3 +36,5 @@
-sim:rpserver
/x86
+
+/xtensa