[U-Boot-Users] [PATCH 3/6] TQM8xx: use the CFI flash driver on all TQM8xx boards

Wolfgang Denk wd at denx.de
Mon Aug 6 16:43:40 CEST 2007


In message <47F3F98010FF784EBEE6526EAAB078D1024F8673 at tq-mailsrv.tq-net.de> you wrote:
>
> Ups, sorry for that! We had a discussion about the TQM885D a year ago 
> (wow, time is running ...), there you suggested to switch all TQM8xx
> boards to CFI driver. Now preparing the TQM885D patches, I thought this
> is a nice opportunity to do that. Shortly bevor submitting the patch 

Agreed.

> I recognized, that other boards than the TQM8xx also use the code in 
> /boards/tqm8xx. So I changed their configuration too, without thinking
> about it ...
> 
> Now I thought a bit about it. But didn't find a solution to only switch 
> the TQM8xx boards to CFI and not the other boards using the code in
> /boards/tqm8xx.

Then at least you have to discuss  this  with  the  respective  board
maintainers.

> The problem is, that all of the above boards use the same Makefile
> /boards/tqm8xx/Makefile. There the board specific flash driver is 
> listed for compilation:

Maybe we can make this board dependent, if necessary...

> If I don't want this driver compiled for the TQM8xx boards (because I
> want to use the CFI driver), I had to remove it from the COBJS list. 

... or make it conditional.

> Is there a way to distinguish in the Makefile, for wich board the
> code ist compiled? Can the CONFIG_xxx definitions be used in the
> Makefile? IMHO not. Any ideas?

Hm.... don't know of an elegant way at first thinking....

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
"Everything should be made as simple as possible, but not simpler."
                                                    - Albert Einstein




More information about the U-Boot mailing list