keystone2: config: restructure handling of default env settings
authorMurali Karicheri <m-karicheri2@ti.com>
Tue, 4 Nov 2014 14:52:34 +0000 (16:52 +0200)
committerTom Rini <trini@ti.com>
Thu, 6 Nov 2014 16:04:39 +0000 (11:04 -0500)
commit349c26dd06c95f07973440199b1d885db23452cb
tree4bf7e6cb537f89c1ec88a4da25b820a481faa432
parent75d7c0b04c552a96de0e09ce5b892fa2e5592c5a
keystone2: config: restructure handling of default env settings

Currently to customize env for various ks2 boards, individual
variables such as NAME_FS etc are defined and included in the
common config.h to define CONFIG_EXTRA_ENV_SETTINGS. This
doesn't scale well if a variable is not applicable on a
specific board. Using this scheme, we have to define variables
with empty value and it's ugly. Instead, to allow board specific
customization of default env variable, define a common
CONFIG_EXTRA_ENV_KS2_SETTINGS for all common variables and define
board specific variables in individual board specific config.h
using CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS. Use the common and board
specific variables to define CONFIG_EXTRA_ENV_SETTINGS. This way
more variables can be added in future for individual boards
without affecting the other config.h files.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Reviewed-by: Tom Rini <trini@ti.com>
include/configs/k2e_evm.h
include/configs/k2hk_evm.h
include/configs/k2l_evm.h
include/configs/ks2_evm.h