[U-Boot] [PATCH 1/2] mkconfig: Make CONFIG_SYS_BOARD_NAME default to the configured target name

Wolfgang Denk wd at denx.de
Sun Nov 25 21:01:08 CET 2012


Dear Henrik Nordström,

In message <1353866129.28559.50.camel at home.hno.se> you wrote:
>
> > I don't see what the difference is between CONFIG_SYS_BOARD (which is
> > the board name) and CONFIG_SYS_BOARD_NAME ?
> 
> CONFIG_SYS_BOARD is the board config name, which may differ from the
> board name given to make.
> 
> CONFIG_SYS_BOARD_NAME is set to the name in boards.cfg.
> 
> To illustrate using existing boards in boards.cfg look at for example
> the spear boards.
> 
> spear300                     arm         arm926ejs   spear300            spear          spear       spear3xx_evb:spear300
> spear300_nand                arm         arm926ejs   spear300            spear          spear       spear3xx_evb:spear300,nand
> [...]
> spear320_usbtty_nand         arm         arm926ejs   spear320            spear          spear       spear3xx_evb:spear320,usbtty,nand
> 
> 
> CONFIG_SYS_BOARD is spear3xx_evb on all 16 of these as they are the same "board" with only different CONFIG_.. parameters set via boards.cfg.
> 
> CONFIG_SYS_BOARD_NAME is the first column, unique on each.

I think you should avoid doing that.  It's ugly, and I see no real
advantages for it.

> > In any case, documentation for CONFIG_SYS_BOARD_NAME is missing.
> 
> This should go in README?

Yes.

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
Microsoft Compatibility:
     your old Windows 3.11 application crash exactly as the new ones.


More information about the U-Boot mailing list