diff options
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | fallback.c | 20 |
2 files changed, 20 insertions, 4 deletions
@@ -54,6 +54,10 @@ SOURCES = $(foreach source,$(ORIG_SOURCES),$(TOPDIR)/$(source)) version.c MOK_SOURCES = $(foreach source,$(ORIG_MOK_SOURCES),$(TOPDIR)/$(source)) FALLBACK_SRCS = $(foreach source,$(ORIG_FALLBACK_SRCS),$(TOPDIR)/$(source)) +ifneq ($(origin FALLBACK_VERBOSE_WAIT), undefined) + CFLAGS += -DFALLBACK_VERBOSE_WAIT=$(FALLBACK_VERBOSE_WAIT) +endif + all: $(TARGETS) update : @@ -942,8 +942,14 @@ try_start_first_option(EFI_HANDLE parent_image_handle) EFI_HANDLE image_handle; if (get_fallback_verbose()) { - console_print(L"Verbose enabled, sleeping for half a second\n"); - msleep(500000); + int fallback_verbose_wait = 500000; /* default to 0.5s */ +#ifdef FALLBACK_VERBOSE_WAIT + fallback_verbose_wait = FALLBACK_VERBOSE_WAIT; +#endif + console_print(L"Verbose enabled, sleeping for %d mseconds... " + L"Press the Pause key now to hold for longer.\n", + fallback_verbose_wait); + msleep(fallback_verbose_wait); } if (!first_new_option) { @@ -1137,8 +1143,14 @@ reset: console_print(L"Reset System\n"); if (get_fallback_verbose()) { - console_print(L"Verbose enabled, sleeping for half a second\n"); - msleep(500000); + int fallback_verbose_wait = 500000; /* default to 0.5s */ +#ifdef FALLBACK_VERBOSE_WAIT + fallback_verbose_wait = FALLBACK_VERBOSE_WAIT; +#endif + console_print(L"Verbose enabled, sleeping for %d mseconds... " + L"Press the Pause key now to hold for longer.\n", + fallback_verbose_wait); + msleep(fallback_verbose_wait); } gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL); |
