[PATCH] smbios: Try CONFIG_SYS_ options before using "Unknow" as a value
Bin Meng
bmeng.cn at gmail.com
Mon Jul 5 10:50:50 CEST 2021
On Mon, Jul 5, 2021 at 4:49 PM Ilias Apalodimas
<ilias.apalodimas at linaro.org> wrote:
>
> SMBIOS entries for manufacturer and board can't be empty, as the spec
> explicitly requires a value.
> Instead of passing "Unknown" and "Unknown product" for the manufacturer and
> product name if the .dts options are missing, try to use CONFIG_SYS_VENDOR
> and CONFIG_SYS_BOARD respectively. If those are not found either warn the
> user at runtime and use "Unknown" for both entries.
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> ---
> lib/smbios.c | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list