]>
Commit | Line | Data |
---|---|---|
30fdf114 LG |
1 | ## @file\r |
2 | # process OptionROM generation from FILE statement\r | |
3 | #\r | |
4 | # Copyright (c) 2007, Intel Corporation\r | |
5 | #\r | |
6 | # All rights reserved. This program and the accompanying materials\r | |
7 | # are licensed and made available under the terms and conditions of the BSD License\r | |
8 | # which accompanies this distribution. The full text of the license may be found at\r | |
9 | # http://opensource.org/licenses/bsd-license.php\r | |
10 | #\r | |
11 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | #\r | |
14 | \r | |
15 | ##\r | |
16 | # Import Modules\r | |
17 | #\r | |
18 | import os\r | |
19 | \r | |
20 | from GenFdsGlobalVariable import GenFdsGlobalVariable\r | |
21 | ## \r | |
22 | #\r | |
23 | #\r | |
24 | class OptRomFileStatement:\r | |
25 | ## The constructor\r | |
26 | #\r | |
27 | # @param self The object pointer\r | |
28 | #\r | |
29 | def __init__(self):\r | |
30 | self.FileName = None\r | |
31 | self.FileType = None\r | |
32 | self.OverrideAttribs = None\r | |
33 | \r | |
34 | ## GenFfs() method\r | |
35 | #\r | |
36 | # Generate FFS\r | |
37 | #\r | |
38 | # @param self The object pointer\r | |
39 | # @param Dict dictionary contains macro and value pair\r | |
40 | # @retval string Generated FFS file name\r | |
41 | #\r | |
42 | def GenFfs(self, Dict = {}):\r | |
43 | \r | |
44 | if self.FileName != None:\r | |
45 | self.FileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)\r | |
46 | \r | |
47 | return self.FileName\r | |
48 | \r | |
49 | \r | |
50 | \r |