Skip to content

Commit 0b2171b

Browse files
btashtonxiaoxiang781216
authored andcommitted
Configure python environment and install esptool
Signed-off-by: Brennan Ashton <[email protected]>
1 parent e30e82e commit 0b2171b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cibuild.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,19 @@ 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 xtensa-esp32-gcc-toolchain c-cache"
27+
install="python-tools 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
3131
}
3232

33+
function python-tools {
34+
# Python User Env
35+
PIP_USER=yes
36+
PYTHONUSERBASE=$prebuilt/pylocal
37+
add_path $PYTHONUSERBASE/bin
38+
}
39+
3340
function gen-romfs {
3441
add_path $prebuilt/genromfs/usr/bin
3542

@@ -118,6 +125,7 @@ function xtensa-esp32-gcc-toolchain {
118125
rm xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar
119126
fi
120127
xtensa-esp32-elf-gcc --version
128+
pip install esptool
121129
}
122130

123131
function c-cache {

0 commit comments

Comments
 (0)