GenFds Tool: Add FdfClassObject.
[people/mcb30/basetools.git] / Source / Python / GenFds / FvImageSection.py
index 0465565..ef563ea 100644 (file)
@@ -4,12 +4,15 @@ from Ffs import Ffs
 import subprocess\r
 from GenFdsGlobalVariable import GenFdsGlobalVariable\r
 import os\r
+from CommonDataClass.FdfClassObject import FvImageSectionClassObject\r
 \r
-class FvImageSection(Section.Section):\r
+class FvImageSection(FvImageSectionClassObject):\r
     def __init__(self):\r
-        self.Aligenment = None\r
-        self.Fv = None\r
-        self.FvName = None\r
+##        self.Aligenment = None\r
+##        self.Fv = None\r
+##        self.FvName = None\r
+        FvImageSectionClassObject.__init__(self)\r
+        \r
     def GenSection(self, OutputPath, ModuleName, KeyStringList, FfsInf = None):\r
         Buffer = StringIO.StringIO('')\r
         #\r
@@ -38,4 +41,4 @@ class FvImageSection(Section.Section):
                          \r
         print GenSectionCmd\r
         GenFdsGlobalVariable.CallExternalTool(GenSectionCmd, "GenSection Failed!")\r
-        return OutputFile, self.Aligenment\r
+        return OutputFile, self.Alignment\r