
In message 45E68A01.3060607@aotek.es you wrote:
I know that slightly modified duplicate code is common in u-boot, so this is not an critique on your work, but I'd really like to move away from this mode of operation. Duplicating the original file and modifying it is certainly the easiest way to add support for a new
And It makes the code more readable. It's the pro.
No, it doesn't make anything more redable. Distributing the code over too many polaces just pollutes the source tree.
10 times and a bug is found in it at a later date; the bug fix needs to be applied to 10 files, not one.
Yes, It's the con. But, how many times does it happen?.
All too many times.
Ummm, lib_arm/imx?. I think this mixes up concepts. Why not to decouple the arm cores and the SoC code?. For example: cpu/arm/cores/arm926ejs cpu/arm/soc/imx
No, but eventually cpu/arm/imx_common plus cpu/arm926ejs
Best regards,
Wolfgang Denk