]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/DepexSection.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / DepexSection.py
index b2d123bfc04578883016688bf00ded6e8faf4280..6cabac38c496ea52d1d2a4c1d8d6848e0c2dc032 100644 (file)
@@ -3,13 +3,7 @@
 #\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
@@ -18,8 +12,6 @@
 from __future__ import absolute_import\r
 from . import Section\r
 from .GenFdsGlobalVariable import GenFdsGlobalVariable\r
-import subprocess\r
-from .Ffs import Ffs\r
 import Common.LongFilePathOs as os\r
 from CommonDataClass.FdfClass import DepexSectionClassObject\r
 from AutoGen.GenDepex import DependencyExpression\r
@@ -46,9 +38,8 @@ class DepexSection (DepexSectionClassObject):
                                                                     GenFdsGlobalVariable.TargetName,\r
                                                                     GenFdsGlobalVariable.ToolChainTag)\r
             for Inf in GenFdsGlobalVariable.FdfParser.Profile.InfList:\r
-                ModuleFile = PathClass(Inf, GenFdsGlobalVariable.WorkSpaceDir)\r
                 ModuleData = GenFdsGlobalVariable.WorkSpace.BuildObject[\r
-                                                            ModuleFile,\r
+                                                            PathClass(Inf, GenFdsGlobalVariable.WorkSpaceDir),\r
                                                             Arch,\r
                                                             GenFdsGlobalVariable.TargetName,\r
                                                             GenFdsGlobalVariable.ToolChainTag\r