Fixed a wrong variable name and removed the default arch and build target list for...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Tue, 29 Apr 2008 06:48:53 +0000 (06:48 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Tue, 29 Apr 2008 06:48:53 +0000 (06:48 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1185 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/build/build.py

index 868ff8f..b2870f8 100644 (file)
@@ -716,14 +716,10 @@ class Build():
         # if no ARCH given in command line, get it from target.txt\r
         if self.ArchList == None or len(self.ArchList) == 0:\r
             self.ArchList = self.TargetTxt.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_TARGET_ARCH]\r
-            if len(self.ArchList) == 0:\r
-                self.ArchList = ARCH_LIST\r
 \r
         # if no build target given in command line, get it from target.txt\r
         if self.BuildTargetList == None or len(self.BuildTargetList) == 0:\r
             self.BuildTargetList = self.TargetTxt.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_TARGET]\r
-            if self.BuildTargetList == None or len(self.BuildTargetList) == 0:\r
-                self.BuildTargetList = ['DEBUG', 'RELEASE']\r
 \r
         # if no tool chain given in command line, get it from target.txt\r
         if self.ToolChainList == None or len(self.ToolChainList) == 0:\r
@@ -824,7 +820,7 @@ class Build():
 \r
         # Merge build target\r
         if self.BuildTargetList == None or len(self.BuildTargetList) == 0:\r
-            BuildTargetList = self.Platform.BuildTarget\r
+            BuildTargetList = self.Platform.BuildTargets\r
         else:\r
             BuildTargetList = list(set(self.BuildTargetList) & set(self.Platform.BuildTargets))\r
         if BuildTargetList == []:\r