Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernelflinger: Disalbe UI display function #51 #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ ifneq ($(TARGET_BUILD_VARIANT),user)
endif

ifneq ($(strip $(KERNELFLINGER_USE_UI)),false)
KERNELFLINGER_CFLAGS += -DUSE_UI
endif

ifeq ($(KERNELFLINGER_OS_SECURE_BOOT),true)
Expand Down
1 change: 0 additions & 1 deletion avb/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ LOCAL_STATIC_LIBRARIES := \
libkernelflinger-$(TARGET_BUILD_VARIANT)

ifneq ($(strip $(KERNELFLINGER_USE_UI)),false)
LOCAL_CFLAGS += -DUSE_UI
endif

LOCAL_SRC_FILES := \
Expand Down
9 changes: 4 additions & 5 deletions kernelflinger.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ static VOID enter_fastboot_mode(UINT8 boot_state)

die();
}
static void bootloader_recover_mode(UINT8 boot_state)
static void bootloader_recover_mode(UINT8 boot_state __unused)
{
enum boot_target target;

Expand All @@ -1136,8 +1136,8 @@ static void bootloader_recover_mode(UINT8 boot_state)
die();
}

static VOID boot_error(enum ux_error_code error_code, UINT8 boot_state,
UINT8 *hash, UINTN hash_size)
static VOID boot_error(enum ux_error_code error_code __unused, UINT8 boot_state,
UINT8 *hash __unused, UINTN hash_size __unused)
{
BOOLEAN power_off = FALSE;
enum boot_target bt;
Expand Down Expand Up @@ -1241,8 +1241,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table)
/* For civ, flash images to disk is not MUST. So set device to LOCKED
* state by default on the first boot.
*/
if (need_lock)
set_current_state(LOCKED);
set_current_state(UNLOCKED);

ret = set_device_security_info(NULL);
if (EFI_ERROR(ret)) {
Expand Down