|
From: <qh...@us...> - 2010-02-08 06:05:33
|
Revision: 1850
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=1850&view=rev
Author: qhuang8
Date: 2010-02-08 06:05:26 +0000 (Mon, 08 Feb 2010)
Log Message:
-----------
Remove spec macro definitions in AutoGen.h for EDKII native modules as these macros should not be used in EDKII native source code.
Modified Paths:
--------------
trunk/BaseTools/Source/Python/AutoGen/GenC.py
Modified: trunk/BaseTools/Source/Python/AutoGen/GenC.py
===================================================================
--- trunk/BaseTools/Source/Python/AutoGen/GenC.py 2010-02-08 05:50:15 UTC (rev 1849)
+++ trunk/BaseTools/Source/Python/AutoGen/GenC.py 2010-02-08 06:05:26 UTC (rev 1850)
@@ -1,7 +1,7 @@
## @file
# Routines for generating AutoGen.h and AutoGen.c
#
-# Copyright (c) 2007, Intel Corporation
+# Copyright (c) 2007 - 2010, Intel Corporation
# All rights reserved. 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
@@ -876,13 +876,6 @@
"""),
}
-gSpecificationString = TemplateString("""
-${BEGIN}
-#undef ${SpecificationName}
-#define ${SpecificationName} ${SpecificationValue}
-${END}
-""")
-
gBasicHeaderFile = "Base.h"
gModuleTypeHeaderFile = {
@@ -1899,9 +1892,6 @@
# header file Prologue
AutoGenH.Append(gAutoGenHPrologueString.Replace({'File':'AUTOGENH','Guid':Info.Guid.replace('-','_')}))
if Info.AutoGenVersion >= 0x00010005:
- # specification macros
- AutoGenH.Append(gSpecificationString.Replace({'SpecificationName':Info.Specification.keys(),
- 'SpecificationValue':Info.Specification.values()}))
# header files includes
AutoGenH.Append("#include <%s>\n" % gBasicHeaderFile)
if Info.ModuleType in gModuleTypeHeaderFile \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|