[U-Boot-Users] Adding support for a 'similar to existing' board

Wolfgang,
I wish to add support for another TI OMAP1610 board which is code-wise very similar to the OMAP1610 Innovator. Would you please suggest what is better - creating another directory structure for that board (which is probably technically correct), or adding changes to the OMAP1610 Innovator's files with #ifdef's? The changes in code would be 10-15 lines at most.
Thanks, Nishant

In message 536A1C579C92D71193CC0008C791B02E02DE106B@dlee08.itg.ti.com you wrote:
I wish to add support for another TI OMAP1610 board which is code-wise very similar to the OMAP1610 Innovator. Would you please suggest what is better
- creating another directory structure for that board (which is probably
technically correct), or adding changes to the OMAP1610 Innovator's files with #ifdef's? The changes in code would be 10-15 lines at most.
You probably want to have your own board config file in include/configs/; if the changes in the board specific directory are really that small some #ifdef's are OK.
Best regards,
Wolfgang Denk
participants (2)
-
Kamat, Nishant
-
Wolfgang Denk