> On Mar 1, 2016, at 9:12 AM, Cohen, Eugene <[email protected]> wrote: > > 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)? >
Eugene, Not that I'm a make expert, but I've been hacking on some makefiles recently... Not to mention I stayed in the Cupertino Inn last night. Each line of the recipe in the makefile should invoke a unique instance of the shell. Thus it seems you are invoking the wrong shell so take a look at: https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html Seems the default on MS-DOS/MS-Windows for the shell in a makefile is funky. Thanks, Andrew Fish PS If you end up writing a top level GNUmakefile a parallel build, `make -j 4`, of the BaseTools can fail. If you need this to work you can add ".NOTPARALLEL:" to your top level makefile or the BaseTools GNUmakefile. > 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

