Eugene:
  Do you configure GCC49_DLL if you use GCC49 tool chain? GCC49_DLL specifies 
the path to include echo command. Below is my configuration. I can build pass 
in IA32 and ARM arch. The GCC binary tools is got from 
https://sourceforge.net/projects/edk2developertoolsforwindows/files/Tool%20Chain%20Binaries/.
 If you only use gcc ARM, you can set 
GCC49_DLL=%UEFI_BUILD_TOOLS%\gcc492-arm\bin\;%UEFI_BUILD_TOOLS%\gcc492-arm\dll\

@rem I extract gcc binary tools to tools directory. 
set UEFI_BUILD_TOOLS=%cd%\tools
set NASM_PREFIX=%UEFI_BUILD_TOOLS%\nasm211\
set GCC49_BIN=%UEFI_BUILD_TOOLS%\gcc492-x86\bin\
set GCC49_DLL=%UEFI_BUILD_TOOLS%\gcc492-x86\dll\;%GCC49_BIN%
set GCC49_ARM_PREFIX=%UEFI_BUILD_TOOLS%\gcc492-arm\bin\
set GCC49_AARCH64_PREFIX=%UEFI_BUILD_TOOLS%\gcc492-aarch64\bin\

Thanks
Liming
-----Original Message-----
From: edk2-devel [mailto:[email protected]] On Behalf Of Cohen, 
Eugene
Sent: Wednesday, March 2, 2016 1:12 AM
To: [email protected]
Subject: [edk2] "echo" objcopy not needed doesn't actually work

I've tolerated this for a while now and am at a point where I want to raise it 
with edk2-dev...

The GCC common configuration in tools_def contains this bit of trickery:

####################################################################################
# GCC Common
####################################################################################

*_*_*_OBJCOPY_PATH              = echo
*_*_*_OBJCOPY_FLAGS             = objcopy not needed for
*_*_*_SYMRENAME_PATH            = echo

but this doesn't actually work on my Windows box since built-in commands are 
apparently not usable in the makefile context:

"echo" objcopy not needed for 
c:\edk2\Build\ArmVirtQemu-AARCH64\RELEASE_GCC49\AARCH64\MdeModulePkg\Universal\Network\Dhcp4Dxe\Dhcp4Dxe\DEBUG\Dhcp4Dxe.
dll
'"echo"' is not recognized as an internal or external command,
operable program or batch file.

If I change echo above to 'myecho.bat' and create a file with 'echo %*' in it, 
it works fine.

So how do others get GCC/make to work on Windows (or what non-obvious step am I 
missing)?

Thanks,

Eugene



_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to