Skip to contentSkip to conversation

Add board_name to CONFIG_ENV_VARS_UBOOT_CONFIG

PATCH New Stephen Warren 3 participants 3 messages Oct 31, 2012 – Nov 4, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add board_name to CONFIG_ENV_VARS_UBOOT_CONFIG

From: Stephen Warren <[email protected]>

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.

---
 include/env_default.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/env_default.h +1 -0
index 375e5ca..a1db73a 100644
@@ -118,6 +118,7 @@ const uchar default_environment[] = {
 	"arch="		CONFIG_SYS_ARCH			"\0"
 	"cpu="		CONFIG_SYS_CPU			"\0"
 	"board="	CONFIG_SYS_BOARD		"\0"
+	"board_name="	CONFIG_SYS_BOARD		"\0"
 #ifdef CONFIG_SYS_VENDOR
 	"vendor="	CONFIG_SYS_VENDOR		"\0"
 #endif
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 Add board_name to CONFIG_ENV_VARS_UBOOT_CONFIG

Hi Stephen,

Quoted 11 lines · Stephen Warren

From: Stephen Warren <[email protected]>

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.

Quoted 2 lines

---

#2 lore raw

PATCH 1/1 Add board_name to CONFIG_ENV_VARS_UBOOT_CONFIG

Quoted 14 lines · Joe Hershberger

Hi Stephen,

Quoted 11 lines · Stephen Warren

From: Stephen Warren <[email protected]>

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.

Quoted 4 lines
Quoted 2 lines

---

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121104/fad1d389/attachment.pgp>