## @file\r
# generate capsule\r
#\r
-# Copyright (c) 2007, Intel Corporation\r
+# Copyright (c) 2007, 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
def __init_(self) :\r
self.Ffs = None\r
+ self.FvName = None\r
\r
## generate FFS capsule data\r
#\r
# @param self The object pointer\r
#\r
def __init__(self) :\r
+ self.Ffs = None\r
self.FvName = None\r
+ self.CapsuleName = None\r
\r
## generate FV capsule data\r
#\r
if self.FvName.upper() in GenFdsGlobalVariable.FdfParser.Profile.FvDict.keys():\r
FvObj = GenFdsGlobalVariable.FdfParser.Profile.FvDict.get(self.FvName.upper())\r
FdBuffer = StringIO.StringIO('')\r
+ FvObj.CapsuleName = self.CapsuleName\r
FvFile = FvObj.AddToBuffer(FdBuffer)\r
+ FvObj.CapsuleName = None\r
+ FdBuffer.close()\r
return FvFile\r
- \r
else:\r
FvFile = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FvName)\r
return FvFile\r