Andrew Fish
32e55c9f18
EmulatorPkg: Fix XCODE5 lldb issues
...
Fix scripts to support lldb symbolic debugging when
using XCODE5 tool chain.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Andrew Fish <afish@apple.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Jordan Justen <jordan.l.justen@intel.com >
Tested-by: Andrew Fish <afish@apple.com >
2019-08-19 09:57:25 -07:00
Andrew Fish
4331b9f5f0
EmulatorPkg/Unix/Host: Disable inline/optimizations for XCODE5
...
* Disable XCODE5 compiler optimizations fort Unix/Host.
* Disable inline of SecGdbScriptBreak() to improve
compatibility with XCODE5
* For X64 XCODE5 builds place output Host application
in $(BIN_DIR) to match all other EmulatorPkg Host
application builds.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Jordan Justen <jordan.l.justen@intel.com >
Tested-by: Andrew Fish <afish@apple.com >
2019-08-19 09:57:25 -07:00
Michael D Kinney
57c320c932
EmulatorPkg: Add support for NOOPT target
...
Add NOOPT to BUILD_TARGETS in DSC file.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Tested-by: Andrew Fish <afish@apple.com >
2019-08-19 09:49:58 -07:00
Michael D Kinney
9e3ab94dc8
EmulatorPkg: Add -D DISABLE_NEW_DEPRECATED_INTERFACES
...
https://bugzilla.tianocore.org/show_bug.cgi?id=162
Update EmulatorPkg specific modules and libraries to use
safe string functions in BaseLib and safe PcdSetxx()
functions in PcdLib. With these updates, the define
DISABLE_NEW_DEPRECATED_INTERFACES is enabled in the DSC
file.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
Acked-by: Jordan Justen <jordan.l.justen@intel.com >
Tested-by: Andrew Fish <afish@apple.com >
2019-08-19 09:49:54 -07:00
Michael D Kinney
50509ec66c
EmulatorPkg: Remove UNIX_SEC_BUILD/WIN_SEC_BUILD
...
https://bugzilla.tianocore.org/show_bug.cgi?id=2055
Remove the use of the defines UNIX_SEC_BUILD and
WIN_SEC_BUILD. This simplifies the build command
for the EmulatorPkg. Instead, use !if statements
in the DSC file using $(ARCH) and $(FAMILY) to
determine if the build is for a Windows or POSIX
environment.
The Readme.md, BAT, and sh files are also updated
to remove the use of these defines.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Tested-by: Andrew Fish <afish@apple.com >
2019-08-19 09:49:49 -07:00
Michael D Kinney
868254ace3
EmulatorPkg: Fix VS20xx IA32 boot failure
...
https://bugzilla.tianocore.org/show_bug.cgi?id=2056
The IA32 build of the EmulatorPkg for VS20xx does not boot
because the default value of PCD PcdPeiServicesTablePage
rarely succeeds to be mapped on IA32 Windows Host Environments.
Change the DEC default value for this PCD to a value that
is compatible with Windows and POSIX host environments for
IA32 and X64. For IA32 builds, this 64-bit PCD is truncated
to a 32-bit value.
PcdPeiServicesTablePage is changed from 0x1003000000 to
0x1013000000. With this new value, no boot failures are
observed. However, the use of this hard coded value can
potentially cause a boot failure if this address specified
by the PCD is already allocated in the user process.
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Tested-by: Andrew Fish <afish@apple.com >
2019-08-19 09:49:47 -07:00
Feng, Bob C
76e12fa334
BaseTools: Fixed issue of incorrect Module Unique Name
...
https://bugzilla.tianocore.org/show_bug.cgi?id=2088
If there are more than one override instance for a same module,
the Module Unique Name is generated incorrectly.
Cc: Liming Gao <liming.gao@intel.com >
Cc: Steven Shi <steven.shi@intel.com >
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-19 09:06:14 +08:00
Shenglei Zhang
5726bdd9a2
ShellPkg/UefiShellAcpiViewCommandLib: Replace shift logical left
...
Replace the operation to shift logical left with the function
LShiftU64, which has the same functionality.
The original code causes ShellPkg build failure with build
target"-b NOOPT".
Cc: Jaben Carsey <jaben.carsey@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2019-08-19 08:45:29 +08:00
Shenglei Zhang
944bd5cf1d
CryptoPkg: Fix coding style
...
Update attribute "Out" to "out".
The original "Out" can not pass ECC check.
Cc: Jian Wang <jian.j.wang@intel.com >
Cc: Ting Ye <ting.ye@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
2019-08-19 08:45:29 +08:00
Shenglei Zhang
501de8146d
UefiCpuPkg/Cpuid: Add description for parameter LeafFunction
...
LeafFunction needs to be described in comments.
https://bugzilla.tianocore.org/show_bug.cgi?id=2052
Cc: Eric Dong <eric.dong@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
2019-08-16 14:01:49 +08:00
Shenglei Zhang
0154e02dc7
ShellPkg/UefiShellAcpiViewCommandLib: Initialize local variables
...
At latest edk2 version, there is build failure when building ShellPkg
with VS2012x86, which results from uninitialized local variables.
Cc: Jaben Carsey <jaben.carsey@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
2019-08-16 14:01:49 +08:00
Shenglei Zhang
8906f076de
CryptoPkg/OpensslLib: Add missing header files in INF file
...
The header files are used but missing in INF,which causes
warning message when building them.
https://bugzilla.tianocore.org/show_bug.cgi?id=2036
Cc: Jian Wang <jian.j.wang@intel.com >
Cc: Ting Ye <ting.ye@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
2019-08-16 11:26:57 +08:00
Jian J Wang
f516a5144e
SecurityPkg/SecurityPkg.uni: Add missing strings for new PCDs
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2026
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Shenglei Zhang <shenglei.zhang@intel.com >
Signed-off-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com >
2019-08-16 09:53:24 +08:00
Zhang, Shenglei
0680d08683
MdeModulePkg/DxeIplPeim: Initialize pointer PageMapLevel5Entry
...
Initialize PageMapLevel5Entry at the beginning of the function.
This commit will fix a GCC 4.8.5 build failure introduced by commit
b3527dedc3
.
OvmfPkg build failure wtih gcc 4.8.5 still exists at latest edk2 version.
The commit 46f8a68916
seems not to fix
the build failure completely.
Cc: Dandan Bi <dandan.bi@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-08-16 09:03:18 +08:00
Jin, Eric
48d8d4d80b
BaseTools/Capsule: Tool to generate Windows Firmware Update Driver
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1837
The tool is designed to generate Windows Firmware Update Drivers,
the input is one drivername.cap with related parameters, the output
Windows Driver package are composed by drivername.cap, drivername.inf
and drivername.cat to update the single payload in device.
usage:
GenerateWindowsDriver [-h] [--output-folder OUTPUTFOLDER]
[--product-fmp-guid PRODUCTFMPGUID]
[--capsuleversion-dotstring CAPSULEVERSION_DOTSTRING]
[--capsuleversion-hexstring CAPSULEVERSION_HEXSTRING]
[--product-fw-provider PRODUCTFWPROVIDER]
[--product-fw-mfg-name PRODUCTFWMFGNAME]
[--product-fw-desc PRODUCTFWDESC]
[--capsule-file-name CAPSULEFILENAME]
[--pfx-file PFXFILE] [--arch ARCH]
[--operating-system-string OPERATINGSYSTEMSTRING]
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Kinney Michael D <michael.d.kinney@intel.com >
Signed-off-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-08-15 20:13:55 +08:00
Sean Brogan
e2aacac580
BaseTools/Capsule: Add WindowsCapsuleSupportHelper
...
Add initial version WindowsCapsuleSupportHelper.py
original source comes from
https://github.com/microsoft/mu_basecore/blob/dev/201905/BaseTools/Plugin/WindowsCapsuleSupportHelper/WindowsCapsuleSupportHelper.py
commit ebd9aad90dee3a3094b575928670cf81b8c685b5
Convert EOL to CRLF
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Bob Feng <bob.c.feng@intel.com >
Signed-off-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-08-15 20:13:05 +08:00
Eric Jin
a5944b6a13
FmpDevicePkg/FmpDxe: Remove use of CatSprint()
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
The size overhead for CatSPrint() is large. This function
is only used to generate variable names with HardwareInstance
value appended. Use UnicodeValueToStringS() instead that is
much smaller.
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 17:22:24 +08:00
Eric Jin
11d354945c
FmpDevicePkg/FmpDxe: Add PcdFmpDeviceStorageAccessEnable
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Add PCD PcdFmpDeviceStorageAccessEnable. If this PCD is
TRUE, then the Firmware Management Protocol supports access
to the firmware storage device. This is the default setting.
If FALSE, then Firmware Management Protocol services that
access the firmware storage device return EFI_UNSUPPORTED
except GetImageInfo(). Setting this value to FALSE produces
the smallest possible FmpDxe driver that still advertises the
updatable firmware component in the ESRT.
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 17:22:24 +08:00
Eric Jin
278c3d48a7
FmpDevicePkg/FmpDxe: Add PcdFmpDeviceImageTypeIdGuid
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Add PCD PcdFmpDeviceImageTypeIdGuid that contains an Image
Type ID GUID value that is used if one is not provided by
FmpDeviceLib. If this PCD is not a valid GUID value, then
gEfiCallerIdGuid is used.
Update FmpDevicePkg DSC to use PcdFmpDeviceImageTypeIdGuid
as a PatchableInModule PCD.
This content is based on the following commit.
a2c7da88d3 (diff-025d4889f6d3a482b49638a25e432d6d)
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Michael Turner <Michael.Turner@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 17:22:24 +08:00
Eric Jin
e0961677d1
FmpDevicePkg/FmpDxe: Improve all DEBUG() messages
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Update all DEBUG() messages to include the name of the
FMP device from PcdFmpDeviceImageIdName.
Based on content from the following commit, but expanded
to cover all DEBUG() messages.
a2c7da88d3 (diff-025d4889f6d3a482b49638a25e432d6d)
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Michael Turner <Michael.Turner@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 17:22:24 +08:00
Eric Jin
c40f7cc7fd
FmpDevicePkg: Add Capsule Update Policy Protocol
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
* Add Capsule Update Policy Protocol to FmpDevicePkg
* Add CapsuleUpdatePolicyLib instance that uses the services
of the Capsule Update Policy Protocol
* Add module that produces the Capsule Update Policy
Protocol using the services of the CapsuleUpdatePolicyLib
class.
* Update FmpDevicePkg DSC to build the new library instance
and the new module and update builds of FmpDxe modules
to demonstrate the use of the different CapsuleUpdatePolicyLib
instances.
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Wang Fan <fan.wang@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 17:22:23 +08:00
Eric Jin
67c1e5ee6e
FmpDevicePkg/FmpDxe: Different variable for each FMP Descriptor
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 17:22:23 +08:00
Eric Jin
4f0544b144
FmpDevicePkg/FmpDxe: Use new FmpDeviceLib APIs
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Update FmpDxe to support multiple controllers and use
new FmpDeviceLib APIs to support Stop/Unload and to
set the context for the worker functions in the
FmpDeviceLib.
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 17:22:23 +08:00
Shenglei Zhang
a6ee24fbdd
MdeModulePkg/MdeModulePkg.dec: Remove gEfiDpcProtocolGuid
...
Since the transfer has been finished in previous patches,
gEfiDpcProtocolGuid can be removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1949
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-08-15 16:42:43 +08:00
Shenglei Zhang
593ecbe300
NetworkPkg: Move Dpc.h from MdeModulePkg to NetworkPkg
...
Move Dpc.h from MdeModulePkg to NetworkPkg. And remove the
dependency on MdeModulePkg.dec in INFs.
https://bugzilla.tianocore.org/show_bug.cgi?id=1949
Cc: Siyuan Fu <siyuan.fu@intel.com >
Cc: Jiaxin Wu <jiaxin.wu@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com >
2019-08-15 16:42:43 +08:00
Shenglei Zhang
492a1db0b8
NetworkPkg: Add Dpc protocol
...
To move Dpc.h from MdeModulePkg to NetworkPkg,
we need to introduce the Guid of protocol first.
https://bugzilla.tianocore.org/show_bug.cgi?id=1949
Cc: Siyuan Fu <siyuan.fu@intel.com >
Cc: Jiaxin Wu <jiaxin.wu@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com >
2019-08-15 16:42:43 +08:00
Chasel Chiu
caa7d3a896
BaseTools/Scripts: Add GetUtcDateTime script.
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2067
A script that can return UTC date and time in ascii
format which is convenient for patching build time
information in any binary.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
Acked-by: Leif Lindholm <leif.lindholm@linaro.org >
2019-08-15 15:49:11 +08:00
Shenglei Zhang
c0996b76c1
ShellPkg/UefiShellAcpiViewCommandLib: Remove the variable "Index"
...
In IortParser.c ,the variable Index is set but not used in
function DumpIortNodeNamedComponent. This will cause build failure
when building ShellPkg with GCC.
Cc: Jaben Carsey <jaben.carsey@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
2019-08-15 11:14:49 +08:00
Jian J Wang
5ab96088ae
CryptoPkg/OpensslLib: remove clone commands
...
https://bugzilla.tianocore.org/show_bug.cgi?id=1910
edk2/Readme.md has added a section to explain the correct clone
commands for submodules. Detailed steps in the OpenSSL-HOWTO.txt
are removed to avoid any inconsistency.
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 09:56:37 +08:00
Jian J Wang
2556350d1b
Readme.md: add submodule policy and clone commands
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1910
A section 'Submodules' is added to clarify the submodule policy
in edk2 repo. Git commands are also added to show the correct
way to clone submodule repos, in which '--recursive' is removed
because it's not needed but recommended in other document.
Related commits:
Openssl-1.1.1b upgrade: acfb909118
berkeley-softfloat-3: 3cc57695df
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-15 09:56:37 +08:00
Xu, Wei6
f5892aa8d8
MdeModulePkg/DxeCapsuleLibFmp: Improve comparisons in CapsuleOnDisk.c
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2028
Non-Boolean comparisons should use a compare operator
(==, !=, >, < >=, <=).
Signed-off-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-08-15 09:10:57 +08:00
Xu, Wei6
34651e7d76
MdeModulePkg/CapsuleApp: Improve comparisons in CapsuleOnDisk.c
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2028
Non-Boolean comparisons should use a compare operator
(==, !=, >, < >=, <=).
Signed-off-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-08-15 09:10:13 +08:00
Bob Feng
08a54c9e0a
BaseTools: Move buildoptions.py to Common folder
...
buildoptions is used by build.py and TargetTxtClassObj.py
Move buildoptions.py to Common folder so that
build tool and ECC tool work fine.
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-14 13:54:49 +08:00
Eric Jin
1f06aa24c2
FmpDEvicePkg/FmpDeviceLibNull: Implement new APIs
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-14 12:29:38 +08:00
Eric Jin
8d01f2f4d6
FmpDevicePkg: Add APIs to FmpDeviceLib
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Add new APIs to FmpDevideLib to support multiple controllers
* RegisterFmpUninstaller()
* FmpDeviceSetContext()
* FmpDeviceGetHardwareInstance()
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-14 12:29:28 +08:00
Eric Jin
91c230578c
FmpDevicePkg: Add UEFI_DRIVER support
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Allow libs to be used with modules of type UEFI_DRIVE.
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Jin <eric.jin@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-14 12:29:28 +08:00
Rodriguez, Christian
82407bd129
BaseTools: Fix checking for Sources section in INF file
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1804
The check to see if [Sources] section lists all the header type
files of a module is missing the exclusion of source files that
fall under the scope of Package includes. This change adds the
exclusions.
Signed-off-by: Christian Rodriguez <christian.rodriguez@intel.com >
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Tested-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-08-14 10:59:08 +08:00
Feng, Bob C
2b4c07bc22
BaseTools: Add "-" in a re to parse line in .map file
...
https://bugzilla.tianocore.org/show_bug.cgi?id=2058
If there are multiple module instances with different
guid used in .dsc file, the temp path of the module will
contain 8-4-4-4-12 format guid string. So "-" need to be
added into the regular expression for parsing it correctly.
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-14 10:24:36 +08:00
Feng, Bob C
a000d5d1ca
BaseTools: Fix incremental build bug
...
https://bugzilla.tianocore.org/show_bug.cgi?id=2078
This is a build tool regression issue that
is introduced by multiple-process-autogen.
The workspace timestamp value is not pass
to module autogen object correctly, so build tool
does not detect the change of .dsc and ignore the autogen.
This patch is to fix this issue.
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Tested-by: Michael D Kinney <michael.d.kinney@intel.com >
2019-08-14 10:23:25 +08:00
Zhang, Shenglei
46f8a68916
MdeModulePkg/DxeIplPeim: Relocate operation of PageMapLevel5Entry++
...
This commit will fix a GCC 4.8.5 build failure introduced by commit
b3527dedc3
.
PageMapLevel5Entry may be uninitialized in original code, which means
uninitialized pointer will be modified at some circumstance.
So relocate the operation of PageMapLevel5Entry++ in order to make sure
the pointer could be modified only when it is initialized.
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
Reviewed-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
2019-08-14 09:04:04 +08:00
Shenglei Zhang
073f2cede8
UefiCpuPkg/PiSmmCpuDxeSmm: Fix coding style
...
1. Update CPUStatus to CpuStatus in comments to align comments
with code.
2. Add "OUT" attribute for "ProcedureArguments" parameter in function
header.
Cc: Eric Dong <eric.dong@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
2019-08-13 17:20:32 +08:00
Shenglei Zhang
c3eefcb152
IntelFsp2Pkg/FspSecCore: Add missing header file in INF file
...
SecFsp.h is used but missing inf file, which will cause generating
warning message.
Cc: Chasel Chiu <chasel.chiu@intel.com >
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com >
2019-08-13 17:16:14 +08:00
Shenglei Zhang
ed23ab5fc7
ShellPkg/UefiShellAcpiViewCommandLib: Add missing header files in INF
...
MadtParser.h and PpttParser.h are actually used but missing INF file,
which will generate warning message when building this package.
Cc: Jaben Carsey <jaben.carsey@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Zhichao Gao <zhichao.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
2019-08-13 17:16:14 +08:00
Shenglei Zhang
c0e174bd5b
MdePkg/BaseUefiDecompressLib: Add missing description for parameter
...
The description of parameter Version is missing in comments.
So add the description.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-13 17:16:14 +08:00
Shenglei Zhang
61ca3b9236
MdeModulePkg: Add missing header files in INF files
...
The header files are used but missing in INF,which causes
generating warning message when building them.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-08-13 17:16:14 +08:00
Marc W Chen
6f33f7a262
MdePkg: Add MmAccess and MmControl definition.
...
EFI MmAccess and MmControl PPIs are defined in the PI 1.5 specification.
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2023
Signed-off-by: Marc W Chen <marc.w.chen@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-08-13 17:07:12 +08:00
Liming Gao
9c6180fb3d
Readme.md: Remove tag release from Readme
...
The latest tag release can be found in Release Planning.
They are not required to be listed here.
Cc: Andrew Fish <afish@apple.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
2019-08-13 17:07:00 +08:00
Liming Gao
a7b54d1821
MdeModulePkg/RegularExpressionDxe: Add two missing null pointer checks
...
After update Oniguruma from v6.9.0 to v6.9.3, two null pointer check
should be added.
This change bases on the patch https://edk2.groups.io/g/devel/message/45183 .
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-08-13 17:05:31 +08:00
Liming Gao
b26691c471
MdeModulePkg RegularExpressionDxe: Update Oniguruma from v6.9.0 to v6.9.3
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2066
Update Oniguruma to the latest version v6.9.3.
Oniguruma https://github.com/kkos/oniguruma
This release is the security fix release. It includes the changes:
Fixed CVE-2019-13224
Fixed CVE-2019-13225
Fixed many problems (found by libfuzzer programs)
Verify VS2015, GCC5 build.
Verify RegularExpressionProtocol GetInfo() and Match() function.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Cc: Cinnamon Shia <cinnamon.shia@hpe.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-08-13 17:05:24 +08:00
Albecki, Mateusz
ecc32c90ee
MdeModulePkg/UfsPassThruDxe: Implement EDKII_UFS_HC_PLATFORM_PROTOCOL
...
https://bugzilla.tianocore.org/show_bug.cgi?id=1343
This commit adds EDKII_UFS_HC_PLATFORM_PROTOCOL implementation
in UfsPassThruDxe driver in version 1. Driver assumes that at
most one instance of the protocol exists in the system. Presence
of the protocol is not mandatory.
Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-08-13 10:54:35 +08:00