You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/12/20 13:12:12 UTC

[GitHub] [incubator-nuttx-apps] gustavonihei commented on a change in pull request #929: MCUboot move apps to examples

gustavonihei commented on a change in pull request #929:
URL: https://github.com/apache/incubator-nuttx-apps/pull/929#discussion_r772352237



##########
File path: examples/mcuboot_ota/Kconfig
##########
@@ -0,0 +1,63 @@
+#
+# For a description of the syntax of this configuration file,
+# see the file kconfig-language.txt in the NuttX tools repository.
+#
+
+menuconfig EXAMPLES_MCUBOOT_OTA
+	tristate "MCUboot OTA example"
+	default n
+	select BOOT_MCUBOOT
+	---help---
+		Example application demonstrate a software firmware update.
+		It downloads an application firmware image from a given URL.
+
+if EXAMPLES_MCUBOOT_OTA
+
+comment "This example requires network"
+	depends on !NET_TCP
+
+choice EXAMPLES_MCUBOOT_OTA_APP
+	prompt "Select MCUboot application"
+	default EXAMPLES_MCUBOOT_OTA_APP_AGENT
+	depends on NET_TCP
+	---help---
+		Select MCUboot application.
+
+config EXAMPLES_MCUBOOT_OTA_APP_AGENT
+	bool "Agent"
+	---help---
+		Implements the update agent that downloads the application
+		firmware image from a given URL and saves it to the secondary
+		slot as a pending update.
+
+config EXAMPLES_MCUBOOT_OTA_APP_CONFIRM
+	bool "Confirm"
+	---help---
+		Is the application to be download to demonstrate firmware
+		upgrade functionality.
+
+endchoice

Review comment:
       What's the reason for making this examples mutually-exclusive?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org