Skip to content

Instantly share code, notes, and snippets.

@hirokuma
Created March 31, 2017 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirokuma/270a35981540e06b93104c2656f5c2ed to your computer and use it in GitHub Desktop.
Save hirokuma/270a35981540e06b93104c2656f5c2ed to your computer and use it in GitHub Desktop.
#!/bin/bash
boot=new
app=1
spi_speed=40
spi_mode=QIO
spi_size_map=6
echo "gen_misc.sh version 20150911"
echo ""
if [ $SDK_PATH ]; then
echo "SDK_PATH:"
echo "$SDK_PATH"
echo ""
else
echo "ERROR: Please export SDK_PATH in gen_misc.sh firstly, exit!!!"
exit
fi
if [ $BIN_PATH ]; then
echo "BIN_PATH:"
echo "$BIN_PATH"
echo ""
else
echo "ERROR: Please export BIN_PATH in gen_misc.sh firstly, exit!!!"
exit
fi
echo "start..."
echo ""
make clean
make BOOT=$boot APP=$app SPI_SPEED=$spi_speed SPI_MODE=$spi_mode SPI_SIZE_MAP=$spi_size_map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment