]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/Python/GenFds/OptRomFileStatement.py
BaseTools: Use absolute import in UPT
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / OptRomFileStatement.py
CommitLineData
30fdf114
LG
1## @file\r
2# process OptionROM generation from FILE statement\r
3#\r
f7496d71 4# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
30fdf114 5#\r
40d841f6 6# This program and the accompanying materials\r
30fdf114
LG
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
bfa65b61 18from __future__ import absolute_import\r
1be2ed90 19import Common.LongFilePathOs as os\r
30fdf114 20\r
bfa65b61 21from .GenFdsGlobalVariable import GenFdsGlobalVariable\r
f7496d71 22##\r
30fdf114
LG
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
37de70b7 43 def GenFfs(self, Dict = {}, IsMakefile=False):\r
f7496d71 44\r
4231a819 45 if self.FileName is not None:\r
30fdf114 46 self.FileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)\r
f7496d71 47\r
30fdf114
LG
48 return self.FileName\r
49\r
50\r
51\r