[U-Boot] [PATCH V2 1/2] Add env vars describing U-Boot target board

Wolfgang Denk wd at denx.de
Tue May 22 10:23:56 CEST 2012


Dear Stephen Warren,

In message <1337643054-17290-1-git-send-email-swarren at wwwdotorg.org> you wrote:
> From: Stephen Warren <swarren at nvidia.com>
> 
> This can be useful for generic scripts. For example, rather than hard-
> coding a script to ext2load tegra-harmony.dtb, it could load
> ${soc}-${board}.dtb and hence not need adjustments to run on multiple
> boards.
...

> +echo "#define ARCH   \"${arch}\""  >> config.h
> +echo "#define CPU    \"${cpu}\""   >> config.h
> +echo "#define BOARD  \"${board}\"" >> config.h

Sorry, but names like ARCH and CPU are _way_ too intrusive and likely
to clash.  Please use something like CONFIG_SYS_ARCH_NAME etc.
instead.

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 speed of time is one second per second.


More information about the U-Boot mailing list