]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/Python/GenFds/OptRomFileStatement.py
Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / OptRomFileStatement.py
CommitLineData
30fdf114
LG
1## @file\r
2# process OptionROM generation from FILE statement\r
3#\r
40d841f6 4# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
30fdf114 5#\r
40d841f6 6# This program and the accompanying materials\r
30fdf114
LG
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
18import os\r
19\r
20from GenFdsGlobalVariable import GenFdsGlobalVariable\r
21## \r
22#\r
23#\r
24class 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