summaryrefslogtreecommitdiff
path: root/fw/nucleo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fw/nucleo.sh')
-rwxr-xr-xfw/nucleo.sh15
1 files changed, 1 insertions, 14 deletions
diff --git a/fw/nucleo.sh b/fw/nucleo.sh
index e89ff07..d41dde2 100755
--- a/fw/nucleo.sh
+++ b/fw/nucleo.sh
@@ -6,23 +6,13 @@
# obtain one at https://mozilla.org/MPL/2.0/.
-# nucleo.sh
-#
-# This script builds the firmware for the ST Nucleo F767ZI board instead of the
-# native_sim board. After the build it flashes it to the target and opens the
-# serial console.
-#
-# This may be used to quickly test the current simulation-based development
-# state on real hardware.
-
-
set -euf
SCRIPT="$(realpath "$0")"
FW="$(dirname "$SCRIPT")"
ROOT="$(dirname "$FW")"
-BUILD="${ROOT}/nucleo"
+BUILD="${ROOT}/build"
BOOTLOADER_FIRMWARE="${BUILD}/fw/btl/zephyr/zephyr.bin"
APPLICATION_FIRMWARE="${BUILD}/fw/app/zephyr/zephyr.bin"
APPLICATION_FIRMWARE_SIGNED="${BUILD}/fw/app/zephyr/zephyr.signed.bin"
@@ -37,9 +27,6 @@ SERIAL_PORT='/dev/ttyACM0'
set -x
-rm -rf "$BUILD"
-cmake "-B${BUILD}" -GNinja -DBOARD="$BOARD"
-ninja -C "$BUILD"
python "$IMGTOOL" sign \
--version 0.0.0 \
--header-size 0x200 \