* [U-Boot] fw_printenv cross compilation issue
@ 2011-03-14 13:15 Elie De Brauwer
2011-03-14 13:37 ` Stefano Babic
2011-03-14 13:39 ` Wolfgang Denk
0 siblings, 2 replies; 4+ messages in thread
From: Elie De Brauwer @ 2011-03-14 13:15 UTC (permalink / raw)
To: u-boot
Hi List,
I tried crosscompiling fw_printenv lately (on 2011.03 RC1) but I kept
ending with a natively compiled version of fw_printenv. When looking at
the tools/env/Makefile I saw it was using $(HOSTCC) and friends, basicly
ever since:
http://git.denx.de/?p=u-boot.git;a=commitdiff;h=abd315a1357ab05e82f0d61ebad666bc0d5378c3
Is there a rationale for this ? Just reverting this change to
http://git.denx.de/?p=u-boot.git;a=blob;f=tools/env/Makefile;hb=78acc472d9719316f22e002a009a998d9ceec29d
Makes building a crosscompiled fw_printenv possible again.
gr
E.
--
Elie De Brauwer
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] fw_printenv cross compilation issue
2011-03-14 13:15 [U-Boot] fw_printenv cross compilation issue Elie De Brauwer
@ 2011-03-14 13:37 ` Stefano Babic
2011-03-14 13:58 ` Elie De Brauwer
2011-03-14 13:39 ` Wolfgang Denk
1 sibling, 1 reply; 4+ messages in thread
From: Stefano Babic @ 2011-03-14 13:37 UTC (permalink / raw)
To: u-boot
On 03/14/2011 02:15 PM, Elie De Brauwer wrote:
> Hi List,
>
> I tried crosscompiling fw_printenv lately (on 2011.03 RC1) but I kept
> ending with a natively compiled version of fw_printenv. When looking at
> the tools/env/Makefile I saw it was using $(HOSTCC) and friends, basicly
> ever since:
> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=abd315a1357ab05e82f0d61ebad666bc0d5378c3
>
> Is there a rationale for this ?
Yes, there is an issue requiring to compile the env tools with native
compiler.
> Just reverting this change to
> http://git.denx.de/?p=u-boot.git;a=blob;f=tools/env/Makefile;hb=78acc472d9719316f22e002a009a998d9ceec29d
>
> Makes building a crosscompiled fw_printenv possible again.
You do not need, try this:
make HOSTCC=<your CC cross-compiler> env
for example, make HOSTCC=arm-linux-gcc env
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] fw_printenv cross compilation issue
2011-03-14 13:15 [U-Boot] fw_printenv cross compilation issue Elie De Brauwer
2011-03-14 13:37 ` Stefano Babic
@ 2011-03-14 13:39 ` Wolfgang Denk
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2011-03-14 13:39 UTC (permalink / raw)
To: u-boot
Dear Elie De Brauwer,
In message <4D7E14ED.1050500@gmail.com> you wrote:
>
> I tried crosscompiling fw_printenv lately (on 2011.03 RC1) but I kept
> ending with a natively compiled version of fw_printenv. When looking at
> the tools/env/Makefile I saw it was using $(HOSTCC) and friends, basicly
> ever since:
> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=abd315a1357ab05e82f0d61ebad666bc0d5378c3
>
> Is there a rationale for this ? Just reverting this change to
> http://git.denx.de/?p=u-boot.git;a=blob;f=tools/env/Makefile;hb=78acc472d9719316f22e002a009a998d9ceec29d
>
> Makes building a crosscompiled fw_printenv possible again.
There is a rationale for that, and Mike Frisinger explained it when
this patch was being discussed, and later again. Please see the
archives.
I have to admit that I share your confusion, but even rational is
relative ;-)
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A stone was placed at a ford in a river with the inscription:
"When this stone is covered it is dangerous to ford here."
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] fw_printenv cross compilation issue
2011-03-14 13:37 ` Stefano Babic
@ 2011-03-14 13:58 ` Elie De Brauwer
0 siblings, 0 replies; 4+ messages in thread
From: Elie De Brauwer @ 2011-03-14 13:58 UTC (permalink / raw)
To: u-boot
On 03/14/11 14:37, Stefano Babic wrote:
> On 03/14/2011 02:15 PM, Elie De Brauwer wrote:
>> Hi List,
>>
>> I tried crosscompiling fw_printenv lately (on 2011.03 RC1) but I kept
>> ending with a natively compiled version of fw_printenv. When looking at
>> the tools/env/Makefile I saw it was using $(HOSTCC) and friends, basicly
>> ever since:
>> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=abd315a1357ab05e82f0d61ebad666bc0d5378c3
>>
>> Is there a rationale for this ?
>
> Yes, there is an issue requiring to compile the env tools with native
> compiler.
>
>> Just reverting this change to
>> http://git.denx.de/?p=u-boot.git;a=blob;f=tools/env/Makefile;hb=78acc472d9719316f22e002a009a998d9ceec29d
>>
>> Makes building a crosscompiled fw_printenv possible again.
>
> You do not need, try this:
>
> make HOSTCC=<your CC cross-compiler> env
>
> for example, make HOSTCC=arm-linux-gcc env
>
Allright,
Thanks for the info, guessed reading some older docs on the internet
confused me.
gr
E
--
Elie De Brauwer
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-14 13:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 13:15 [U-Boot] fw_printenv cross compilation issue Elie De Brauwer
2011-03-14 13:37 ` Stefano Babic
2011-03-14 13:58 ` Elie De Brauwer
2011-03-14 13:39 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox