Skip to content

Commit

Permalink
Ignored everything outside DEPENDENCY_START and DEPENDENCY_END for dx…
Browse files Browse the repository at this point in the history
…s file in R8.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1296 7335b38e-4728-0410-8992-fb3ffe349368
  • Loading branch information
jwang36 committed Aug 8, 2008
1 parent f3f0ecf commit 788ae70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Python/AutoGen/GenDepex.py
Expand Up @@ -27,6 +27,9 @@
from DepexLexer import DepexLexer
from DepexParser import DepexParser

## Regular expression for matching "DEPENDENCY_START ... DEPENDENCY_END"
gStartClosePattern = re.compile(".*DEPENDENCY_START(.+)DEPENDENCY_END.*", re.S)

## Mapping between module type and EFI phase
gType2Phase = {
"BASE" : None,
Expand Down Expand Up @@ -263,6 +266,7 @@ def Main():
if len(Input) > 0 and Option.Expression == "":
DxsFile = Input[0]
DxsString = open(DxsFile, 'r').read()
DxsString = gStartClosePattern.sub("\\1", DxsString)
elif Option.Expression != "":
if Option.Expression[0] == '"':
DxsString = Option.Expression[1:-1]
Expand Down

0 comments on commit 788ae70

Please sign in to comment.