mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Add magicvar description for autoboot variables
@ 2020-04-20 13:49 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2020-04-20 13:49 UTC (permalink / raw)
  To: Barebox List

global.autoboot_abort_key and global.autoboot_timeout lack a magicvar
description. Add one.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 common/startup.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/startup.c b/common/startup.c
index c417a4d078..e251142fca 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -39,6 +39,7 @@
 #include <errno.h>
 #include <linux/stat.h>
 #include <envfs.h>
+#include <magicvar.h>
 #include <asm/sections.h>
 #include <uncompress.h>
 #include <globalvar.h>
@@ -391,3 +392,10 @@ void shutdown_barebox(void)
 		(*exitcall)();
 	}
 }
+
+BAREBOX_MAGICVAR_NAMED(global_autoboot_abort_key,
+                       global.autoboot_abort_key,
+                       "Which key allows to interrupt autoboot. Possible values: any, ctrl-c");
+BAREBOX_MAGICVAR_NAMED(global_autoboot_timeout,
+                       global.autoboot_timeout,
+                       "Timeout before autoboot starts in seconds");
-- 
2.26.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-20 13:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 13:49 [PATCH] Add magicvar description for autoboot variables Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox