zephyr: add zephyr's sanitycheck description
Added sample.yaml which is required for automatic building
mcuboot using zephyr sanitycheck.
Can be run by zephyr sanitycheck locally using
--testcase-root=/path/to/mcuboot/boot/zephyr
to make it detect the sample.yaml added.
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
diff --git a/boot/zephyr/sample.yaml b/boot/zephyr/sample.yaml
new file mode 100644
index 0000000..d486aac
--- /dev/null
+++ b/boot/zephyr/sample.yaml
@@ -0,0 +1,15 @@
+sample:
+ description: mcuboot test build sample
+ name: mcuboot
+
+tests:
+ sample.bootloader.mcuboot:
+ tags: bootloader_mcuboot
+ platform_whitelist: nrf52840_pca10056 frdm_k64f
+ sample.bootloader.mcuboot.serial_recovery:
+ extra_args: OVERLAY_CONFIG=serial_recovery.conf
+ platform_whitelist: nrf52840_pca10056
+ tags: bootloader_mcuboot
+ sample.bootloader.mcuboot.usb_cdc_acm_recovery:
+ tags: bootloader_mcuboot
+ platform_whitelist: nrf52840_pca10059
diff --git a/boot/zephyr/serial_recovery.conf b/boot/zephyr/serial_recovery.conf
new file mode 100644
index 0000000..ddd08fc
--- /dev/null
+++ b/boot/zephyr/serial_recovery.conf
@@ -0,0 +1,3 @@
+CONFIG_MCUBOOT_SERIAL=y
+CONFIG_BOOT_SERIAL_UART=y
+CONFIG_UART_CONSOLE=n