[U-Boot] [PATCH v2 1/5] Build: Add "board options" column to boards.cfg

Wolfgang Denk
2010-10-18T20:00:51Z

Dear Marek,

In message <1287273462-14872-2-git-send-email-wd@denx.de> I wrote:
> From: Marek Vasut <marek.vasut@gmail.com>
>
> There are some boards where it's currently not possible to detect all
> board information at runtime, therefore a new column was added to
> boards.cfg .
>
> This column can contain multiple options: a board configuration name,
> optionally followed by a colon (':') and a list of options, which are
> separated by comma (',').
>
> In case of simple options like '256M_U_BOOT', these expand to
> "#define CONFIG_MK_256M_U_BOOT 1" in config.h . In case of
> assignments like 'RAM=8192', these expand to "#define CONFIG_MK_RAM
> 8192" in config.h .
>
> Example:
>
> FOO:HAS_BAR,BAZ=64
>
> means:
> - the name of the board config file is include/configs/FOO.h
> - the generated file include/config.h will contain these
> lines:
>
> #define CONFIG_HAS_BAR 1
> #define CONFIG_BAZ 64
>
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
>
> [wd at denx.de: edited commit message; added code to deal with an
> optional board configuration name]
>
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> ---
> boards.cfg | 4 ++--
> mkconfig | 34 +++++++++++++++++++++++++++++-----
> 2 files changed, 31 insertions(+), 7 deletions(-)

Applied, thanks.

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
The perversity of nature is nowhere better demonstrated by the fact
that, when exposed to the same atmosphere, bread becomes hard while
crackers become soft.