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

2010-11-10 Thread Mike Frysinger
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

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

2010-11-10 Thread Daniel Hobi
Hi Mike, On 10.11.2010 10:23, Mike Frysinger wrote: On Monday, October 11, 2010 12:06:46 Daniel Hobi wrote: - 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

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

2010-11-10 Thread Wolfgang Denk
Dear Mike Frysinger, In message 201011100423.13449.vap...@gentoo.org you wrote: - 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

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

2010-11-10 Thread Mike Frysinger
On Wednesday, November 10, 2010 15:00:48 Wolfgang Denk wrote: Mike Frysinger wrote: - 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

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

2010-11-10 Thread Mike Frysinger
On Wednesday, November 10, 2010 06:58:51 Daniel Hobi wrote: On 10.11.2010 10:23, Mike Frysinger wrote: On Monday, October 11, 2010 12:06:46 Daniel Hobi wrote: - use the cross compiler again (fw_printenv is intended for a hosted environment on the target). the cross-compiler used

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

2010-11-10 Thread Grant Edwards
On 2010-11-10, Wolfgang Denk w...@denx.de wrote: Dear Mike Frysinger, In message 201011100423.13449.vap...@gentoo.org you wrote: - 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

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

2010-11-10 Thread Wolfgang Denk
Dear Mike Frysinger, In message 201011101706.17988.vap...@gentoo.org you wrote: based on your based comments, i'm really not surprised. you constantly prefer to ignore reality and the state of GNU toolchains. plus, you ignore other I'm a software developer. If tool chains are broken, I

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

2010-11-10 Thread Mike Frysinger
On Wednesday, November 10, 2010 17:25:31 Wolfgang Denk wrote: Mike Frysinger wrote: IIRC, HOSTCC refers to the C compiler on the and for the build host, i. e. when running on a x86 system it will create x86 code. This is obviously wrong when we try to build fw_printenv for, say, a

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

2010-11-09 Thread Detlev Zundel
Hello Daniel, 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. - use HOSTCFLAGS_NOPED (fw_env.c does not conform to

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

2010-11-09 Thread Steve Sakoman
On Tue, Nov 9, 2010 at 7:03 AM, Detlev Zundel d...@denx.de wrote: Hello Daniel, 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] [WIP] tools/env: cleanup host build flags

2010-10-11 Thread Daniel Hobi
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. - use HOSTCFLAGS_NOPED (fw_env.c does not conform to -pedantic). - use the

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

2010-10-11 Thread Scott Wood
On Mon, 11 Oct 2010 18:06:46 +0200 Daniel Hobi daniel.h...@schmid-telecom.ch wrote: Hi Scott, In commit d984fed0 (makefiles: fixes for building build tools), you suggest that using $(CC) with host flags (HOSTCFLAGS, etc) is the correct way to use the cross compiler to generate binaries for