[U-Boot] [WIP] tools/env: cleanup host build flags

Mike Frysinger vapier at gentoo.org
Wed Nov 10 10:23:12 CET 2010


On Monday, October 11, 2010 12:06:46 Daniel Hobi wrote:
> This patch makes tools/env/Makefile more similar to tools/imls:
> - define HOSTSRCS and HOSTCPPFLAGS, so that .depend generation works.
> - include U-Boot headers using -idirafter to prevent picking up
>   u-boot/include/errno.h.

these things really need to be unified instead of copying & pasting them from 
other Makefiles

> - use the cross compiler again (fw_printenv is intended for a
>   hosted environment on the target).

the cross-compiler used to create u-boot has no guarantee that it'll produce 
executables useful for the target OS.  often this isnt the case.  HOSTCC 
however will produce useful userspace applications for whatever host the user 
has selection.

this works perfectly fine for me:
	make tools env HOSTCC=bfin-uclinux-gcc
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101110/66045816/attachment.pgp 


More information about the U-Boot mailing list