]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/GenFds/OptRomFileStatement.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / OptRomFileStatement.py
1 ## @file
2 # process OptionROM generation from FILE statement
3 #
4 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8
9 ##
10 # Import Modules
11 #
12 from __future__ import absolute_import
13 import Common.LongFilePathOs as os
14
15 from .GenFdsGlobalVariable import GenFdsGlobalVariable
16 ##
17 #
18 #
19 class OptRomFileStatement:
20 ## The constructor
21 #
22 # @param self The object pointer
23 #
24 def __init__(self):
25 self.FileName = None
26 self.FileType = None
27 self.OverrideAttribs = None
28
29 ## GenFfs() method
30 #
31 # Generate FFS
32 #
33 # @param self The object pointer
34 # @param Dict dictionary contains macro and value pair
35 # @retval string Generated FFS file name
36 #
37 def GenFfs(self, Dict = {}, IsMakefile=False):
38
39 if self.FileName is not None:
40 self.FileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)
41
42 return self.FileName
43
44
45