-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vlv2TbltDevicePkg: Convert use of FCE tool to Structured PCD
Update this platform to not use the FCE tool to init the platform setup variable with default values from HII forms. Instead, use a Structured PCD with field default values extracted from the HII. The default value for the Structured PCD is stored in the VPD region of the FLASH, so it is always available. The platform setup variable is set to the value from the VPD region if the variable does not exist or is the wrong size. This change also removes the need for Linux/GCC binary files use to initialize the NV store. * Update PlatformSetupoDxe VFR to declare the platform setup structure as an efivarstore instead of varstore. * Update PlatformSetupDxe to return EFI_UNSUPPORTED from the HII_CONFIG_ACCESS_PROTOCOL RouteConfig() and ExtractConfig() services. * Fix a use after free issue in PlatformSetupDxe that could store a random value into the "OsSelection" when the Load Default and Exit setup menu item is used. * Add PlatformSetupDefault.dsc file that contains the default values for all setup questions. * Update DSC files to declare VPD_TOOL_GUID which is required to generate the binary file used to populate the VPD region * Update DSC files to declare Default Stores for both STANDARD and MANUFACTURING mode. Only STANDARD mode is used right now. * Update FDF files to add a VPD region * Update GCC FDF file to initialize the NvStorageVariable regions the same as the non GCC FDF file. * Update DEC file with platform setup Structured PCD called PcdSetup that is associated with the SYSTEM_CONFIGURATION C structure. * Update PlatformEarlyInit module to detect if the platform setup variable exists or is corrupt. If it does not exist or is corrupt, then set PcdSetNvStoreDefaultId to select STANDARD defaults. This initializes a HOB that contains the platform setup defaults and this HOB is used by the Variable PEIM to return the platform setup variable value. * Remove FCE.exe and BfmLib.exe files Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Gary Lin <glin@suse.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Tested-by: Gary Lin <glin@suse.com>
- Loading branch information
Showing
19 changed files
with
321 additions
and
209 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.