Add Kconfig for the zephyr's build of mcuboot

This path introduces settings related to zephyr mcuboot
serial recovery mode. It force selection on modules which are
necessary to compile this project.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
diff --git a/Kconfig b/Kconfig
new file mode 100644
index 0000000..4127dc7
--- /dev/null
+++ b/Kconfig
@@ -0,0 +1,44 @@
+# Copyright (c) 2017 Linaro Limited
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+mainmenu "MCUBOOT configuration"
+
+config ZEPHYR_BASE
+	string
+	option env="ZEPHYR_BASE"
+
+source "$ZEPHYR_BASE/Kconfig.zephyr"
+
+menuconfig MCUBOOT_SERIAL
+	bool
+	prompt "MCUBOOT serial recovery"
+	default n
+	select REBOOT
+	help
+	  Enable serial recovery feature in mcuboot.
+
+config BOOT_SERIAL_DETECT_PORT
+	string
+	prompt "GPIO Port to trigger serial recovery mode"
+	default CONFIG_GPIO_NRF5_P0_DEV_NAME
+	depends on MCUBOOT_SERIAL
+	help
+	  Serial recovery detect port
+
+config BOOT_SERIAL_DETECT_PIN
+	int
+	prompt "Pin to trigger serial recovery mode"
+	default 0
+	depends on MCUBOOT_SERIAL
+	help
+	  Serial recovery detect pin
+
+config BOOT_SERIAL_DETECT_PIN_VAL
+	int "Boot Pin trigger value"
+	default 0
+	range 0 1
+	depends on MCUBOOT_SERIAL
+	help
+	  The input pin logic value which triggers the boot serial recovery mode.