]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
BaseTools/Build: Consider only build-specified architectures
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / WorkspaceDatabase.py
index b2c4d6e4dafbf7657b2ef202eaebb0b9adbdc3f1..34bc48a0d35994ea012752c5eb8a06d72e2be8b4 100644 (file)
@@ -2,6 +2,7 @@
 # This file is used to create a database used by build tool\r
 #\r
 # Copyright (c) 2008 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\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
@@ -543,6 +544,13 @@ class DscBuildData(PlatformBuildClassObject):
         Macros["EDK_SOURCE"] = GlobalData.gEcpSource\r
         for Record in RecordList:\r
             DuplicatedFile = False\r
+\r
+            # process only records COMMON and self.Arch\r
+            SectionArch = Record[3].upper()\r
+            if SectionArch != 'COMMON':\r
+                if SectionArch != self.Arch:\r
+                    continue\r
+\r
             ModuleFile = PathClass(NormPath(Record[0], Macros), GlobalData.gWorkspace, Arch=self._Arch)\r
             ModuleId = Record[5]\r
             LineNo = Record[6]\r