diff options
author | xengineering <me@xengineering.eu> | 2025-03-27 18:40:33 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-03-27 18:42:49 +0100 |
commit | 1999f26c25df2b44cf21b4e8ca36023efb5b7e39 (patch) | |
tree | 647e5c4ed8d8233e97899b018716a0b7321ae25b | |
parent | b5fb9a30e4b5cf54df35c0dfbe901493ed1ebb22 (diff) | |
download | iot-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-- | .gitignore | 1 | ||||
-rwxr-xr-x | fw/nucleo.sh | 15 |
2 files changed, 1 insertions, 15 deletions
@@ -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 \ |