From: Wolfgang Denk Date: Sun, 13 Jun 2010 18:10:06 +0200 Subject: [U-Boot] [PATCH 4/4 v2] Makefile/mkconfig: read simple board configurations from boards.cfg In-Reply-To: <1274995116-8708-5-git-send-email-wd@denx.de> References: <1273970133-10228-1-git-send-email-wd@denx.de> <1274995116-8708-5-git-send-email-wd@denx.de> Message-ID: <20100613161006.517EB153659@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Peter Tyser > Cc: Mike Frysinger > --- > 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