diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-05-22 09:21:54 +0000 |
---|---|---|
committer | Albert ARIBAUD (U-Boot) <uboot@lilith.(none)> | 2012-07-09 22:44:33 +0200 |
commit | 5e724ca2b65cea97a5945b163c765427a7ebf3d1 (patch) | |
tree | cf173d7b7d648d6a8ad3ed9424898d83667d32d6 /mkconfig | |
parent | f857fff6068fe36a327a0ff6d837412caaf2e07d (diff) | |
download | u-boot-5e724ca2b65cea97a5945b163c765427a7ebf3d1.tar.gz |
Add env vars describing U-Boot target board
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.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'mkconfig')
-rwxr-xr-x | mkconfig | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -161,6 +161,14 @@ for i in ${TARGETS} ; do echo "#define CONFIG_${i}" >>config.h ; done +echo "#define CONFIG_SYS_ARCH \"${arch}\"" >> config.h +echo "#define CONFIG_SYS_CPU \"${cpu}\"" >> config.h +echo "#define CONFIG_SYS_BOARD \"${board}\"" >> config.h + +[ "${vendor}" ] && echo "#define CONFIG_SYS_VENDOR \"${vendor}\"" >> config.h + +[ "${soc}" ] && echo "#define CONFIG_SYS_SOC \"${soc}\"" >> config.h + cat << EOF >> config.h #define CONFIG_BOARDDIR board/$BOARDDIR #include <config_cmd_defaults.h> |