All of lore.kernel.org
 help / color / mirror / Atom feed
From: Elie De Brauwer <eliedebrauwer@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] fw_printenv cross compilation issue
Date: Mon, 14 Mar 2011 14:58:20 +0100	[thread overview]
Message-ID: <4D7E1EFC.3020006@gmail.com> (raw)
In-Reply-To: <4D7E1A29.5080601@denx.de>

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

  reply	other threads:[~2011-03-14 13:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-03-14 13:39 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D7E1EFC.3020006@gmail.com \
    --to=eliedebrauwer@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.