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