]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - BaseTools/Source/Python/GenFds/OptRomFileStatement.py
BaseTools: Various typo
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / OptRomFileStatement.py
... / ...
CommitLineData
1## @file\r
2# process OptionROM generation from FILE statement\r
3#\r
4# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
5#\r
6# 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
18from __future__ import absolute_import\r
19import Common.LongFilePathOs as os\r
20\r
21from .GenFdsGlobalVariable import GenFdsGlobalVariable\r
22##\r
23#\r
24#\r
25class OptRomFileStatement:\r
26 ## The constructor\r
27 #\r
28 # @param self The object pointer\r
29 #\r
30 def __init__(self):\r
31 self.FileName = None\r
32 self.FileType = None\r
33 self.OverrideAttribs = None\r
34\r
35 ## GenFfs() method\r
36 #\r
37 # Generate FFS\r
38 #\r
39 # @param self The object pointer\r
40 # @param Dict dictionary contains macro and value pair\r
41 # @retval string Generated FFS file name\r
42 #\r
43 def GenFfs(self, Dict = {}, IsMakefile=False):\r
44\r
45 if self.FileName is not None:\r
46 self.FileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)\r
47\r
48 return self.FileName\r
49\r
50\r
51\r