summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-04-03 10:17:02 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-04-10 13:32:10 +0800
commitb1e27d175abbb42c4bcc8565a3e0e622d643c40f (patch)
treed9a1ae34cf5d8173384b536b884d86502a26503b /BaseTools/Source/Python/Workspace
parentae2fb9ead47b5abaf2a4e815b5f57c8f4838b221 (diff)
downloadedk2-b1e27d175abbb42c4bcc8565a3e0e622d643c40f.tar.gz
edk2-b1e27d175abbb42c4bcc8565a3e0e622d643c40f.tar.bz2
edk2-b1e27d175abbb42c4bcc8565a3e0e622d643c40f.zip
BaseTools: Fixed issue in MultiThread Genfds function
https://bugzilla.tianocore.org/show_bug.cgi?id=1450 In the Multiple thread Genfds feature, build tool generates GenSec, GenFFS command in Makefile. The Non-Hii Driver does not generate .offset file for uni string offset, but the build tool has not knowledge about this in autogen phase. So in this patch, I add a check in Makefile for GenSec command. If the GenSec input file does not exist, the GenSec will not be called. And if GenSec command is not called, its output file, which is also the input file of GenFfs command, will also not exist.So for GenFfs command, I add a new command parameter -oi which means the input file is an optional input file which would not exist. so that I can generate GenFfs command with "-oi" parameter in Makefile. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace')
-rw-r--r--BaseTools/Source/Python/Workspace/DscBuildData.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py
index f34cf18056..5431296b5a 100644
--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
@@ -314,6 +314,9 @@ class DscBuildData(PlatformBuildClassObject):
@property
def Arch(self):
return self._Arch
+ @property
+ def Dir(self):
+ return self.MetaFile.Dir
## Retrieve all information in [Defines] section
#