This commit is contained in:
2024-11-12 05:04:32 -07:00
parent cc3b4417d9
commit 89a6a8a2eb
9 changed files with 58 additions and 15 deletions
+1 -1
View File
@@ -26,4 +26,4 @@ else
echo -e "\nNo sdkconfig.old, skipping delete\n"
fi
echo "\nAll done :3\n"
echo -e "\nAll done :3\n"
+15 -8
View File
@@ -5,27 +5,27 @@ echo -e "\nRunning fullclean\n"
idf.py fullclean
echo -e "\nRunning manual delete tasks\n"
echo -e "\nRunning manual delete tasks:"
if [ -f build ]; then
echo -e "\nDeleting build dir\n"
echo -e "\tDeleting build dir"
rm -rf build
else
echo -e "\nNo build dir, skipping delete\n"
echo -e "\tNo build dir, skipping delete"
fi
if [ -f sdkconfig ]; then
echo -e "\nDeleting sdkconfig\n"
echo -e "\tDeleting sdkconfig"
rm sdkconfig
else
echo -e "\nNo sdkconfig, skipping delete\n"
echo -e "\tNo sdkconfig, skipping delete"
fi
if [ -f sdkconfig.old ]; then
echo -e "\nDeleting sdkconfig.old\n"
echo -e "\tDeleting sdkconfig.old"
rm sdkconfig.old
else
echo -e "\nNo sdkconfig.old, skipping delete\n"
echo -e "\tNo sdkconfig.old, skipping delete"
fi
echo -e "\nSetting up project for $ESPTARGET\n"
@@ -34,15 +34,22 @@ idf.py set-target $ESPTARGET
echo -e "\nErase flash? y/n"
read wipe
if [ "$wipe" == "y" ]; then
echo -e "\nExecuting erase-flash\n"
idf.py erase-flash
echo -e "\nFlash wiped\n"
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"
read build
if [ "$build" == "y" ]; then
echo -e "\nBuildan~\n"
idf.py build
echo -e "\nBuild complete\n"
fi
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
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"
cp sdkconfig.defaults sdkconfig.defaults.bak
else
+18
View File
@@ -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"