public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: <devel@edk2.groups.io>, <rebecca@bsdio.com>,
	"'Bob Feng'" <bob.c.feng@intel.com>,
	"'Yuwei Chen'" <yuwei.chen@intel.com>
Subject: 回复: [edk2-devel] [PATCH v2 1/1] BaseTools: Add quotes around OBJCOPY cmd in build_rule.template
Date: Tue, 25 Apr 2023 07:48:58 +0800	[thread overview]
Message-ID: <004c01d97707$56f5b540$04e11fc0$@byosoft.com.cn> (raw)
In-Reply-To: <20230424140534.1637-1-rebecca@bsdio.com>

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

This change can be merged first. 

Thanks
Liming
> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Rebecca Cran
> 发送时间: 2023年4月24日 22:06
> 收件人: devel@edk2.groups.io; Liming Gao <gaoliming@byosoft.com.cn>;
> Bob Feng <bob.c.feng@intel.com>; Yuwei Chen <yuwei.chen@intel.com>
> 抄送: Rebecca Cran <rebecca@bsdio.com>
> 主题: [edk2-devel] [PATCH v2 1/1] 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>
> ---
>  BaseTools/Conf/build_rule.template | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/BaseTools/Conf/build_rule.template
> b/BaseTools/Conf/build_rule.template
> index d42e7937cc90..eb64c62060e1 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)
> --
> 2.40.0.windows.1
> 
> 
> 
> 
> 




  reply	other threads:[~2023-04-24 23:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24 14:05 [PATCH v2 1/1] BaseTools: Add quotes around OBJCOPY cmd in build_rule.template Rebecca Cran
2023-04-24 23:48 ` gaoliming [this message]
2023-04-25  3:48 ` Bob Feng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004c01d97707$56f5b540$04e11fc0$@byosoft.com.cn' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox