diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2019-01-10 17:03:29 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-01-14 11:14:24 +0800 |
commit | 5bc96263ea2bfecb07deea81c68a6c3e226ebda1 (patch) | |
tree | af553c434ac2b33b4c6dcd4f84634ddfd8ce18ca /BaseTools/Source/Python/Workspace/MetaFileParser.py | |
parent | 7217b8796d2727db76cd6684ba706c3b643b1d62 (diff) | |
download | edk2-5bc96263ea2bfecb07deea81c68a6c3e226ebda1.tar.gz edk2-5bc96263ea2bfecb07deea81c68a6c3e226ebda1.tar.bz2 edk2-5bc96263ea2bfecb07deea81c68a6c3e226ebda1.zip |
BaseTools: Enable component override functionality
https://bugzilla.tianocore.org/show_bug.cgi?id=1449
This patch enable build tools to recognize that
when two given files have the same GUID, file path and ARCH in Dsc,
The later one's definition will be used.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Carsey Jaben <jaben.carsey@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/MetaFileParser.py')
-rw-r--r-- | BaseTools/Source/Python/Workspace/MetaFileParser.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Workspace/MetaFileParser.py b/BaseTools/Source/Python/Workspace/MetaFileParser.py index f2322b36ac..6df0d3cdf8 100644 --- a/BaseTools/Source/Python/Workspace/MetaFileParser.py +++ b/BaseTools/Source/Python/Workspace/MetaFileParser.py @@ -1697,6 +1697,11 @@ class DscParser(MetaFileParser): self._ValueList = [ReplaceMacro(Value, self._Macros, RaiseError=False)
for Value in self._ValueList]
+ def DisableOverrideComponent(self,module_id):
+ for ori_id in self._IdMapping:
+ if self._IdMapping[ori_id] == module_id:
+ self._RawTable.DisableComponent(ori_id)
+
_SectionParser = {
MODEL_META_DATA_HEADER : _DefineParser,
MODEL_EFI_SKU_ID : _SkuIdParser,
|