firecrown/bin/build-mcuboot
2026-03-12 21:21:36 +01:00

16 lines
505 B
Bash
Executable file

#!/usr/bin/env zsh
source "${0:a:h}/lib/env"
source "$lib/build"
export ZEPHYR_SDK_INSTALL_DIR="$base/build/zephyr-sdk-0.17.4"
prepare mcuboot
west build $mod/mcuboot/boot/zephyr -p \
-d "$out/mcuboot" \
-b coquette@nightingale/nrf5340/cpuapp \
-DCONFIG_BOOT_SIGNATURE_KEY_FILE='"'"$MCUBOOT_SIGNATURE_PUB"'"' \
-DZEPHYR_EXTRA_MODULES="$mod/birdsong-devices" \
-DEXTRA_CFLAGS="-Wno-deprecated-declarations" \
-S birdsong-booploader
ln -sf "$out/mcuboot/zephyr/zephyr.hex" "$out/mcuboot.hex"