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-Users] MAKEALL patch
Date: Mon, 6 Aug 2007 05:04:25 -0400	[thread overview]
Message-ID: <200708060504.26947.vapier@gentoo.org> (raw)
In-Reply-To: <20070805135130.2ACE3353DB4@atlas.denx.de>

On Sunday 05 August 2007, Wolfgang Denk wrote:
> In message <006f01c7d762$3976ead0$0500a8c0@monstrone> you wrote:
> > Corection MAKEALL script.
> >
> > Signed of by: Michal Simek <monstr@monstr.eu>
> >
> >
> > diff --git a/MAKEALL b/MAKEALL
> > index 127faa8..2b44244 100755
> > --- a/MAKEALL
> > +++ b/MAKEALL
> > @@ -348,7 +348,7 @@ build_target() {
> >   ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
> >
> >      | tee ${LOG_DIR}/$target.ERR
> >
> > - ${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \
> > + ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
> >
> >      | tee -a ${LOG_DIR}/$target.MAKELOG
> >
> >  }
>
> What is the specific bug you intend to fix here?  Using  ppc_8xx-size
> in  case  CROSS_COMPILE is not set is not worse than using the native
> "size" command, it seems. Actually, given the fact that the  majority
> supported of boards are PowerPC, it is right in most cases.
>
> So why do you think it should be changed?

ive posted this patch a few times but never gotten a response ...

this code is wrong because ppc_8xx-size rarely exists for people who are not 
doing ppc development while size almost always exists.

so while the toplevel Makefile will setup a default CROSS prefix based on the 
board config, the MAKEALL script does not have access to that information, so 
for everyone who lacks ppc_8xx-size, using the MAKEALL script yields annoying 
broken output by default.

consider my typical use case:
./MAKEALL blackfin
i do not have CROSS_COMPILE set in my env and this is OK because the top level 
Makefile sets it by default to bfin-uclinux-.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070806/b37b08c4/attachment.pgp 

  parent reply	other threads:[~2007-08-06  9:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-05 13:12 [U-Boot-Users] MAKEALL patch Michal Simek
2007-08-05 13:51 ` Wolfgang Denk
2007-08-05 14:50   ` Michal Simek
2007-08-05 19:54     ` Wolfgang Denk
2007-08-06  9:04   ` Mike Frysinger [this message]
2007-08-06 17:00     ` Michal Simek

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