Sync patches r15328, r15329, r15330, r15331, r15332, r15333, r15334, r15336, r15337, r15338, r15339, r15340, r15351 and r15356 from main trunk.
1. Remove ASSERT when failed to Get/Set "AttemptOrder" and "ClientId" variable.
   Removes RT attribute for "AttemptOrder" variable.
2. Fix the return status when physical presence variable and MemoryOverwriteRequestControl variable are corrupt.
3. Remove ASSERT check for SetVariable in FirmwarePerformanceDataTableDxe.
4. Add comments to describe PlatformDriOverrideDxe is used for test purpose. 
5. Remove unnecessary dependency in variable driver.
6. Remove the RT attribute for the MemoryTypeInformation variable because it’s not necessary.
7. Add comments for PcdHideTpmSupport.
8. Remove ASSERT when SetVariable for ConOutDev/ConInDev/ErrOutDev variables failed.
9. IntelFrameworkModulePkg AcpiS3SaveDxe: Remove ASSERT, add lock and remove RT for AcpiGlobalVariable variable.
10.Did proper error handling when SetVariable failed, and put RTC write operation at the behind of SetVariable, if SetVariable failed, RTC content could not be changed.
11.Fix the return value bug when updating public key database variable failure.
12.MdeModulePkg/SecurityPkg Variable: Return error status to avoid inconsistency between PlatformLang and Lang.
13.Removes MacString Rt attribute in Ip4Config/Mnp driver.
14.Force UID modules build error to warn user that currently it is just a sample.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>

git-svn-id: svn://svn.code.sf.net/p/edk2/code/branches/UDK2014/IntelFrameworkModulePkg@15440 6f19259b-4bc3-4df7-8a09-765794883524
Sync patches r15357, r15360, r15376, r15385, r15386, r15387, r15388, r15391 and r15393 from main trunk.
1. MdeModulePkg PCD: Fix PCD driver to return default data if size mismatch.
2. Fix current TPM device string missing. Use efivarstore instead of varstor, remove TPM disable.
3. Comment PwdCredential driver.
4. Report the setting variable failure to platform through the status code when core cannot handle the error.
5. Support load 64 bit image from 32 bit core. 
   Add more enhancement to check invalid PE format.
6. MdeModulePkg/SecurityPkg Variable: Calculate enough space for PlatformLang and Lang variables and use
   PcdUefiVariableDefaultLangDeprecate to turn off auto update between PlatformLang and Lang variables.
7. Remove RT attribute for variable LegacyDevOrder
8. Add check to make sure the data be valid.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>

git-svn-id: svn://svn.code.sf.net/p/edk2/code/branches/UDK2014/IntelFrameworkModulePkg@15441 6f19259b-4bc3-4df7-8a09-765794883524
Sync patches r15401, r15403, r15404, r15405, r15407, r15408, r15409, r15410, r15412, r15416, r15425 and r15426 from main trunk.
1. Remove RT attribute for variable PlatDriOver.
2. Update code logic, remove ASSERT and use error handling.
3. Calculate enough space for 2 variables (public key and variable data) instead of directly setting them 1 by 1.
   Fixed a bug in public key reclaim().
4. Remove hide TPM support. 
5. Add ASSERT to check if NewVariable is NULL.
6. Add NULL pointer check in I2chost.
7. SecurityPkg Variable: Add NULL pointer check.
8. Add check to avoid null pointer deference.
9. Check the input file pointer before use it.
10. Remove unused [PcdsDynamic, PcdsDynamicEx] section.
11.Check the parameter before use it.
12.Add missing parameter comment in AddPubKeyInStore()


Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>

git-svn-id: svn://svn.code.sf.net/p/edk2/code/branches/UDK2014/IntelFrameworkModulePkg@15442 6f19259b-4bc3-4df7-8a09-765794883524