summaryrefslogtreecommitdiff
path: root/BaseTools/Conf/build_rule.template
diff options
context:
space:
mode:
authorLiming Gao <gaoliming@byosoft.com.cn>2021-06-02 16:11:42 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-06-04 09:20:06 +0000
commitcf9959adffe8ecd3dd9bad1e5a1ce1c34cefc0e9 (patch)
tree47b659ba80ed4e933200c0238fa622a3a81c7929 /BaseTools/Conf/build_rule.template
parentc6b872c6ab26407a8abc8dd294375f7fdf731f60 (diff)
downloadedk2-cf9959adffe8ecd3dd9bad1e5a1ce1c34cefc0e9.zip
edk2-cf9959adffe8ecd3dd9bad1e5a1ce1c34cefc0e9.tar.gz
edk2-cf9959adffe8ecd3dd9bad1e5a1ce1c34cefc0e9.tar.bz2
BaseTools: Update build_rule to skip CLANG resource section generation
LLVM/CLANG doesn't support resource section generation when ELF image generated. Signed-off-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Feng Bob C <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Conf/build_rule.template')
-rwxr-xr-xBaseTools/Conf/build_rule.template5
1 files changed, 2 insertions, 3 deletions
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template
index 1395792..3add102 100755
--- a/BaseTools/Conf/build_rule.template
+++ b/BaseTools/Conf/build_rule.template
@@ -669,6 +669,5 @@
<Command.GCC>
"$(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)