diff options
author | Liming Gao <liming.gao@intel.com> | 2018-01-30 13:33:31 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-02-08 19:19:53 +0800 |
commit | c376e657c2e6f36f757bcb66d3e328c402d4b606 (patch) | |
tree | 2d8bf91253ed1f5882abad6c6c9689f1d8600968 /SecurityPkg | |
parent | 7423a642279f0ad638050701ce8ffce1e670ada0 (diff) | |
download | edk2-c376e657c2e6f36f757bcb66d3e328c402d4b606.tar.gz edk2-c376e657c2e6f36f757bcb66d3e328c402d4b606.tar.bz2 edk2-c376e657c2e6f36f757bcb66d3e328c402d4b606.zip |
SecurityPkg: Don't build AuthVariableLib for EBC arch
EBC build failure is caused by d7a09cb86a0416c099fa3a9e0fbe2c8f399b28de.
It changes MAX_UINTN definition as below. AuthVariableLib uses MAX_UINTN
in the global data initialization. New style has >> operator, and not
supported by EBC compiler. The fix is not to build AuthVariableLib for EBC.
#define MAX_UINTN ((UINTN) ~0)
==>
#define MAX_UINTN ((UINTN)(~0ULL >> (64 - sizeof (INTN) * 8)))
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
(cherry picked from commit 1662676d58cfe56ca98d2b7aab5e49c595ee4915)
Diffstat (limited to 'SecurityPkg')
-rw-r--r-- | SecurityPkg/SecurityPkg.dsc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SecurityPkg/SecurityPkg.dsc b/SecurityPkg/SecurityPkg.dsc index 43ac0b1a72..65a2fe3d79 100644 --- a/SecurityPkg/SecurityPkg.dsc +++ b/SecurityPkg/SecurityPkg.dsc @@ -215,6 +215,7 @@ SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf
SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/FmpAuthenticationLibRsa2048Sha256.inf
+[Components.IA32, Components.X64, Components.IPF, Components.ARM, Components.AARCH64]
SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
[Components.IA32, Components.X64, Components.IPF]
|