[lkboot] add flag to disable autoboot from a project
Change-Id: Iea9c714c869543ba486f63a6604f379acd469385
This commit is contained in:
committed by
Travis Geiselbrecht
parent
f963a62468
commit
6c3dc4cdda
@@ -49,6 +49,9 @@
|
||||
#ifndef LKBOOT_WITH_SERVER
|
||||
#define LKBOOT_WITH_SERVER 1
|
||||
#endif
|
||||
#ifndef LKBOOT_AUTOBOOT
|
||||
#define LKBOOT_AUTOBOOT 1
|
||||
#endif
|
||||
#ifndef LKBOOT_AUTOBOOT_TIMEOUT
|
||||
#define LKBOOT_AUTOBOOT_TIMEOUT 5000
|
||||
#endif
|
||||
@@ -307,6 +310,10 @@ static void lkboot_task(const struct app_descriptor *app, void *args)
|
||||
if (platform_abort_autoboot())
|
||||
autoboot = 0;
|
||||
|
||||
#if !LKBOOT_AUTOBOOT
|
||||
autoboot = 0;
|
||||
#endif
|
||||
|
||||
/* if we're going to autoobot, read the timeout value */
|
||||
lk_time_t autoboot_timeout;
|
||||
if (!autoboot) {
|
||||
|
||||
Reference in New Issue
Block a user