public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
To: u-boot@lists.denx.de
Subject: [U-Boot] [WIP] tools/env: cleanup host build flags
Date: Wed, 10 Nov 2010 12:58:51 +0100	[thread overview]
Message-ID: <4CDA88FB.10100@schmid-telecom.ch> (raw)
In-Reply-To: <201011100423.13449.vapier@gentoo.org>

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 
> 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.

But in many cases the default for CC is sufficient to build such
executables, whereas the default for HOSTCC is almost never (except when
HOST==TARGET).

Usually HOSTCC refers to the system where the toolchain is running. So
maybe we should introduce TARGETCC to build executables running on the
system the toolchain is generating executables for. TARGETCC would
default to CC and could be overriden in the way you demonstrated:

> this works perfectly fine for me:
> 	make tools env HOSTCC=bfin-uclinux-gcc

Best regards,
Daniel

  reply	other threads:[~2010-11-10 11:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-11 16:06 [U-Boot] [WIP] tools/env: cleanup host build flags Daniel Hobi
2010-10-11 19:16 ` Scott Wood
2010-11-09 15:03 ` Detlev Zundel
2010-11-09 15:58   ` Steve Sakoman
2010-11-10  9:23 ` Mike Frysinger
2010-11-10 11:58   ` Daniel Hobi [this message]
2010-11-10 22:09     ` Mike Frysinger
2010-11-10 13:11   ` [U-Boot] [PATCH] " Daniel Hobi
2010-11-10 20:00   ` [U-Boot] [WIP] " Wolfgang Denk
2010-11-10 22:06     ` Mike Frysinger
2010-11-10 22:25       ` Wolfgang Denk
2010-11-10 22:51         ` Mike Frysinger
2010-11-10 22:12     ` Grant Edwards

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=4CDA88FB.10100@schmid-telecom.ch \
    --to=daniel.hobi@schmid-telecom.ch \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox