Updated Compiling esp32 port with docker (markdown)

Andrew Leech
2024-07-25 16:04:24 +10:00
parent 7ba4fbf971
commit 2b912bc669

@@ -60,17 +60,22 @@ if [ ! -e mpy-cross/build/mpy-cross ]; then
make -C mpy-cross
fi
echo_and_run() { echo -e "\n\$ $*\n" ; "$@" ; }
# Build the firmware
make -C ports/esp32 BOARD=$BOARD submodules
if [ "$DEPLOY_PORT" == "" ]; then
# Just build the firmware
echo "# make -C ports/esp32 BOARD=$BOARD $ARGS"
make -C ports/esp32 BOARD=$BOARD $ARGS
echo_and_run \
make -C ports/esp32 BOARD=$BOARD $ARGS
else
# build and flash the firmware
echo "# make -C ports/esp32 BOARD=$BOARD $ARGS deploy PORT=$DEPLOY_PORT"
make -C ports/esp32 BOARD=$BOARD $ARGS deploy PORT=$DEPLOY_PORT
echo_and_run \
make -C ports/esp32 BOARD=$BOARD $ARGS deploy PORT=$DEPLOY_PORT
fi
fi # end of user