public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] MAKEALL
Date: Tue, 18 Oct 2011 16:55:28 -0400	[thread overview]
Message-ID: <201110181655.29507.vapier@gentoo.org> (raw)
In-Reply-To: <20111018204712.0F5B314094B3@gemini.denx.de>

On Tuesday 18 October 2011 16:47:12 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > > I see no clean way to implement this - ok, we could provide an
> > > external tool / data base that maps boards or SoC names to
> > > CROSS_COMPILE/ARCH/PATH settings, which each user has to configure for
> > > his own set of tool chain settings.
> > 
> > my proposal is only for the default behavior, and it only searches $PATH.
> >  if the auto-lookup isn't what the user wants, they still can set
> > CROSS_COMPILE= themselves.  so all existing usage is unchanged.
> 
> While we are at it I would like to fix the known (to me) problems of
> the current usage - that is for example that ARCH=arm includes for
> example both little and big endian systems, which usually require
> different tool chains to be used.

at least from code sorcery (who have been defacto arm providers), their single 
toolchain includes support for both endians in one package.  the right 
output/libraries are selected with -m{big,little}-endian.

in terms of compiling all the arm in a single run, i haven't had a problem 
with my one toolchain (which defaults to little endian).  but i've been using 
the private libgcc due to the many issues (including this) that comes with 
trying to use the one provided by the toolchain.

i see that some targets do add -EB/-EL/-mbig-endian to their compiler flags in 
the respective config.mk files ...

> > to add a further bit of flexibility, i might also propose that MAKEALL
> > check the variable CROSS_COMPILE_<arch> and automatically set
> > CROSS_COMPILE to that before running `make`.  this way people can do
> > CROSS_COMPILE_arm=... CROSS_COMPILE_powerpc=... ./MAKEALL arm powerpc.
> 
> That would still be to coarse for above issue.  Also, you might want
> to use different ARM tool chains for ARMv5te systemd than for ARMv6
> and yet other ones for ARMv7a, etc.

the idea is easy to extend to CROSS_COMPILE_<soc|cpu> and perhaps even 
CROSS_COMPILE_<vendor|board>

if you're not against the concept, i can post a patch and we can go from 
there.  but i can say that the limited MAKEALL behavior is the single reason 
for my limited build testing in the past.  i wrote the buildall script after 
trying to do tree-wide changes in the last few months because running 
./MAKEALL simply does not scale.
-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/20111018/67cf36ed/attachment.pgp 

  reply	other threads:[~2011-10-18 20:55 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-18  6:23 [U-Boot] [STATUS] "Quality" of patches / testing Wolfgang Denk
2011-10-18  6:51 ` Simon Schwarz
2011-10-18  9:22   ` Andreas Bießmann
2011-10-18  9:44     ` Wolfgang Denk
2011-10-18 13:05       ` Jason
2011-10-18 13:10         ` Jason
2011-10-18 13:13         ` Simon Schwarz
2011-10-18 13:49           ` Jason
2011-10-18 15:37             ` Jason
2011-10-18 16:12           ` Mike Frysinger
2011-10-18 13:36         ` Andreas Bießmann
2011-10-18 15:55           ` Jason
2011-10-18 14:05       ` Simon Glass
2011-10-18 16:59         ` Anton Staaf
2011-10-18 20:23         ` Wolfgang Denk
2011-10-20  0:39           ` Simon Glass
2011-10-20 15:32             ` Wolfgang Denk
2011-10-18 10:24     ` Lukasz Majewski
2011-10-18 11:02       ` Wolfgang Denk
2011-10-18  9:34   ` Wolfgang Denk
2011-10-18 13:05     ` Simon Schwarz
2011-10-18  8:49 ` Lukasz Majewski
2011-10-18 17:01 ` [U-Boot] MAKEALL Mike Frysinger
2011-10-18 17:39   ` Simon Glass
2011-10-18 17:58   ` Tom Rini
2011-10-18 18:11     ` Mike Frysinger
2011-10-18 18:31     ` Mike Frysinger
2011-10-18 18:54       ` Tom Rini
2011-10-18 19:49         ` Mike Frysinger
2011-10-18 20:07   ` Wolfgang Denk
2011-10-18 20:14     ` Mike Frysinger
2011-10-18 20:47       ` Wolfgang Denk
2011-10-18 20:55         ` Mike Frysinger [this message]
2011-10-18 21:30           ` Simon Glass
2011-10-18 22:21             ` Mike Frysinger
2011-10-19 11:36               ` Albert ARIBAUD
2011-10-19 14:25                 ` Mike Frysinger
2011-10-19 19:57                   ` Wolfgang Denk
2011-10-18 21:50           ` Wolfgang Denk
2011-10-18 22:18             ` Mike Frysinger
2011-10-18 22:33     ` Graeme Russ
2011-10-19  7:12       ` Andreas Bießmann
2011-10-19  8:57       ` Wolfgang Denk
2011-10-18 17:16 ` [U-Boot] [STATUS] "Quality" of patches / testing Anton Staaf
2011-10-18 17:44   ` Albert ARIBAUD
2011-10-18 18:07     ` Anton Staaf
2011-10-20  9:25 ` Detlev Zundel
  -- strict thread matches above, loose matches on Subject: below --
2014-01-03 23:05 [U-Boot] MAKEALL York Sun
2014-01-04  9:21 ` Wolfgang Denk
2014-01-08 16:54   ` Simon Glass
2014-02-12  9:55     ` Albert ARIBAUD
2014-02-12 10:42       ` Masahiro Yamada
2014-02-16  4:57         ` Simon Glass
2014-02-19 14:04           ` Masahiro Yamada
2014-01-29  7:13 JYOTI DUBEY
2014-01-29  7:24 ` Anatolij Gustschin
     [not found]   ` <CAE0zQku6s7L=C87CjW6wTmorttnPbeXEgHg2eBx2TcV2hvBysw@mail.gmail.com>
2014-01-29  7:45     ` Anatolij Gustschin

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=201110181655.29507.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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