boot: zephyr: Add MCUboot status callback support

Adds an optional callback when the MCUboot status changes which can
allow components to react.

Signed-off-by: Jamie McCrae <jamie.mccrae@lairdconnect.com>
diff --git a/boot/zephyr/Kconfig b/boot/zephyr/Kconfig
index 0efd0f0..c67d9e3 100644
--- a/boot/zephyr/Kconfig
+++ b/boot/zephyr/Kconfig
@@ -582,6 +582,16 @@
 	  located. If the key file is not there, the build system uses relative
 	  path that starts from the zephyr port cmake directory (boot/zephyr/).
 
+config MCUBOOT_ACTION_HOOKS
+	bool "Enable hooks for responding to MCUboot status changes"
+	help
+	  This will call a handler when the MCUboot status changes which allows
+	  for some level of user feedback, for instance to change LED status to
+	  indicate a failure, using the callback:
+	  'void mcuboot_status_change(mcuboot_status_type_t status)' where
+	  'mcuboot_status_type_t' is listed in
+	  boot/bootutil/include/bootutil/mcuboot_status.h
+
 endmenu
 
 config MCUBOOT_DEVICE_SETTINGS