## @file\r
# process OptionROM generation from FILE statement\r
#\r
-# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
\r
##\r
# Import Modules\r
#\r
-import os\r
+from __future__ import absolute_import\r
+import Common.LongFilePathOs as os\r
\r
-from GenFdsGlobalVariable import GenFdsGlobalVariable\r
-## \r
+from .GenFdsGlobalVariable import GenFdsGlobalVariable\r
+##\r
#\r
#\r
class OptRomFileStatement:\r
# @param Dict dictionary contains macro and value pair\r
# @retval string Generated FFS file name\r
#\r
- def GenFfs(self, Dict = {}):\r
- \r
- if self.FileName != None:\r
+ def GenFfs(self, Dict = {}, IsMakefile=False):\r
+\r
+ if self.FileName is not None:\r
self.FileName = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName)\r
- \r
+\r
return self.FileName\r
\r
\r