diff --git a/.github/test_build_blinky.sh b/.github/test_build_blinky.sh index f0fea3a466..85cf8d7187 100644 --- a/.github/test_build_blinky.sh +++ b/.github/test_build_blinky.sh @@ -50,7 +50,20 @@ for bsp in ${BSPS}; do fi - echo "Testing bsp=$bsp" + echo "Testing bootloader bsp=$bsp" + + target_boot="test-boot-$bsp" + newt target delete -s -f $target_boot &> /dev/null + newt target create -s $target_boot + newt target set -s $target_boot bsp="@apache-mynewt-core/hw/bsp/$bsp" + newt target set -s $target_boot app="@mcuboot/boot/mynewt" + newt target set -s $target_boot build_profile=optimized + newt build -q $target_boot + + rc=$? + [[ $rc -ne 0 ]] && EXIT_CODE=$rc + + echo "Testing blinky bsp=$bsp" target="test-blinky-$bsp" newt target delete -s -f $target &> /dev/null @@ -62,6 +75,7 @@ for bsp in ${BSPS}; do rc=$? [[ $rc -ne 0 ]] && EXIT_CODE=$rc + newt target delete -s -f $target_boot newt target delete -s -f $target done