
In message 1274995116-8708-5-git-send-email-wd@denx.de you wrote:
Instead of adding explicit build rules for each and every board to the top level Makefile (which makes it grow and grow), we now provide a simple default rule and extend the "mkconfig" script to read board configurations from a plain text file (table), "boards.cfg".
For simple boards it is now sufficient to add a single line of text to the "boards.cfg" file, no changes to the top level Makefile are needed any more.
To make the table better readable, change the notation for unused fields from "NULL" into "-".
Signed-off-by: Wolfgang Denk wd@denx.de Cc: Peter Tyser ptyser@xes-inc.com Cc: Mike Frysinger vapier@gentoo.org
Note: I had to disable the simple and very convenient rule %: %_config $(MAKE) in the top level Makefile, because it caused each invocation of "make" to fail with an error message:
make: *** No rule to make target `Makefile_config'. Stop.
Fixes welcome!
We're still looking for a clean solution for this problem...
Makefile | 823 ++---------------------------------------------------------- boards.cfg | 356 ++++++++++++++++++++++++++ mkconfig | 72 ++++-- 3 files changed, 431 insertions(+), 820 deletions(-) create mode 100644 boards.cfg
Applied to "next" branch.
Best regards,
Wolfgang Denk