[lkboot] add flag to disable autoboot from a project

Change-Id: Iea9c714c869543ba486f63a6604f379acd469385
This commit is contained in:
Nathaniel Quillin
2015-06-18 13:09:56 -07:00
committed by Travis Geiselbrecht
parent f963a62468
commit 6c3dc4cdda

View File

@@ -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) {