summaryrefslogtreecommitdiff
path: root/Platform
AgeCommit message (Collapse)Author
2019-07-12Vlv2TbltDevicePkg: Only build capsules for X64Michael D Kinney
Only build capsules for X64 builds. More changes are required to build IA32 capsules. 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>
2019-07-12Vlv2TbltDevicePkg: Clean up all build scriptsMichael D Kinney
* Remove cln.sh * Remove unused PlatformDefintions.h file * Remove unused defines from DSC files * Make Windows and Linux script more consistent * Remove unused options from Windows/Linux scripts * Remove unused defines from Windows/Linux scripts * Do not modify Target.txt in Conf directory. Instead, pass all build flags on the command line * Generate build report in the build output directory * Generate build logs in the build output directory * Do not delete files from Conf directory * Update clean operation to only clean one platform target * Do not generate AutoPlatformCFG.txt file anymore 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>
2019-07-12Vlv2TbltDevicePkg: Reorganize the librariesGary Lin
* Simplify the logic of importing TpmMeasurementLib * Import BaseCryptLib, OpensslLib, and IntrinsicLib unconditionally since FmpDxe needs them * Import FileExplorerLib unconditionally since UiApp needs it * Update the import of TPM/TCG libraries Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg: Import TlsLib for HTTPS BootGary Lin
When setting NETWORK_TLS_ENABLE to TRUE, we need TlsLib. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg: Add GCC IA32 build supportMichael D Kinney
* Remove CpuIa32Lib that contains inline assembly that is not compatible with GCC builds. Use BaseLib functions for CPUID and MSR access and the CPUID and MSR defintions from the UefiCpuPkg. * Add PlatformPkgGccIa32.dsc * Add /IA32 flag to Build_IFWI.sh * Add /IA32 flag to bld_vlv.sh * Remove unused references to gEfiPlatformCpuInfoGuid 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>
2019-07-12Vlv2TbltDevicePkg: Re-enable BIOS ID featureMichael D Kinney
Add back BIOSID feature using GenBiosId.py script and BiosIdLib from the BoardModulePkg. Remove the VLV2 specific BiosIdLib implementation. 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>
2019-07-12Vlv2TbltDevicePkg: Remove redundant gEfiSpiProtocolGuidMichael D Kinney
Remove redundant declaration of gEfiSpiProtocolGuid. This protocol is defined in Vlv2DeviceRefCodePkg. 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>
2019-07-12Vlv2TbltDevicePkg/Build_IFWI.sh: Check the WORKSPACE env variableGary Lin
Check WORKSPACE before running the script and notify the user to export the variable if the variable doesn't exist Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlvt2TbltDevicePkg: Fix NULL pointer access in SmbiosMiscDxeMichael D Kinney
Handle case where no Simple Network Protocols are found. 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>
2019-07-12Vlv2TbltDevicePkg: Update Linux build scriptsMichael D Kinney
* Do not change WORKSPACE env var. Assume it is set before running script. * Access Conf dir relative to WORKSPACE * Run Build_IFWI.sh from the Vlv2Tbl2DevicePkg dir * run bld_vlv.sh from same dir as Build_IFWI.sh 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>
2019-07-12Vlv2TbltDevicePkg: Import SD/MMC driversGary Lin
Import the SD card/MMC drivers from MdeModulePkg Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/SmBiosMiscDxe: Fix the indentationGary Lin
Fix the indentation of MiscSystemManufacturerFunction.c to improve the readability. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/AcpiPlatform: Fix the error from InstallAcpiTableGary Lin
The firmware crashed when installing ACPI tables: ASSERT_EFI_ERROR (Status = Invalid Parameter) ASSERT [AcpiPlatform] edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c(1162): !EFI_ERROR (AcpiStatus) The 'Size' from ReadSection() is not the size of the ACPI table so InstallAcpiTable() returned EFI_INVALID_PARAMETER. Use the 'Length' from the header to avoid the crash. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/AcpiPlatform: Remove a unused variableGary Lin
TableVersion in AcpiPlatformEntryPoint() is not used anymore. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/GenerateCapsule: Fix the bash scriptsGary Lin
Adjust the paths to fit the current directory structure Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Create Vlv.ROMGary Lin
The scripts for PlatformCapsuleGcc.dsc need Vlv.ROM. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Fix path to PlatformCapsuleGcc.dscGary Lin
For the gcc build, we should use PlatformCapsuleGcc.dsc instead of PlatformCapsule.dsc. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Remove BiosId.env completelyGary Lin
Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg: Add the missing headers to inf filesGary Lin
Some headers files are not listed in the inf files. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Update the script to fit edk2-platformsGary Lin
https://bugzilla.tianocore.org/show_bug.cgi?id=1599 * Add "set -e" to exit immediately on error * Update the paths to fit the directory changes WORKSPACE +------edk2 (CORE) | +------edk2-platforms | | | +---Platform | | | | | +---Intel | | | | | +---Vlv2TbltDevicePkg (PLATFORM) | | | +---Silicon | | | +---Intel | | | +---Vlv2DeviceRefCodePkg (SILICON) | +------edk2-non-osi | +---Silicon | +---Intel | +---Vlv2SocBinPkg (BINARY) * Sync a part of bld_vlv.sh from the devel-MinnowBoardMax-UDK2017 branch to enable capsule building * Export TARGET and TOOL_CHAIN_TAG so that the GenerateCapsule scripts can use those variables Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Remove ECP completelyGary Lin
Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Update the gcc version detectionGary Lin
Borrow the logic from OvmfPkg/build.sh Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/bld_vlv.sh: Fix the log nameGary Lin
Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/Build_IFWI.sh: Change the root directory pathGary Lin
Also make Build_IFWI.sh executable Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-12Vlv2TbltDevicePkg/Build_IFWI.sh: Add "set -e" to exit on errorGary Lin
https://bugzilla.tianocore.org/show_bug.cgi?id=1599 Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Zailiang Sun <zailiang.sun@intel.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-03Platform/ARM: Disable deprecated APIsSami Mujawar
Add DISABLE_NEW_DEPRECATED_INTERFACES macro to the Arm platform build flags to disable the use of deprecated APIs. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-03Platform/ARM: Juno: Fix usage of deprecated macrosSami Mujawar
Replaced the use of unsafe/deprecated macros with alternate safe options. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-02ClevoOpenBoardPkg: Added OS boot supportAgyeman, Prince
These changes add OS boot support to N1xxWU platforms Test: N1xxWU currently boots to windows 10 Cc: Liming Gao <liming.gao@intel.com> Cc: David Y Wei <david.y.wei@intel.com> Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Co-authored-by: David Y Wei <david.y.wei@intel.com> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Ankit Sinha <ankit.sinha@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2019-07-02Platform/Intel:Change the way of getting the env file contentFan, Zhiju
The env file content can not be retrieved by using the original method, so we change the way to read the content. And we change the env file to original format. This patch is going to fix the issue. Cc: Liming Gao <liming.gao@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-07-02QuarkPlatformPkg: Remove Intel Framework dependenciesKinney, Michael D
* Add platform version of DataHubRecords.h to support creation of SMBIOS records. * Remove use of gEfiAcpiS3SaveProtocolGuid and EFI_ACPI_S3_SAVE_PROTOCOL * Add platform specific PcdBootState PCD * Remove unused AcpiS3SaveDxe module from IntelFramworkModulePkg * Remove unused FwVolDxe module from IntelFramworkModulePkg * Remove unused UpdateDriverDxe module from IntelFramworkModulePkg * Remove Quark specific boot script executor. Use MdeModulePkg one instead. * Update DebugLib mapping for DXE_RUNTIME_DRIVER modules to runtime safe DxeRuntimeDebugLibSerialPort. * Replace PcdS3AcpiReservedMemorySize from IntelFrameworkModulePkg with new PcdS3AcpiReservedMemorySize in QuarkPlatformPkg. * Add CpuS3DataDxe module to DSC/FDF * Remove unused includes and GUIDs from Intel Framework packages. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-02QuarkPkatformPkg: Update MemoryTypeInformation to reduce rebootsMichael D Kinney
Adjust size of bins in Memory Type Information HOB to eliminate extra reboot after first boot. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-02QuarkPlatformPkg: Update network library mappingsMichael D Kinney
Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2019-07-01Vlv2TbltDevicePkg/PlatformInitPei: Update MemoryTypeInformationMichael D Kinney
Reduce extra reboots when UEFI Shell is run followed by an OS boot. The extra reboot is due to use of EfiLoaderCode that exceeds the MemoryTypeInformation bin size. EfiLoaderCode should not be tracked. Remove all memory types that should not be tracked, and update the remaining bin sizes based on observed memory usage on an X64 DEBUG profile. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Change to PI Spec ACPI Table ProtocolMichael D Kinney
Remove use of ACPI Support Protocol from IntelFrameworkPkg and use the ACPI Table Protocol and ACPI SDT Protocol from the MdePkg. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg/PlatformSmm: Switch to PI SMM ProtocolsMichael D Kinney
Change use of Intel Framework SMM Protocols to PI SMM Protocols. This removes Intel Framework dependencies. The PI SMM Protocols added are: * gEfiSmmPowerButtonDispatch2ProtocolGuid * gEfiSmmSxDispatch2ProtocolGuid * gEfiSmmSwDispatch2ProtocolGuid Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Update boot mode/state behaviorsMichael D Kinney
* Add platform specific PcdBootState PCD to remove Intel Framework dependency * Set PcdUserPhysicalPresence to TRUE to Enable UEFI Secure Boot Setup Menus * Remove unused code when NOCS_S3_SUPPORT is not set * Update PlatformBootManagerLib to not perform a connect all when FastBoot is enabled. * Add support for BOOT_ON_FLASH_UPDATE * Remove logic in CheckSystemConfigSave() that was generating an ASSERT() when setup changes were saved. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Switch to MdeModulePkg BdsDxeMichael D Kinney
Switch from Intel Framework BDS module and libraries to the MdeModulePkg BdsDxe module and libraries. Update FLASH map for full 8MB FLASH size Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Use PI Spec SMBUS2 PPIMichael D Kinney
* Switch from Intel Framework SMBUS PPI to the PI Spec SMBUS2 PPI. * Remove unused SmbusLib. Use SmbusLibNull instead. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Remove use of Data Hub ProtocolMichael D Kinney
Update all platform code to stop using the Data Hub Protocol from the IntelFrameworkPkg. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Remove use of BIOS ID toolsMichael D Kinney
Remove the use of VLV2 specific BIOS ID tools. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Remove use of PS/2 Policy ProtocolMichael D Kinney
This platform does not have a PS/2 controller, so remove all references to the PS/2 Policy Protocol. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Switch to CPU I/O 2 ProtocolMichael D Kinney
* Remove unused references to CPU I/O Protocol defined in IntelFrameworkPkg * Convert valid usage of CPU I/O Protocol to the CPU I/O 2 Protocol Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Switch from ISA to SIO modulesMichael D Kinney
Remove IntelFrameworkModulePkg ISA related modules and replace with MdeModulePkg SIO modules. * Retire Wpce791 module * Retire gEfiLpcWpce791PolicyProtocolGuid and include file * Retire gEfiLpcWpc83627PolicyProtocolGuid and include file * Remove production of gEfiLpcWpc83627PolicyProtocolGuid from PlatformDxe module * Add PcuSio module * Use PciSioSerialDxe module Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Remove unused modules/librariesMichael D Kinney
* Delete platform specific SerialPortLib * Delete platform specific Metronome module * Delete platform specific BootScriptSaveDxe module * Delete SmmSwDispatch2OnSmmSwDispatchThunk module * Delete SmramSaveInfoHandlerSmm module * Delete unused FSP content * Delete unused I2C content * Delete unused Stitch content * Delete unused portions of PlatformSmm module Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01Vlv2TbltDevicePkg: Reduce Intel Framework dependenciesMichael D Kinney
* Use BaseSerialPortLib16550 from MdeModulePkg. * Remove unused DxeSmmDriverEntryPoint library instance mapping from the IntelFrameworkPkg. * Remove all references to PS/2 Keyboard/Mouse that are not available on MinnowMax. * Remove VgaClassDxe module from IntelFrameworkModulePkg that is not used. * Remove DatahubStatusCodeHandlerDxe module from the IntelFrameworkModulePkg that is not used. * Remove LegacyRegionDxe module from the IntelFrameworkModulePkg The Legacy Region Protocol produced by this module is not used. * Remove VLV2 specific Metronome module that uses the CPU I/O Protocol defined in the IntelFrameworkPkg. Instead, use the Metronome module from the MdeModulePkg that produces the Metronome Arch Protocol from a TimerLib instance. * Remove use of MpCpu.inf from DSC/FDF file. * Update DSC/FDF/source files to assume MINNOW2_FSP_BUILD is FALSE. * Update DSC/FDF/source files to assume FTPM_ENABLE is FALSE. * Remove TXT binary * Use PcAtChisetPkg HpetDxe module instead of the VLV2 specific SmartTimer module that has an IntelFramework dependency. * Remove SEC_ENABLE define and dependent modules. * Remove IdeBusDxe module from DSC files. IdeBusDxe is listed in DSC file, but not the FDF file, so it is not used. This removes an IntelFrameworkModulkePkg dependency. * Remove commented out SDIO and PiSmmCommunicationPei modules * Remove unused Intel Framework S3Lib * Remove use of PCD from the IntelFrameworkModulePkg PcdEbdaReservedMemorySize. * Remove EdkCompatibilityPkg related [BuildOptions] sections * Remove unused DEFINES from DSC/FDF * Remove unused references to Ppi/Cache.h from Vlv2SocBinPkg.dec * Remove unused references to gPeiCachePpiGuid from Vlv2SocBinPkg.dec * Remove unused references to gEfiHtBistHobGuid from Vlv2SocBinPkg.dec * Remove unused references to gEfiCpuTokenSpaceGuid PCDs from Vlv2SocBinPkg.dec * Remove unused IntelPchLegacyInterrupt module * Remove CpuIoDxe module from IntelFrameworkModulePkg * Remove duplicate declaration of gEfiAcpiSupportProtocolGuid from Vlv2Tblt2DevicePkg * Remove duplicate declaration of PcdShellFile from Vlv2Tblt2DevicePkg * Remove unused gEfiAcpiTableProtocolGuid from AcpiPlatform.inf * Add E7006X3 UNDI module to FDF files * Remove gEfiSimpleNetworkProtocolGuid dependency. If gEfiSimpleNetworkProtocolGuid is not produced, still allow all SMBIOS records to be produced. The MAC address from Simple Network Protocol is being used as a system serial number. If Simple Network Protocol is not available, then default to a serial number of 0. * Remove unused dependency on IntelFspWrapperPkg * Remove Intel Framework S3 support. * Remove use of the gEfiSmmPeiSmramMemoryReserveGuid GUIDed HOB. * Remove production of unused gEfiFindFvPpiGuid. * Update IA32 only builds to use a unique BUILD_OUTPUT directory Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-07-01MinPlatformPkg: FSP Python script to python 3.x.Chasel Chiu
https://bugzilla.tianocore.org/show_bug.cgi?id=1930 Updated FSP Python script to support both 2.x and 3.x. Test: . Verified with Python 2.7.12 and 3.6.6. . Verified tool result is the same before the change. . Both py -2 and py -3 built binary can boot. Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2019-06-28Platform/Intel:Add UniTool into edk2-platforms/Platform/Intel/ToolsFan, ZhijuX
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1855 UniTool is one python script to generate UQI (Universal Question Identifier) unicode string for HII question PROMPT string. UQI string can be used to identify each HII question. The scripts function will sync up UQI definitions with uni files based on vfi/vfr/hfr/sd/sdi in the tree. This script can be run in both Py2 and Py3. Cc: Liming Gao <liming.gao@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-06-28Platform/PurleyOpenBoardPkg: Remove --nt32 flag of edkseupDandan Bi
Since Nt32Pkg has been removed from edk2 repo, and we will also remove the --nt32 flag in edksetup.bat. So here update platform to pass build. Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-06-28Platform/Vlv2TbltDevicePkg: Remove dependency of DxeDeferImageLoadLibShenglei Zhang
The library DxeDeferImageLoadLib supports UID feature and it is conflicted with the driver SecurityStubDxe. And the UID feature is dropped. So DxeDeferImageLoadLib should be removed. Cc: Zailiang Sun <zailiang.sun@intel.com> Cc: Yi Qian <yi.qian@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-By: Zailiang Sun <zailiang.sun@intel.com>
2019-06-26Platform/Intel:Add GenBiosId into edk2-platforms/Platform/Intel/ToolsFan, ZhijuX
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1855 GenBiosId is a tool to generate the BIOS ID binary file which uses the data from the configuration file. This tool can be run in both Py2 and Py3. This patch is going to add GenBiosId to Platform/Intel/Tools Cc: Liming Gao <liming.gao@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>