Files
bobbycar-boardcomputer-firm…/export.sh

57 lines
1.2 KiB
Bash
Raw Normal View History

BOBBY_ROOT="$(dirname "$BASH_SOURCE")"
if [[ ! -f "${BOBBY_ROOT}/esp-idf/export.sh" ]]
then
echo "esp-idf is missing, please check out all needed submodules!"
echo "git submodule update --init --recursive"
return
fi
. ${BOBBY_ROOT}/esp-idf/export.sh
complete -W "$(./switchconf.sh --list)" ./switchconf.sh
2021-11-14 14:40:13 +01:00
complete -W "$(./switchconf.sh --list)" switchconf
BOBBY_INIT_FAILED=
if [[ -e "build" ]] && [[ ! -L "build" ]]
then
echo "ERROR: build folder exists but isnt a symlink!"
BOBBY_INIT_FAILED=1
fi
if [[ -e "sdkconfig" ]]
then
if [[ ! -L "sdkconfig" ]]
then
echo "ERROR: sdkconfig exists but isnt a symlink!"
BOBBY_INIT_FAILED=1
fi
else
echo "ERROR: sdkconfig does not exist"
BOBBY_INIT_FAILED=1
fi
if [[ -e "config.cmake" ]]
then
if [[ ! -L "config.cmake" ]]
then
echo "ERROR: config.cmake exists but isnt a symlink!"
BOBBY_INIT_FAILED=1
fi
else
echo "ERROR: config.cmake does not exist"
BOBBY_INIT_FAILED=1
fi
if [[ ! -z "$BOBBY_INIT_FAILED" ]]
then
echo "run ./switchconf.sh to fix all listed issues"
return
fi
2021-11-13 12:42:41 +01:00
export PATH=$PATH:$(pwd)/tools
2021-11-13 15:42:08 +01:00
alias open-ide=open_ide
2021-11-14 14:40:13 +01:00
alias switchconf=./switchconf.sh
alias bobby-build="idf.py build"
2022-06-13 22:27:06 +02:00