[U-Boot] [PATCH] Config: Add "board options" column to boards.cfg

Mike Frysinger vapier at gentoo.org
Tue Sep 21 01:36:25 CEST 2010


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 (<configs/whole-board-configuration-name.h> aka. the
> value in column one). I implemented a logic which checks if such file
> exists and if it does not, it includes<configs/board-name.h> 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 


More information about the U-Boot mailing list