
In message 47F3F98010FF784EBEE6526EAAB078D1024F8673@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