16 lines
505 B
Bash
Executable file
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"
|