Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@ apps=$WD/../apps
tools=$WD/../tools
prebuilt=$WD/../prebuilt

install="gen-romfs gperf kconfig-frontends arm-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain xtensa-esp32-gcc-toolchain c-cache"
install="python-tools 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
}

function python-tools {
# Python User Env
PIP_USER=yes
PYTHONUSERBASE=$prebuilt/pylocal
add_path $PYTHONUSERBASE/bin
}

function gen-romfs {
add_path $prebuilt/genromfs/usr/bin

Expand Down Expand Up @@ -118,6 +125,7 @@ function xtensa-esp32-gcc-toolchain {
rm xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar
fi
xtensa-esp32-elf-gcc --version
pip install esptool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we check some file doesn't exist before install esptool like we check $prebuilt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip performs this check and will skip downloading if it already exists so I think we are good.

}

function c-cache {
Expand Down