derpant
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
test-scratch.sh
|
test-scratch.sh
|
||||||
notes.txt
|
notes.txt
|
||||||
|
todo.txt
|
||||||
*.bak
|
*.bak
|
||||||
next-*
|
next-*
|
||||||
old
|
old
|
||||||
|
|||||||
@@ -43,9 +43,6 @@ alias changeesp="source ${binDir}/changeesp.sh"
|
|||||||
alias monitor="idf.py monitor"
|
alias monitor="idf.py monitor"
|
||||||
alias flashmonitor="idf.py flash monitor"
|
alias flashmonitor="idf.py flash monitor"
|
||||||
alias menuconfig="idf.py menuconfig"
|
alias menuconfig="idf.py menuconfig"
|
||||||
alias step-flash-monitor="idf.py flash; idf.py monitor"
|
|
||||||
alias clean-build="idf.py clean; idf.py build"
|
|
||||||
alias fullclean-build="idf.py fullclean; idf.py build"
|
|
||||||
|
|
||||||
echo "Changing dir to ${HOME}/esp"
|
echo "Changing dir to ${HOME}/esp"
|
||||||
cd "${HOME}/esp"
|
cd "${HOME}/esp"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ startTime=$(date '+%s')
|
|||||||
# crontab -e
|
# crontab -e
|
||||||
# 0 8 * * * bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh
|
# 0 8 * * * bash $HOME/esp/esp-install-custom/cron-reinstall-esp-idf.sh
|
||||||
|
|
||||||
cronVers=55-dev.2 # version of this script
|
# cronVers=55-dev.3 # version of this script
|
||||||
myUser=princesspi
|
myUser=princesspi
|
||||||
test=$1
|
test=$1
|
||||||
|
|
||||||
@@ -27,6 +27,7 @@ idfDir=$installDir/esp-idf
|
|||||||
espressifLocation=$HOME/.espressif
|
espressifLocation=$HOME/.espressif
|
||||||
customBinLocation=$installDir/.custom_bin
|
customBinLocation=$installDir/.custom_bin
|
||||||
customBinFrom=$runningDir/custom_bin
|
customBinFrom=$runningDir/custom_bin
|
||||||
|
cronVers=$(cat $runningDir/version.txt)
|
||||||
|
|
||||||
function return_status() {
|
function return_status() {
|
||||||
strii="\treturn status: ${?}"
|
strii="\treturn status: ${?}"
|
||||||
|
|||||||
@@ -26,4 +26,4 @@ else
|
|||||||
echo -e "\nNo sdkconfig.old, skipping delete\n"
|
echo -e "\nNo sdkconfig.old, skipping delete\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "\nAll done :3\n"
|
echo -e "\nAll done :3\n"
|
||||||
+15
-8
@@ -5,27 +5,27 @@ echo -e "\nRunning fullclean\n"
|
|||||||
|
|
||||||
idf.py fullclean
|
idf.py fullclean
|
||||||
|
|
||||||
echo -e "\nRunning manual delete tasks\n"
|
echo -e "\nRunning manual delete tasks:"
|
||||||
|
|
||||||
if [ -f build ]; then
|
if [ -f build ]; then
|
||||||
echo -e "\nDeleting build dir\n"
|
echo -e "\tDeleting build dir"
|
||||||
rm -rf build
|
rm -rf build
|
||||||
else
|
else
|
||||||
echo -e "\nNo build dir, skipping delete\n"
|
echo -e "\tNo build dir, skipping delete"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f sdkconfig ]; then
|
if [ -f sdkconfig ]; then
|
||||||
echo -e "\nDeleting sdkconfig\n"
|
echo -e "\tDeleting sdkconfig"
|
||||||
rm sdkconfig
|
rm sdkconfig
|
||||||
else
|
else
|
||||||
echo -e "\nNo sdkconfig, skipping delete\n"
|
echo -e "\tNo sdkconfig, skipping delete"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f sdkconfig.old ]; then
|
if [ -f sdkconfig.old ]; then
|
||||||
echo -e "\nDeleting sdkconfig.old\n"
|
echo -e "\tDeleting sdkconfig.old"
|
||||||
rm sdkconfig.old
|
rm sdkconfig.old
|
||||||
else
|
else
|
||||||
echo -e "\nNo sdkconfig.old, skipping delete\n"
|
echo -e "\tNo sdkconfig.old, skipping delete"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\nSetting up project for $ESPTARGET\n"
|
echo -e "\nSetting up project for $ESPTARGET\n"
|
||||||
@@ -34,15 +34,22 @@ idf.py set-target $ESPTARGET
|
|||||||
echo -e "\nErase flash? y/n"
|
echo -e "\nErase flash? y/n"
|
||||||
read wipe
|
read wipe
|
||||||
if [ "$wipe" == "y" ]; then
|
if [ "$wipe" == "y" ]; then
|
||||||
|
echo -e "\nExecuting erase-flash\n"
|
||||||
idf.py erase-flash
|
idf.py erase-flash
|
||||||
echo -e "\nFlash wiped\n"
|
echo -e "\nFlash wiped\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
idf.py menuconfig
|
echo -e "\nRun menuconfig?\n"
|
||||||
|
read menuconfig
|
||||||
|
if [ "$wipe" == "y" ]; then
|
||||||
|
echo -e "\n\Executing menuconfig"
|
||||||
|
idf.py menuconfig
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "\nBuild now? y/n"
|
echo -e "\nBuild now? y/n"
|
||||||
read build
|
read build
|
||||||
if [ "$build" == "y" ]; then
|
if [ "$build" == "y" ]; then
|
||||||
|
echo -e "\nBuildan~\n"
|
||||||
idf.py build
|
idf.py build
|
||||||
echo -e "\nBuild complete\n"
|
echo -e "\nBuild complete\n"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo -e "\nSaving default config\n"
|
echo -e "\nSaving default config\n"
|
||||||
|
|
||||||
if [-f ./sdkconfig.defaults ]; then
|
if [ -f ./sdkconfig.defaults ]; then
|
||||||
echo -e "backing up sdkconfig.defaults to sdkconfig.defaults.bak"
|
echo -e "backing up sdkconfig.defaults to sdkconfig.defaults.bak"
|
||||||
cp sdkconfig.defaults sdkconfig.defaults.bak
|
cp sdkconfig.defaults sdkconfig.defaults.bak
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e # die on error in theory
|
||||||
|
|
||||||
|
echo -e "Clean, build, flash, monitor in steps, dying on error"
|
||||||
|
|
||||||
|
echo -e "\ncleaning up first\n"
|
||||||
|
idf.py clean
|
||||||
|
|
||||||
|
echo -e "\nBuilding\n"
|
||||||
|
idf.py build
|
||||||
|
|
||||||
|
echo -e "\nFlashing to ${ESPPORT}\n"
|
||||||
|
idf.py flash
|
||||||
|
|
||||||
|
echo -e "\nMonitor time on ${ESPPORT} for target ${ESPTARGET} at ${ESPBAUD}\n"
|
||||||
|
idf.py monitor
|
||||||
|
|
||||||
|
echo -e "\nAll done :3\n"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# script to replace the .custom_bins and add-to-expport.txt without other reinstall
|
||||||
|
echo -e "\ndeleting old export.sh\n"
|
||||||
|
rm $HOME/esp/esp-idf/export.sh # ~/esp/esp-idf/export.sh.bak.2
|
||||||
|
|
||||||
|
echo -e "\nReplacing original export.sh from export.sh.bak\n"
|
||||||
|
cp $HOME/esp/esp-idf/export.sh.bak $HOME/esp/esp-idf/export.sh
|
||||||
|
|
||||||
|
echo -e "\nAppending new add-to-export.txt to export.sh\n"
|
||||||
|
cat add-to-export.txt >> $HOME/esp/esp-idf/export.sh
|
||||||
|
|
||||||
|
echo -e "\nDeleting .custom_bins dir\n"
|
||||||
|
rm -rf $HOME/esp/.custom_bins
|
||||||
|
|
||||||
|
echo -e "\nCoppying new custom_bins and making them executable\n"
|
||||||
|
cp -r custom_bins ~/esp/.custom_bins
|
||||||
|
chmod +x $HOME/esp/.custom_bins/*
|
||||||
|
|
||||||
|
echo -e "\nAll done :3\n"
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
55-dev.2
|
56-dev.3
|
||||||
Reference in New Issue
Block a user