From 1370be0e5fbbf72600642b4bd31f4f9626e343f2 Mon Sep 17 00:00:00 2001 From: Sergii Dmytruk Date: Thu, 25 Jul 2024 00:45:10 +0300 Subject: [PATCH] DasharoModulePkg/DasharoSystemFeaturesUiLib: Add UI note on ME vs. capsules Signed-off-by: Sergii Dmytruk --- .../DasharoSystemFeaturesStrings.uni | 2 ++ .../DasharoSystemFeaturesUiLib/DasharoSystemFeaturesVfr.vfr | 3 +++ 2 files changed, 5 insertions(+) diff --git a/DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesStrings.uni b/DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesStrings.uni index 307787aee7..5a07842f8e 100644 --- a/DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesStrings.uni +++ b/DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesStrings.uni @@ -65,6 +65,8 @@ #string STR_DASHARO_INTEL_ME_OPTIONS_TITLE #language en-US "Intel Management Engine Options" #string STR_DASHARO_INTEL_ME_OPTIONS_HELP #language en-US "Configuration for Intel Management Engine" +#string STR_CAPSULE_UPDATE_MSG #language en-US "Setting 'Intel ME mode' to 'Disabled (HAP)' allows updating system firmware via a UEFI capsule." + #string STR_ME_MODE_PROMPT #language en-US "Intel ME mode" #string STR_ME_MODE_HELP #language en-US "Operation mode of the Intel Management Engine. The ME can be enabled, or disabled using various methods.\n\n" "Enabled: Enable the Intel Management Engine.\n\n" diff --git a/DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesVfr.vfr b/DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesVfr.vfr index b843979bba..12d0131c25 100644 --- a/DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesVfr.vfr +++ b/DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesVfr.vfr @@ -218,6 +218,9 @@ formset subtitle text = STRING_TOKEN(STR_EMPTY_STRING); disableif ideqval FeaturesData.ShowIntelMeMenu == 0; + disableif ideqval FeaturesData.MeHapAvailable == 0; + subtitle text = STRING_TOKEN(STR_CAPSULE_UPDATE_MSG); + endif; oneof varid = FeaturesData.MeMode, questionid = INTEL_ME_MODE_QUESTION_ID, prompt = STRING_TOKEN(STR_ME_MODE_PROMPT),