summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2023-04-24 07:39:59 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-25 06:49:26 +0000
commit6127bf1f30a97e8135905d921d7745eb13554815 (patch)
tree9334b5ecc4881c9b98e4c82c1da1c7d9c17c5391 /BaseTools
parent2c2cb235289642775a7c4e6eaeffa6d3828d279c (diff)
downloadedk2-6127bf1f30a97e8135905d921d7745eb13554815.tar.gz
edk2-6127bf1f30a97e8135905d921d7745eb13554815.tar.bz2
edk2-6127bf1f30a97e8135905d921d7745eb13554815.zip
BaseTools: Add quotes around OBJCOPY cmd in build_rule.template
Add quotes around the OBJCOPY command in build_rule.template to fix the case where LLVM is installed on Windows in a path with spaces such as C:\Program Files\LLVM. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools')
-rwxr-xr-xBaseTools/Conf/build_rule.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template
index d42e7937cc..eb64c62060 100755
--- a/BaseTools/Conf/build_rule.template
+++ b/BaseTools/Conf/build_rule.template
@@ -352,12 +352,12 @@
-$(CP) $(DEBUG_DIR)(+)*.pdb $(OUTPUT_DIR)
<Command.GCC>
$(CP) ${src} $(DEBUG_DIR)(+)$(MODULE_NAME).debug
- $(OBJCOPY) $(OBJCOPY_STRIPFLAG) ${src}
+ "$(OBJCOPY)" $(OBJCOPY_STRIPFLAG) ${src}
#
#The below 2 lines are only needed for UNIXGCC tool chain, which generates PE image directly
#
- -$(OBJCOPY) $(OBJCOPY_ADDDEBUGFLAG) ${src}
+ -"$(OBJCOPY)" $(OBJCOPY_ADDDEBUGFLAG) ${src}
-$(CP) $(DEBUG_DIR)(+)$(MODULE_NAME).debug $(BIN_DIR)(+)$(MODULE_NAME_GUID).debug
"$(GENFW)" -e $(MODULE_TYPE) -o ${dst} ${src} $(GENFW_FLAGS)