From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Mon, 20 Sep 2010 19:36:25 -0400 Subject: [U-Boot] [PATCH] Config: Add "board options" column to boards.cfg In-Reply-To: <1285025204-8463-1-git-send-email-marek.vasut@gmail.com> References: <1285025204-8463-1-git-send-email-marek.vasut@gmail.com> Message-ID: <201009201936.28660.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, September 20, 2010 19:26:44 Marek Vasut wrote: > There are some boards where it's not currently possible to detect all board > information at runtime, therefore I introduced a new column called > "options" to boards.cfg . > > This column can contain multiple options, separated by comma [,] . This > column is case sensitive. In case there's a simple options like > 256M_U_BOOT, it's plain expanded to "#define CONFIG_256M_U_BOOT" in > config.h . In case there's an assignment, like "ram=8192", it's expanded > to "#define CONFIG_RAM 8192" in config.h . There can also be multiple such > options, then each is expanded to separate "#define CONFIG_xyz" statement. > > Also, I had to add fallback logic, because each of the board variants has a > distinct name. This led to the mkconfig #including incorrect board > configuration file ( aka. the > value in column one). I implemented a logic which checks if such file > exists and if it does not, it includes aka. the > value in third column. why not use the existing -t option instead of introducing your own new "options" argument t mkconfig ? -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20100920/f0bcccb9/attachment.pgp