
Dear Fabio Estevam,
In message CAOMZO5D2N1Zvo5ogEAM1_EwT-0KKamzGvRfPEekh5zymQkLrhw@mail.gmail.com you wrote:
Me too. I also think the ifdefs may easily cause confusion.
So you suggest we remove all conditional code and use duplication everywhere? You must be joking...
For example: if someone sends a patch for Riotboard, he/she may break Marsboard without knowing.
Usually the developer has only one board and is not able to test on both boards.
Yes, of course. If someone touches common code he make breake things for boards he did not test. That has always been the case, everywehre. But that has never been a reason to duplicate code, or to accept code duplication. On contrary, we permanently struggle to reduce such duplication.
Otherwise we would have to strictly split ARM and PowerPC code, and all other architectures. We would need code copies for each SoC. Actually each board would need his own version of the whole U-Boot code. Sorry, but this is just bizarre...
Best regards,
Wolfgang Denk