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#
12from __future__ import absolute_import
13import Common.LongFilePathOs as os
14
15from .GenFdsGlobalVariable import GenFdsGlobalVariable
16##
17#
18#
19class 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 = None, IsMakefile=False):
38
39        if Dict is None:
40            Dict = {}
41
42        if self.FileName is not None:
43            self.FileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)
44
45        return self.FileName
46
47
48
49