]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/TargetTxtClassObject.py
There is a limitation on WINDOWS OS for the length of entire file path can’t be large...
[mirror_edk2.git] / BaseTools / Source / Python / Common / TargetTxtClassObject.py
index fc5d589a5966bf27a7a2281a0283bb377c26f58a..89e393708625a7eb4a019db1a0ecdc8f6a8edc08 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # This file is used to define each component of Target.txt file\r
 #\r
-# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
 ##\r
 # Import Modules\r
 #\r
-import os\r
+import Common.LongFilePathOs as os\r
 import EdkLogger\r
 import DataType\r
 from BuildToolError import *\r
 import GlobalData\r
+from Common.LongFilePathSupport import OpenLongFilePath as open\r
 \r
 gDefaultTargetTxtFile = "Conf/target.txt"\r
 \r
@@ -37,7 +38,6 @@ class TargetTxtClassObject(object):
             DataType.TAB_TAT_DEFINES_ACTIVE_PLATFORM                            : '',\r
             DataType.TAB_TAT_DEFINES_ACTIVE_MODULE                              : '',\r
             DataType.TAB_TAT_DEFINES_TOOL_CHAIN_CONF                            : '',\r
-            DataType.TAB_TAT_DEFINES_MULTIPLE_THREAD                            : '',\r
             DataType.TAB_TAT_DEFINES_MAX_CONCURRENT_THREAD_NUMBER               : '',\r
             DataType.TAB_TAT_DEFINES_TARGET                                     : [],\r
             DataType.TAB_TAT_DEFINES_TOOL_CHAIN_TAG                             : [],\r
@@ -102,12 +102,6 @@ class TargetTxtClassObject(object):
             elif Key in [DataType.TAB_TAT_DEFINES_TARGET, DataType.TAB_TAT_DEFINES_TARGET_ARCH, \\r
                          DataType.TAB_TAT_DEFINES_TOOL_CHAIN_TAG]:\r
                 self.TargetTxtDictionary[Key] = Value.split()\r
-            elif Key == DataType.TAB_TAT_DEFINES_MULTIPLE_THREAD:\r
-                if Value not in ["Enable", "Disable"]:\r
-                    EdkLogger.error("build", FORMAT_INVALID, "Invalid setting of [%s]: %s." % (Key, Value),\r
-                                    ExtraData="\tSetting must be one of [Enable, Disable]",\r
-                                    File=FileName)\r
-                self.TargetTxtDictionary[Key] = Value\r
             elif Key == DataType.TAB_TAT_DEFINES_MAX_CONCURRENT_THREAD_NUMBER:\r
                 try:\r
                     V = int(Value, 0)\r