> +DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG     = 
> --add-gnu-debuglink=$(DEBUG_DIR)\$(MODULE_NAME).debug

Sergey pointed out that our tools_def uses a \ character for a path
separator rather than a / character. This causes the command to fail
on Linux.

I guess this means it was tested on windows with mingw? Could someone
familiar with this functionality test it with mingw using the / path
separator instead?

Thanks,

-Jordan

On Wed, Oct 19, 2011 at 12:17 AM,  <[email protected]> wrote:
> Revision: 2372
>           
> http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2372&view=rev
> Author:   jsu1
> Date:     2011-10-19 07:17:30 +0000 (Wed, 19 Oct 2011)
> Log Message:
> -----------
>   Update tool definition to only add gnu debug section when generating efi 
> image for GCC toolchain DEBUG build.
>
> Reviewed-by: gikidy
> Signed-off-by: jsu1
>
> Modified Paths:
> --------------
>     trunk/BaseTools/Conf/build_rule.template
>     trunk/BaseTools/Conf/tools_def.template
>
> Modified: trunk/BaseTools/Conf/build_rule.template
> ===================================================================
> --- trunk/BaseTools/Conf/build_rule.template    2011-10-19 06:52:28 UTC (rev 
> 2371)
> +++ trunk/BaseTools/Conf/build_rule.template    2011-10-19 07:17:30 UTC (rev 
> 2372)
> @@ -305,7 +305,7 @@
>          #
>          #The below 2 lines are only needed for UNIXGCC tool chain, which 
> genereates PE image directly
>          #
> -        -$(OBJCOPY) --add-gnu-debuglink=$(DEBUG_DIR)(+)$(MODULE_NAME).debug 
> ${src}
> +        -$(OBJCOPY) $(OBJCOPY_ADDDEBUGFLAG) ${src}
>          -$(CP) $(DEBUG_DIR)(+)$(MODULE_NAME).debug $(BIN_DIR)
>
>          "$(GENFW)" -e $(MODULE_TYPE) -o ${dst} ${src} $(GENFW_FLAGS)
>
> Modified: trunk/BaseTools/Conf/tools_def.template
> ===================================================================
> --- trunk/BaseTools/Conf/tools_def.template     2011-10-19 06:52:28 UTC (rev 
> 2371)
> +++ trunk/BaseTools/Conf/tools_def.template     2011-10-19 07:17:30 UTC (rev 
> 2372)
> @@ -1969,6 +1969,8 @@
>  *_*_*_OBJCOPY_FLAGS             = objcopy not needed for
>  *_*_*_SYMRENAME_PATH            = echo
>  *_*_*_SYMRENAME_FLAGS           = Symbol renaming not needed for
> +DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG     = 
> --add-gnu-debuglink=$(DEBUG_DIR)\$(MODULE_NAME).debug
> +RELEASE_*_*_OBJCOPY_ADDDEBUGFLAG   =
>
>  DEFINE GCC_ALL_CC_FLAGS            = -g -Os -fshort-wchar 
> -fno-strict-aliasing -Wall -Werror -Wno-missing-braces -Wno-array-bounds -c 
> -include AutoGen.h
>  DEFINE GCC_IA32_CC_FLAGS           = DEF(GCC_ALL_CC_FLAGS) -m32 
> -malign-double -freorder-blocks -freorder-blocks-and-partition -O2 
> -mno-stack-arg-probe
>
> This was sent by the SourceForge.net collaborative development platform, the 
> world's largest Open Source development site.
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> edk2-buildtools-commits mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-commits

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel

Reply via email to