[U-Boot] [PATCH 4/4 v2] Makefile/mkconfig: read simple board configurations from boards.cfg
Wolfgang Denk
wd at denx.de
Sun Jun 13 18:10:06 CEST 2010
In message <1274995116-8708-5-git-send-email-wd at 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 at denx.de>
> Cc: Peter Tyser <ptyser at xes-inc.com>
> Cc: Mike Frysinger <vapier at 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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Faith may be defined briefly as an illogical belief in the occurence
of the improbable. - H. L. Mencken
More information about the U-Boot
mailing list