All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/7] Adding uC5272 dimm module support
Date: Tue, 04 May 2010 23:37:31 +0200	[thread overview]
Message-ID: <20100504213731.49324B076D3@gemini.denx.de> (raw)
In-Reply-To: <op.va4lblrdqigx4y@cyprus.local>

Dear "David Wu",

In message <op.va4lblrdqigx4y@cyprus.local> you wrote:
> 
> > We will not accept such a mess of scriting in the top level Makefile.
> It was/is a mess already. I just followed the exact top level Makefile.

Yes, there is a lot of such mess already around, but we have learned
our lessen and will not add any more of it.

> If it is not acceptable then I'd like to know if it is OK to
>   -- make one  separate header file in include/configs for each board
>   -- and one config.mk per board
> -- or other methods -- advise please

Use "@$(MKCONFIG) -t" like other boards do.

> > Also, I don't understand why adding DIMM module support would result
> > in a new config.mk file and a new linker script being added?
> TEXT_BASE is changed due to changes in the memory map for different DIMM  
> modules with different size of SDRAM and FLASH.

This is no reason to add another file - just adjust the parameters as
needed.

> > The additions to the board config file are an unacceptable mess, too.
> You mean you cannot understand the ifdefs so you think it is a mess? But I  

Indeed. And I guess everybody else who is trying to figure out what
the result for a specific configuration would be will have the same
problems.

> feel it is so neat and it supports many different configurations for  
> uCdimm 5272 modules.
> I also can create many of these files with a few lines differences by  
> each. How about this?

NAK. Please factor out common parts, eventually even into a separate
header file like some boards / board families / vendors do. Then
reduce the remaining #ifdef'fery to the needed minimum. 

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
They say, well, meybe it _is_ smelly, maybe it _is_ overcrowded, may-
be it _is_ a bit like Hell would be if they shut the  fires  off  and
stabled  a  herd  of  incontinent cows there for a year, but you must
admit that it is full of sheer, vibrant, dynamic _life_.
                                 - Terry Pratchett, _Moving Pictures_

      reply	other threads:[~2010-05-04 21:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-08  0:00 [U-Boot] [PATCH 4/7] Adding uC5272 dimm module support David Wu
2010-04-09 22:54 ` Wolfgang Denk
2010-04-14  0:07   ` David Wu
2010-05-04 21:37     ` Wolfgang Denk [this message]

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=20100504213731.49324B076D3@gemini.denx.de \
    --to=wd@denx.de \
    --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.