There is a limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. There is an OS API provided by Microsoft to add “\\?\” before the path header to support the long file path. Enable this feature on basetools.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen <hesheng.chen@intel.com> Reviewed-by: Yingke Liu <yingke.d.liu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15809 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to define checkpoints used by ECC tool
|
||||
#
|
||||
# Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# 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
|
||||
@ -10,7 +10,7 @@
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
from CommonDataClass.DataClass import *
|
||||
from Common.DataType import SUP_MODULE_LIST_STRING, TAB_VALUE_SPLIT
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# preprocess source file
|
||||
#
|
||||
# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@ -17,7 +17,7 @@
|
||||
#
|
||||
|
||||
import re
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
import sys
|
||||
|
||||
import antlr3
|
||||
|
@ -14,10 +14,11 @@
|
||||
##
|
||||
# Import Modules
|
||||
#
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from Common.DataType import *
|
||||
from Common.String import *
|
||||
from Common.LongFilePathSupport import OpenLongFilePath as open
|
||||
|
||||
## Configuration
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to create a database used by ECC tool
|
||||
#
|
||||
# Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# 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
|
||||
@ -15,7 +15,7 @@
|
||||
# Import Modules
|
||||
#
|
||||
import sqlite3
|
||||
import os, time
|
||||
import Common.LongFilePathOs as os, time
|
||||
|
||||
import Common.EdkLogger as EdkLogger
|
||||
import CommonDataClass.DataClass as DataClass
|
||||
|
@ -14,7 +14,7 @@
|
||||
##
|
||||
# Import Modules
|
||||
#
|
||||
import os, time, glob, sys
|
||||
import Common.LongFilePathOs as os, time, glob, sys
|
||||
import Common.EdkLogger as EdkLogger
|
||||
import Database
|
||||
import EccGlobalData
|
||||
@ -37,6 +37,7 @@ from MetaFileWorkspace.MetaFileTable import MetaFileStorage
|
||||
import c
|
||||
import re, string
|
||||
from Exception import *
|
||||
from Common.LongFilePathSupport import OpenLongFilePath as open
|
||||
|
||||
## Ecc
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to save global datas used by ECC tool
|
||||
#
|
||||
# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# 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
|
||||
@ -14,7 +14,7 @@
|
||||
##
|
||||
# Import Modules
|
||||
#
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
|
||||
gWorkspace = ''
|
||||
gTarget = ''
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to parse exception items found by ECC tool
|
||||
#
|
||||
# Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# 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
|
||||
@ -15,7 +15,7 @@
|
||||
# Import Modules
|
||||
#
|
||||
from Xml.XmlRoutines import *
|
||||
import os.path
|
||||
import Common.LongFilePathOs as os
|
||||
|
||||
# ExceptionXml to parse Exception Node of XML file
|
||||
class ExceptionXml(object):
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# fragments of source file
|
||||
#
|
||||
# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@ -17,8 +17,9 @@
|
||||
#
|
||||
|
||||
import re
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
from ParserWarning import Warning
|
||||
from Common.LongFilePathSupport import OpenLongFilePath as open
|
||||
|
||||
CommentList = []
|
||||
PPDirectiveList = []
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to define common parser functions for meta-data
|
||||
#
|
||||
# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# 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
|
||||
@ -11,7 +11,7 @@
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
from CommonDataClass.DataClass import *
|
||||
from EccToolError import *
|
||||
import EccGlobalData
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to create/update/query/erase table for files
|
||||
#
|
||||
# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# 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
|
||||
@ -14,7 +14,7 @@
|
||||
##
|
||||
# Import Modules
|
||||
#
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
|
||||
import Common.EdkLogger as EdkLogger
|
||||
from CommonDataClass import DataClass
|
||||
|
@ -14,7 +14,7 @@
|
||||
##
|
||||
# Import Modules
|
||||
#
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
import time
|
||||
import copy
|
||||
@ -31,7 +31,8 @@ from Common.Expression import *
|
||||
from CommonDataClass.Exceptions import *
|
||||
|
||||
from MetaFileTable import MetaFileStorage
|
||||
from GenFds.FdfParser import FdfParser
|
||||
from GenFds.FdfParser import FdfParser
|
||||
from Common.LongFilePathSupport import OpenLongFilePath as open
|
||||
|
||||
## A decorator used to parse macro definition
|
||||
def ParseMacro(Parser):
|
||||
|
@ -2,7 +2,7 @@
|
||||
# This is an XML API that uses a syntax similar to XPath, but it is written in
|
||||
# standard python so that no extra python packages are required to use it.
|
||||
#
|
||||
# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# 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
|
||||
@ -16,6 +16,7 @@
|
||||
# Import Modules
|
||||
#
|
||||
import xml.dom.minidom
|
||||
from Common.LongFilePathSupport import OpenLongFilePath as open
|
||||
|
||||
## Create a element of XML
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to be the c coding style checking of ECC tool
|
||||
#
|
||||
# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# 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
|
||||
@ -12,7 +12,7 @@
|
||||
#
|
||||
|
||||
import sys
|
||||
import os
|
||||
import Common.LongFilePathOs as os
|
||||
import re
|
||||
import string
|
||||
import CodeFragmentCollector
|
||||
|
Reference in New Issue
Block a user