## @file\r
# process FFS generation from FILE statement\r
#\r
-# Copyright (c) 2007 - 2010, Intel Corporation\r
+# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
#\r
-# All rights reserved. This program and the accompanying materials\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
# http://opensource.org/licenses/bsd-license.php\r
#\r
import Ffs\r
import Rule\r
-import os\r
+import Common.LongFilePathOs as os\r
import StringIO\r
import subprocess\r
\r
#\r
def __init__(self):\r
FileStatementClassObject.__init__(self)\r
+ self.CurrentLineNum = None\r
+ self.CurrentLineContent = None\r
+ self.FileName = None\r
+ self.InfFileName = None\r
\r
## GenFfs() method\r
#\r
\r
OutputDir = os.path.join(GenFdsGlobalVariable.FfsDir, self.NameGuid)\r
if not os.path.exists(OutputDir):\r
- os.makedirs(OutputDir)\r
+ os.makedirs(OutputDir)\r
\r
Dict.update(self.DefineVarDict)\r
SectionAlignments = None\r
\r
elif self.FileName != None:\r
self.FileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)\r
+ #Replace $(SAPCE) with real space\r
+ self.FileName = self.FileName.replace('$(SPACE)', ' ')\r
SectionFiles = [GenFdsGlobalVariable.MacroExtend(self.FileName, Dict)]\r
\r
else:\r
if FvParentAddr != None and isinstance(section, GuidSection):\r
section.FvParentAddr = FvParentAddr\r
\r
+ if self.KeepReloc == False:\r
+ section.KeepReloc = False\r
sectList, align = section.GenSection(OutputDir, self.NameGuid, SecIndex, self.KeyStringList, None, Dict)\r
if sectList != []:\r
for sect in sectList:\r