SecurityPkg: Don't build AuthVariableLib for EBC arch
authorLiming Gao <liming.gao@intel.com>
Tue, 30 Jan 2018 05:33:31 +0000 (13:33 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 7 Feb 2018 01:16:15 +0000 (09:16 +0800)
commit1662676d58cfe56ca98d2b7aab5e49c595ee4915
treea6993bb45798a0e1c2bb3ac6e38718ee67b0c065
parent8ee7ad90951bb51849667d20976a0cba84ba06b1
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>
SecurityPkg/SecurityPkg.dsc