Re: [edk2-devel] [Patch 1/1] BaseTools: Enable MACRO for DSC Components section tag

2019-11-11 Thread Liming Gao
Reviewed-by: Liming Gao 

>-Original Message-
>From: Feng, Bob C
>Sent: Tuesday, November 12, 2019 10:04 AM
>To: devel@edk2.groups.io
>Cc: Gao, Liming ; Feng, Bob C 
>Subject: [Patch 1/1] BaseTools: Enable MACRO for DSC Components section
>tag
>
>BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2308
>
>This patch is to enable MACRO for Components section architecture
>modifier.
>
>Cc: Liming Gao 
>Signed-off-by: Bob Feng 
>---
> BaseTools/Source/Python/Workspace/MetaFileParser.py | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/BaseTools/Source/Python/Workspace/MetaFileParser.py
>b/BaseTools/Source/Python/Workspace/MetaFileParser.py
>index 806fc322c56c..0a131fc76981 100644
>--- a/BaseTools/Source/Python/Workspace/MetaFileParser.py
>+++ b/BaseTools/Source/Python/Workspace/MetaFileParser.py
>@@ -326,10 +326,11 @@ class MetaFileParser(object):
> # S1 is always Arch
> if len(ItemList) > 1:
> S1 = ItemList[1].upper()
> else:
> S1 = TAB_ARCH_COMMON
>+S1 = ReplaceMacro(S1, self._Macros)
> ArchList.add(S1)
>
> # S2 may be Platform or ModuleType
> if len(ItemList) > 2:
> if self._SectionName.upper() in SECTIONS_HAVE_ITEM_PCD_SET:
>--
>2.20.1.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#50409): https://edk2.groups.io/g/devel/message/50409
Mute This Topic: https://groups.io/mt/53630839/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[edk2-devel] [Patch 1/1] BaseTools: Enable MACRO for DSC Components section tag

2019-11-11 Thread Bob Feng
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2308

This patch is to enable MACRO for Components section architecture
modifier.

Cc: Liming Gao 
Signed-off-by: Bob Feng 
---
 BaseTools/Source/Python/Workspace/MetaFileParser.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/BaseTools/Source/Python/Workspace/MetaFileParser.py 
b/BaseTools/Source/Python/Workspace/MetaFileParser.py
index 806fc322c56c..0a131fc76981 100644
--- a/BaseTools/Source/Python/Workspace/MetaFileParser.py
+++ b/BaseTools/Source/Python/Workspace/MetaFileParser.py
@@ -326,10 +326,11 @@ class MetaFileParser(object):
 # S1 is always Arch
 if len(ItemList) > 1:
 S1 = ItemList[1].upper()
 else:
 S1 = TAB_ARCH_COMMON
+S1 = ReplaceMacro(S1, self._Macros)
 ArchList.add(S1)
 
 # S2 may be Platform or ModuleType
 if len(ItemList) > 2:
 if self._SectionName.upper() in SECTIONS_HAVE_ITEM_PCD_SET:
-- 
2.20.1.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#50397): https://edk2.groups.io/g/devel/message/50397
Mute This Topic: https://groups.io/mt/53630839/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-