Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Commit ab78d30

Browse files
committed
remove UI display and remove logs
This can reduce 5 seconds boot delay in un-secure boot case Tracked-On: Signed-off-by: Chen Gang G <gang.g.chen@intel.com>
1 parent 6e8a8c9 commit ab78d30

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

Android.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ ifneq ($(TARGET_BUILD_VARIANT),user)
9292
endif
9393

9494
ifneq ($(strip $(KERNELFLINGER_USE_UI)),false)
95-
KERNELFLINGER_CFLAGS += -DUSE_UI
9695
endif
9796

9897
ifeq ($(KERNELFLINGER_OS_SECURE_BOOT),true)

avb/Android.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ LOCAL_STATIC_LIBRARIES := \
6868
libkernelflinger-$(TARGET_BUILD_VARIANT)
6969

7070
ifneq ($(strip $(KERNELFLINGER_USE_UI)),false)
71-
LOCAL_CFLAGS += -DUSE_UI
7271
endif
7372

7473
LOCAL_SRC_FILES := \

include/log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void vlog(const CHAR16 *fmt, va_list args);
4848
#ifdef USER
4949
#define DEBUG_MESSAGES 0
5050
#else
51-
#define DEBUG_MESSAGES 1
51+
#define DEBUG_MESSAGES 0
5252
#endif
5353
#endif
5454

kernelflinger.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ static VOID enter_fastboot_mode(UINT8 boot_state)
11031103

11041104
die();
11051105
}
1106-
static void bootloader_recover_mode(UINT8 boot_state)
1106+
static void bootloader_recover_mode(UINT8 boot_state __unused)
11071107
{
11081108
enum boot_target target;
11091109

@@ -1130,8 +1130,8 @@ static void bootloader_recover_mode(UINT8 boot_state)
11301130
die();
11311131
}
11321132

1133-
static VOID boot_error(enum ux_error_code error_code, UINT8 boot_state,
1134-
UINT8 *hash, UINTN hash_size)
1133+
static VOID boot_error(enum ux_error_code error_code __unused, UINT8 boot_state,
1134+
UINT8 *hash __unused, UINTN hash_size __unused)
11351135
{
11361136
BOOLEAN power_off = FALSE;
11371137
enum boot_target bt;

0 commit comments

Comments
 (0)