]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/GenFds/OptRomFileStatement.py
2 # process OptionROM generation from FILE statement
4 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
12 from __future__
import absolute_import
13 import Common
.LongFilePathOs
as os
15 from .GenFdsGlobalVariable
import GenFdsGlobalVariable
19 class OptRomFileStatement
:
22 # @param self The object pointer
27 self
.OverrideAttribs
= None
33 # @param self The object pointer
34 # @param Dict dictionary contains macro and value pair
35 # @retval string Generated FFS file name
37 def GenFfs(self
, Dict
= {}, IsMakefile
=False):
39 if self
.FileName
is not None:
40 self
.FileName
= GenFdsGlobalVariable
.ReplaceWorkspaceMacro(self
.FileName
)