[U-Boot-Users] Simple definition of a new board

Is it OK/possible to add a new board, by just doing a new "<board>.h" file and a modification of the Makefile?
An example of use would be to have a board with different memory types and each <board>.h would be used to tell where the U-boot environment variables are.
The AT91SAM9260EK has both dataflash and NAND flash and some would like to put the environment in NAND flash and others in the dataflash.
Best Regards Ulf Samuelsson

In message 45A2C0AD.2030505@atmel.com you wrote:
Is it OK/possible to add a new board, by just doing a new "<board>.h" file and a modification of the Makefile?
Yes.
An example of use would be to have a board with different memory types and each <board>.h would be used to tell where the U-boot environment variables are.
You might even use just one board.h file and different make targets which provide an additional #define that you can evaluate.
Just don't add to much of "scripting" to the Makefile; I am still agry with myself that I agreed to such a mess like the TQM82xx_?? configurations.
Best regards,
Wolfgang Denk
participants (2)
-
Ulf Samuelsson
-
Wolfgang Denk