From cf9959adffe8ecd3dd9bad1e5a1ce1c34cefc0e9 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Wed, 2 Jun 2021 16:11:42 +0800 Subject: [PATCH] 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 Reviewed-by: Feng Bob C --- 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} - - - GenFw -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) + + "$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)