mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
17 lines
276 B
Bash
Executable File
17 lines
276 B
Bash
Executable File
#!/usr/bin/bash
|
|
set -e
|
|
|
|
if [ -d "/usr/local/pico-sdk" ]; then
|
|
export PICO_SDK_PATH=/usr/local/pico-sdk
|
|
else
|
|
export PICO_SDK_PATH=~/pico-sdk
|
|
fi
|
|
|
|
BUILD_DIR=build
|
|
|
|
if [ -d "${BUILD_DIR}" ]; then rm -rf ${BUILD_DIR}; fi
|
|
mkdir ${BUILD_DIR}
|
|
cd ${BUILD_DIR}
|
|
cmake ..
|
|
make -j$(nproc)
|