Remove BINARY_MODULE from [Defines] section to confirm Extended INF 0.44.
authorqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 27 Aug 2007 03:00:53 +0000 (03:00 +0000)
committerqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 27 Aug 2007 03:00:53 +0000 (03:00 +0000)
Clary the error messages.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@628 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Common/MigrationUtilities.py
Source/Python/msa2inf/StoreInf.py

index db96466..a19732c 100644 (file)
@@ -542,9 +542,9 @@ def MigrationOptionParser(Source, Destinate, ToolName, VersionNumber = 1.0):
         \r
     # error check\r
     if len(Args) == 0:\r
-        raise MigrationError(OPTION_MISSING, name="Input file", usage=Parser.get_usage())\r
+        raise MigrationError(PARAMETER_MISSING, name="Input file", usage=Parser.get_usage())\r
     if len(Args) > 1:\r
-        raise MigrationError(OPTION_NOT_SUPPORTED, name="Too many input files", usage=Parser.get_usage())\r
+        raise MigrationError(PARAMETER_INVALID, name="Too many input files", usage=Parser.get_usage())\r
 \r
     InputFile = Args[0]\r
     if not os.path.exists(InputFile):\r
index 971aaec..bb58dc2 100644 (file)
@@ -70,9 +70,6 @@ def StoreModuleDefinesSection(InfFile, Module):
     if ModuleHeader.EdkReleaseVersion != "":\r
         DefinesTupleList.append(("EDK_RELEASE_VERSION", ModuleHeader.EdkReleaseVersion))\r
     \r
-    if ModuleHeader.BinaryModule:\r
-        DefinesTupleList.append(("BINARY_MODULE", "TRUE"))\r
-\r
     ProducedLibraryClass = GetModuleLibraryClass(ModuleHeader.LibraryClass)\r
     if ProducedLibraryClass != "":\r
         DefinesTupleList.append(("LIBRARY_CLASS", ProducedLibraryClass))\r