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: Dong Guo <guo.dong@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15356 6f19259b-4bc3-4df7-8a09-765794883524
diff --git a/SecurityPkg/SecurityPkg.dsc b/SecurityPkg/SecurityPkg.dsc
index 591062c..e7e7051 100644
--- a/SecurityPkg/SecurityPkg.dsc
+++ b/SecurityPkg/SecurityPkg.dsc
@@ -120,10 +120,10 @@
 [Components]

   SecurityPkg/VariableAuthenticated/Pei/VariablePei.inf

   SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf

-  SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.inf

+  #SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.inf

   SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf

-  SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManagerDxe.inf

-  SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerDxe.inf

+  #SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManagerDxe.inf

+  #SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerDxe.inf

 

   #

   # Application

@@ -164,7 +164,7 @@
 

 [Components.IA32, Components.X64, Components.IPF]

   SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProviderDxe.inf

-  SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf

+#  SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf

   SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf

   SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf

 

diff --git a/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c b/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c
index cf7fe40..b9e89cb 100644
--- a/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c
+++ b/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c
@@ -1,7 +1,7 @@
 /** @file

   Password Credential Provider driver implementation.

     

-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>

+Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>

 This program and the accompanying materials 

 are licensed and made available under the terms and conditions of the BSD License 

 which accompanies this distribution.  The full text of the license may be found at 

@@ -1428,6 +1428,11 @@
   EFI_STATUS  Status;

 

   //

+  // It is NOT robust enough to be included in production.

+  //

+  #error "This implementation is just a sample, please comment this line if you really want to use this driver."

+

+  //

   // Init credential table.

   //

   Status = InitCredentialTable ();

diff --git a/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c b/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c
index f851bb2..046a500 100644
--- a/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c
+++ b/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c
@@ -1,7 +1,7 @@
 /** @file

   Usb Credential Provider driver implemenetation.

     

-Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>

+Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>

 This program and the accompanying materials 

 are licensed and made available under the terms and conditions of the BSD License 

 which accompanies this distribution.  The full text of the license may be found at 

@@ -1377,6 +1377,11 @@
   EFI_STATUS  Status;

 

   //

+  // It is NOT robust enough to be included in production.

+  //

+  #error "This implementation is just a sample, please comment this line if you really want to use this driver."

+

+  //

   // Init credential table.

   //

   Status = InitCredentialTable ();

diff --git a/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c b/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c
index adcf9bf..a7467b3 100644
--- a/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c
+++ b/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManager.c
@@ -1,7 +1,7 @@
 /** @file

   This driver manages user information and produces user manager protocol.

   

-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>

+Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>

 This program and the accompanying materials 

 are licensed and made available under the terms and conditions of the BSD License 

 which accompanies this distribution.  The full text of the license may be found at 

@@ -3736,6 +3736,11 @@
   EFI_STATUS  Status;

 

   //

+  // It is NOT robust enough to be included in production.

+  //

+  #error "This implementation is just a sample, please comment this line if you really want to use this driver."

+

+  //

   // Initiate form browser.

   //

   InitFormBrowser ();