Files
slimbootloader/BaseTools/Source/Python/GenFds/OptRomFileStatement.py
T

46 lines
1.0 KiB
Python
Raw Normal View History

2018-09-13 16:11:07 -07:00
## @file
# process OptionROM generation from FILE statement
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
2018-09-13 16:11:07 -07:00
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
2018-09-13 16:11:07 -07:00
#
##
# Import Modules
#
from __future__ import absolute_import
2018-09-13 16:11:07 -07:00
import Common.LongFilePathOs as os
from .GenFdsGlobalVariable import GenFdsGlobalVariable
##
2018-09-13 16:11:07 -07:00
#
#
class OptRomFileStatement:
## The constructor
#
# @param self The object pointer
#
def __init__(self):
self.FileName = None
self.FileType = None
self.OverrideAttribs = None
## GenFfs() method
#
# Generate FFS
#
# @param self The object pointer
# @param Dict dictionary contains macro and value pair
# @retval string Generated FFS file name
#
def GenFfs(self, Dict = {}, IsMakefile=False):
if self.FileName is not None:
2018-09-13 16:11:07 -07:00
self.FileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)
2018-09-13 16:11:07 -07:00
return self.FileName