]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/OptionRom.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / OptionRom.py
index 18f3fbd0d7a2a41f78770fe10d60d411101dcfa2..61d669de8d0862e51c9f2873a51bbd709a1ee9ce 100644 (file)
@@ -3,31 +3,23 @@
 #\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
+from __future__ import absolute_import\r
 import Common.LongFilePathOs as os\r
 import subprocess\r
 \r
-import OptRomInfStatement\r
-from GenFdsGlobalVariable import GenFdsGlobalVariable\r
-from GenFds import GenFds\r
+from . import OptRomInfStatement\r
+from .GenFdsGlobalVariable import GenFdsGlobalVariable\r
 from CommonDataClass.FdfClass import OptionRomClassObject\r
 from Common.Misc import SaveFileOnChange\r
 from Common import EdkLogger\r
 from Common.BuildToolError import *\r
 \r
-T_CHAR_LF = '\n'\r
-\r
 ##\r
 #\r
 #\r
@@ -36,9 +28,9 @@ class OPTIONROM (OptionRomClassObject):
     #\r
     #   @param  self        The object pointer\r
     #\r
-    def __init__(self):\r
+    def __init__(self, Name = ""):\r
         OptionRomClassObject.__init__(self)\r
-\r
+        self.DriverName = Name\r
 \r
     ## AddToBuffer()\r
     #\r