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>
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user