-
-
Notifications
You must be signed in to change notification settings - Fork 346
/
Copy pathexport.sh
executable file
·44 lines (39 loc) · 1.02 KB
/
export.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#
# Set default environment variables from shell:
#
# source export.sh
#
# Do this **before** calling install.sh
#
# These variables should be persisted.
# For example, with Ubuntu list these in ~/.pam_environment file:
#
# SMING_HOME=/opt/sming/Sming
# etc...
#
# With Windows WSL you can append them in .bashrc instead:
#
# export SMING_HOME=/opt/sming/Sming
# etc...
#
if [ -z "$SMING_HOME" ]; then
if [ "$(basename $SHELL)" = "zsh" ]; then
_SOURCE=${(%):-%N}
else
_SOURCE=$BASH_SOURCE
fi
export SMING_HOME=$(readlink -m "$_SOURCE/../../Sming")
fi
# Common
export PYTHON=${PYTHON:=/usr/bin/python3}
# Esp8266
#export UDK_ROOT=${UDK_ROOT:=/opt/esp-open-sdk}
export EQT_ROOT=${EQT_ROOT:=/opt/esp-quick-toolchain}
export ESP_HOME=${ESP_HOME:=$EQT_ROOT}
# Esp32
export IDF_PATH=${IDF_PATH:=/opt/esp-idf}
export IDF_TOOLS_PATH=${IDF_TOOLS_PATH:=/opt/esp32}
export ESP32_PYTHON_PATH=${ESP32_PYTHON_PATH:=/usr/bin}
# Rp2040
export PICO_TOOLCHAIN_PATH=${PICO_TOOLCHAIN_PATH:=/opt/rp2040}