tillitis-key/hw/boards/tp1/firmware/build.sh

17 lines
276 B
Bash
Raw Normal View History

2023-03-08 10:11:10 -05:00
#!/usr/bin/bash
set -e
if [ -d "/usr/local/pico-sdk" ]; then
export PICO_SDK_PATH=/usr/local/pico-sdk
else
2023-03-08 10:11:10 -05:00
export PICO_SDK_PATH=~/pico-sdk
fi
2023-03-08 10:11:10 -05:00
BUILD_DIR=build
if [ -d "${BUILD_DIR}" ]; then rm -rf ${BUILD_DIR}; fi
mkdir ${BUILD_DIR}
cd ${BUILD_DIR}
cmake ..
make -j$(nproc)