LinuxLoader : Disable display menu flag for auto
This change will disable the display menu enablement for auto
targets for android R.
Change-Id: I4424f0fae856c8965863bf9e1cd1cb71dc28eba7
Signed-off-by: Anuj Garg <anujgarg@codeaurora.org>
diff --git a/QcomModulePkg/Library/BootLib/FastbootMenu.c b/QcomModulePkg/Library/BootLib/FastbootMenu.c
index 8349114..61d78e5 100644
--- a/QcomModulePkg/Library/BootLib/FastbootMenu.c
+++ b/QcomModulePkg/Library/BootLib/FastbootMenu.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -36,6 +36,7 @@
#include <Library/MenuKeysDetection.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UpdateDeviceTree.h>
+#include <Library/BootLinux.h>
#include <Protocol/EFIVerifiedBoot.h>
#include <Uefi.h>
@@ -320,9 +321,9 @@
{
EFI_STATUS Status;
OPTION_MENU_INFO *OptionMenuInfo;
- OptionMenuInfo = &gMenuInfo;
- if (FixedPcdGetBool (EnableDisplayMenu)) {
+ if (IsEnableDisplayMenuFlagSupported ()) {
+ OptionMenuInfo = &gMenuInfo;
DrawMenuInit ();
OptionMenuInfo->LastMenuType = OptionMenuInfo->Info.MenuType;