board: gateworks: venice: do not overwrite serial#

Do not overwrite existing serial# env to avoid:
 ## Error: Can't overwrite "serial#"
 ## Error inserting "serial#" variable, errno=1

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
Tim Harvey 2021-08-18 15:24:28 -07:00 committed by Stefano Babic
parent 9e4b38a12a
commit 45e82c379c

View File

@ -114,7 +114,8 @@ int board_late_init(void)
led_default_state();
/* Set board serial/model */
env_set_ulong("serial#", gsc_get_serial());
if (!env_get("serial#"))
env_set_ulong("serial#", gsc_get_serial());
env_set("model", gsc_get_model());
/* Set fdt_file vars */