summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-03-27 18:40:33 +0100
committerxengineering <me@xengineering.eu>2025-03-27 18:42:49 +0100
commit1999f26c25df2b44cf21b4e8ca36023efb5b7e39 (patch)
tree647e5c4ed8d8233e97899b018716a0b7321ae25b
parentb5fb9a30e4b5cf54df35c0dfbe901493ed1ebb22 (diff)
downloadiot-contact-1999f26c25df2b44cf21b4e8ca36023efb5b7e39.tar
iot-contact-1999f26c25df2b44cf21b4e8ca36023efb5b7e39.tar.zst
iot-contact-1999f26c25df2b44cf21b4e8ca36023efb5b7e39.zip
fw: Remove build from nucleo.sh
This makes it faster and build can be easily executed by adding `-DBOARD=nucleo_f767zi` to the CMake call.
-rw-r--r--.gitignore1
-rwxr-xr-xfw/nucleo.sh15
2 files changed, 1 insertions, 15 deletions
diff --git a/.gitignore b/.gitignore
index e7302cd..60fd437 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
.cache
build
log.txt
-nucleo
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 \