2022-07-01 01:17:04 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-07-01 12:12:24 -07:00
|
|
|
cd openblt
|
|
|
|
|
|
|
|
# build bootloader
|
|
|
|
make -j12 BOARD=f1_rev2
|
|
|
|
|
2022-07-01 01:17:04 -07:00
|
|
|
# back out to the root
|
2022-07-01 12:12:24 -07:00
|
|
|
cd ../../..
|
2022-07-01 01:17:04 -07:00
|
|
|
|
|
|
|
export EXTRA_PARAMS="-DECHO_UART=TRUE"
|
|
|
|
|
|
|
|
# build app firmware!
|
2022-07-01 12:10:28 -07:00
|
|
|
# set optimization level to 0 until ADC issue is fixed for GD32
|
|
|
|
make -j12 BOARD=f1_rev2 USE_OPT="-O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant"
|