Revision: 17573 http://sourceforge.net/p/edk2/code/17573 Author: yingke Date: 2015-06-08 08:08:58 +0000 (Mon, 08 Jun 2015) Log Message: ----------- BaseTools: Added extern declaration for protocols/PPI/GUID in AutoGhen.h
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu <yingke.d....@intel.com> Reviewed-by: Liming Gao <liming....@intel.com> Modified Paths: -------------- trunk/edk2/BaseTools/Source/Python/AutoGen/GenC.py Modified: trunk/edk2/BaseTools/Source/Python/AutoGen/GenC.py =================================================================== --- trunk/edk2/BaseTools/Source/Python/AutoGen/GenC.py 2015-06-08 06:36:41 UTC (rev 17572) +++ trunk/edk2/BaseTools/Source/Python/AutoGen/GenC.py 2015-06-08 08:08:58 UTC (rev 17573) @@ -1319,11 +1319,13 @@ if Info.GuidList: AutoGenC.Append("\n// Guids\n") + AutoGenH.Append("\n// Guids\n") # # GUIDs # for Key in Info.GuidList: AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.GuidList[Key])) + AutoGenH.Append('extern %s %s;\n' % (GuidType, Key)) ## Create code for protocol # @@ -1342,11 +1344,13 @@ if Info.ProtocolList: AutoGenC.Append("\n// Protocols\n") + AutoGenH.Append("\n// Protocols\n") # # Protocol GUIDs # for Key in Info.ProtocolList: AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.ProtocolList[Key])) + AutoGenH.Append('extern %s %s;\n' % (GuidType, Key)) ## Create code for PPI # @@ -1365,11 +1369,13 @@ if Info.PpiList: AutoGenC.Append("\n// PPIs\n") + AutoGenH.Append("\n// PPIs\n") # # PPI GUIDs # for Key in Info.PpiList: AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.PpiList[Key])) + AutoGenH.Append('extern %s %s;\n' % (GuidType, Key)) ## Create code for PCD # ------------------------------------------------------------------------------ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits