[edk2-devel] [PATCH 3/6] BaseTools: Update build_rule to skip CLANG resource section generation

Ni, Ray ray.ni at intel.com
Wed Jun 2 07:45:51 UTC 2021

From: Liming Gao <liming.gao at intel.com>

LLVM/CLANG doesn't support resource section generation when ELF image generated.

Signed-off-by: Liming Gao <liming.gao at intel.com>
Reviewed-by: Feng Bob C <bob.c.feng at intel.com>

# Conflicts:
#	BaseTools/Conf/build_rule.template
 BaseTools/Conf/build_rule.template | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template
index 1395792cd6..3add1029f2 100755
--- a/BaseTools/Conf/build_rule.template
+++ b/BaseTools/Conf/build_rule.template
@@ -669,6 +669,5 @@
         "$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
         "$(RC)" $(RC_FLAGS) $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc ${dst}
-    <Command.XCODE, Command.RVCT>
-        GenFw -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES)
+    <Command.XCODE, Command.RVCT, Command.CLANGGCC>
+        "$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)

Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#75949): https://edk2.groups.io/g/devel/message/75949
Mute This Topic: https://groups.io/mt/83253705/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]

More information about the edk2-devel-archive mailing list