From c1621340c8144f38911420388b1bacf9e9043d59 Mon Sep 17 00:00:00 2001
From: Przemyslaw Marczak
Date: Wed, 12 Nov 2014 15:03:04 +0100
Subject: [PATCH] samsung: misc: set env ${platname} in set_board_info()
This change adds setting the environment ${platname},
as a platform name in the function set_board_info().
Change-Id: Iba16e917f9c88458e1af21892d84ded121aa12cf
Signed-off-by: Przemyslaw Marczak
---
board/samsung/common/misc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index 97946dd..f68180c 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -83,6 +83,9 @@ void set_board_info(void)
#ifdef CONFIG_BOARD_TYPES
#ifdef CONFIG_OF_MULTI
bdname = get_board_name();
+ platname = get_plat_name();
+
+ setenv("platname", platname);
#endif
setenv("boardname", bdname);
#endif
--
2.7.4