nuttx: extend configuration options
* the default upgrade mode.
*/
-/* Uncomment to enable the overwrite-only code path. */
+/* Enable the overwrite-only code path. */
-/* #define MCUBOOT_OVERWRITE_ONLY */
-
-#ifdef MCUBOOT_OVERWRITE_ONLY
+#ifdef CONFIG_MCUBOOT_OVERWRITE_ONLY
+# define MCUBOOT_OVERWRITE_ONLY
+#endif
-/* Uncomment to only erase and overwrite those primary slot sectors needed
+/* Only erase and overwrite those primary slot sectors needed
* to install the new image, rather than the entire image slot.
*/
-/* #define MCUBOOT_OVERWRITE_ONLY_FAST */
+#ifdef CONFIG_MCUBOOT_OVERWRITE_ONLY_FAST
+# define MCUBOOT_OVERWRITE_ONLY_FAST
+#endif
+/* Enable the direct-xip code path. */
+
+#ifdef CONFIG_MCUBOOT_DIRECT_XIP
+# define MCUBOOT_DIRECT_XIP
#endif
-/* Uncomment to enable the direct-xip code path. */
+/* Enable the revert mechanism in direct-xip mode. */
-/* #define MCUBOOT_DIRECT_XIP */
+#ifdef CONFIG_MCUBOOT_DIRECT_XIP_REVERT
+# define MCUBOOT_DIRECT_XIP_REVERT
+#endif
-/* Uncomment to enable the ram-load code path. */
+/* Enable the ram-load code path. */
-/* #define MCUBOOT_RAM_LOAD */
+#ifdef CONFIG_MCUBOOT_RAM_LOAD
+# define MCUBOOT_RAM_LOAD
+#endif
+
+/* Enable bootstrapping the erased primary slot from the secondary slot */
+
+#ifdef CONFIG_MCUBOOT_BOOTSTRAP
+# define MCUBOOT_BOOTSTRAP
+#endif
/* Cryptographic settings
*
