Add board_name to CONFIG_ENV_VARS_UBOOT_CONFIG
authorStephen Warren <swarren@nvidia.com>
Wed, 31 Oct 2012 11:17:28 +0000 (11:17 +0000)
committerTom Rini <trini@ti.com>
Fri, 2 Nov 2012 22:13:30 +0000 (15:13 -0700)
commit418b7f3aff3bf4c508b2a57ffc6dc7ca10f811aa
tree953f9bb27e905c22bdfc82f3d85ad05c7fd6f6d4
parent7e27f89fdfbe4acbaea2821073f90fa7e82b94ec
Add board_name to CONFIG_ENV_VARS_UBOOT_CONFIG

CONFIG_ENV_VARS_UBOOT_CONFIG creates environment variables indicating
which configuration U-Boot was built for. Some U-Boot binaries run on
multiple boards, and hence this information may not uniquley describe
the HW that U-Boot is actually running on. Another patch introduces
environment variable board_name to represent that. In order to avoid
scripts having to check $board_name, use it if set, and then fall back
to using $board, make CONFIG_ENV_VARS_UBOOT_CONFIG also set a default
value for board_name, so that variable is always available.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
include/env_default.h