]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/OptRomFileStatement.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / OptRomFileStatement.py
index a98d208e1d75e22604ab28b9f32cac3e2fd9179e..0c54f48da22d5b040a00a37045902772aeb9a0ff 100644 (file)
@@ -1,24 +1,19 @@
 ## @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
@@ -39,11 +34,11 @@ class OptRomFileStatement:
     #   @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