smbios: Provide serial number
authorAlexander Graf <agraf@suse.de>
Thu, 18 Aug 2016 23:23:31 +0000 (01:23 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 19 Oct 2016 07:01:53 +0000 (09:01 +0200)
commit6fb580d7b41069461093296a0f1059cf294a44dd
treea1a77ecabfe649db42199dadfad2c03d94dcfe89
parentaba5e9194b98988162e5bd026dbcb6627a53efe5
smbios: Provide serial number

If the system has a valid "serial#" environment variable set (which boards that
can find it out programatically set automatically), use that as input for the
serial number and UUID fields in the SMBIOS tables.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/smbios.c