From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 18/42] Blackfin: make sure autoconf.mk is generated early enough
Date: Wed, 11 Feb 2009 16:54:15 -0500 [thread overview]
Message-ID: <200902111654.20726.vapier@gentoo.org> (raw)
In-Reply-To: <20090211213637.779F6832E893@gemini.denx.de>
On Wednesday 11 February 2009 16:36:37 Wolfgang Denk wrote:
> Dear Mike Frysinger,
>
> In message <200902101449.24108.vapier@gentoo.org> you wrote:
> > > > > > + @$(MAKE) -s -B $(obj)include/autoconf.mk
> > > > > > + @$(MAKE) -s -B $(obj)include/autoconf.mk
> > > > >
> > > > > Do you really mean to do this twice?
> > > >
> > > > unfortunately, yes. since some settings in the board config are
> > > > turned into compiler flags and those compiler flags can in turn
> > > > affect the board config, we need to do it twice. first is to make
> > > > sure the proper cpu flags are propagated into the toplevel build env
> > > > while the second is to make sure the autoconf.mk fully reflects the
> > > > board config.
> > >
> > > Sounds like a design problem to me.
> >
> > not really. the point is to avoid duplication and considering the method
> > to attain that, sounds pretty good to me.
>
> Well, no othe rarchitecture seems to need that, and it looks very
> strange. I guess 4 out of 5 persons who will see this are tempted to
> "clean this up".
that's why i said i would add comments. they're in there now and anyone
touching code that doesnt belong to them while ignoring the comments shouldnt
be doing clean up work in the first place.
> > > That would be the minimum, but given the fact that the top level
> > > Makefile already includes rules to build autoconf.mk I really wonder
> > > if we must do this so often, and if so, then why this is only the
> > > case for blackfin.
> >
> > the top level Makefile includes rules to build it, but it doesnt
> > re-source it once it's been generated. so anything in the top level
> > cannot use things from autoconf.mk (like $(arch)_config.mk).
>
> To me it seems as if you were rebuilding it twice without re-sourcing
> it inbetween, too.
>
> And you fail to explain why BF needs this, while all other
> architectures don't.
i explained it already when Ben asked. the processor variant is selected in
the board config and the board config (and shared settings) can change based
on that selection. and the top level build flags use that processor
selection. first one is to make sure the cpu settings make it from the board
config into the environment while the second is to make sure the board config
has been fully processed by the proper cpu selection.
also, other people dont seem to have a problem sprinkling duplication over the
place until things work. i do.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090211/ecdcfc5d/attachment.pgp
next prev parent reply other threads:[~2009-02-11 21:54 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 6:20 [U-Boot] [PATCH 00/42] Updates cookin for Blackfin for post 2009.03 Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 01/42] Blackfin: update lockbox api according to latest documentation Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 02/42] Blackfin: safely flush data caches when in writeback mode Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 03/42] Blackfin: add cache_dump commands Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 04/42] Blackfin: print out Flash: before checking it Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 05/42] Blackfin: drop now-unused CONFIG_SYS_BFIN_CMD_XXX Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 06/42] Blackfin: unify duplicate CPU port definitions Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 07/42] Blackfin: drop SPORT_TX read helper macros Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 08/42] Blackfin: fix SIC_RVECT definition: it is 16bits, not 32bits Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 09/42] Blackfin: simplify symbol_lookup() a bit Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 10/42] Blackfin: kill off LDR jump block Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 11/42] Blackfin: handle reboot anomaly 432 Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 12/42] Blackfin: setup a sane default EBIU_SDBCTL for SDRAM controllers Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 13/42] Blackfin: do not program voltage regulator on parts that do not have one Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 14/42] Blackfin: put memory into self-refresh before/after programming clocks Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 15/42] Blackfin: unify common ADI board settings Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 16/42] Blackfin: bf533-stamp: rewrite startup LED notifications Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 17/42] Blackfin: bf533-stamp: bump up default clocks Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 18/42] Blackfin: make sure autoconf.mk is generated early enough Mike Frysinger
2009-02-10 17:54 ` Ben Warren
2009-02-10 18:57 ` Mike Frysinger
2009-02-10 19:23 ` Ben Warren
2009-02-10 19:42 ` Wolfgang Denk
2009-02-10 19:49 ` Mike Frysinger
2009-02-11 21:36 ` Wolfgang Denk
2009-02-11 21:54 ` Mike Frysinger [this message]
2009-02-11 22:16 ` Wolfgang Denk
2009-02-11 22:57 ` Mike Frysinger
2009-02-12 0:16 ` Wolfgang Denk
2009-02-10 6:20 ` [U-Boot] [PATCH 19/42] Blackfin: new spibootldr command Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 20/42] Blackfin: add clkin_hz= to default kernel command line for ADI boards Mike Frysinger
2009-02-10 6:20 ` [U-Boot] [PATCH 21/42] Blackfin: bf537-stamp: bump default SCLK up to 125MHz Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 22/42] Blackfin: bf537-stamp: increase monitor size Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 23/42] Blackfin: add hack for crappy m25p80 Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 24/42] Blackfin: add support for SST SPI flashes Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 25/42] Blackfin: overhaul SPI flash handling to speed things up Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 26/42] Blackfin: add support for S25FL128 parts Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 27/42] Blackfin: bf548-ezkit: new board port Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 28/42] Blackfin: bf527-ezkit: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 29/42] Blackfin: bf538f-ezkit: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 30/42] Blackfin: bf526-ezbrd: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 31/42] Blackfin: bf518f-ezbrd: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 32/42] Blackfin: cm-bf533: " Mike Frysinger
2009-02-11 21:39 ` Wolfgang Denk
2009-02-10 6:21 ` [U-Boot] [PATCH 33/42] Blackfin: cm-bf537e: " Mike Frysinger
2009-02-11 21:43 ` Wolfgang Denk
2009-02-11 21:48 ` Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 34/42] Blackfin: cm-bf561: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 35/42] Blackfin: tcm-bf537: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 36/42] Blackfin: cm-bf548: " Mike Frysinger
2009-02-10 17:34 ` Scott Wood
2009-02-10 17:51 ` Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 37/42] Blackfin: cm-bf527: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 38/42] Blackfin: bf537-pnav: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 39/42] Blackfin: bf537-minotaur: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 40/42] Blackfin: bf537-srv1: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 41/42] Blackfin: blackstamp: " Mike Frysinger
2009-02-10 6:21 ` [U-Boot] [PATCH 42/42] Blackfin: ibf-dsp561: " Mike Frysinger
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=200902111654.20726.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 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.