[PATCH v3 09/12] smbios: Add more options for the BIOS version string

Bin Meng bmeng.cn at gmail.com
Mon Feb 1 08:25:36 CET 2021


On Mon, Jan 25, 2021 at 1:51 AM Simon Glass <sjg at chromium.org> wrote:
>
> At present the version string is obtained from PLAIN_VERSION. Some boards
> may want to configure this using the device tree, since the build system
> can more easily insert things there after U-Boot itself is built. Add this
> option to the code.
>
> Also in some cases the version needs to be generated programmatically,
> such as when it is stored elsewhere in the ROM and must be read first.
> To handle this, keep a pointer around so that it can be updated later.
> This works by storing the last string in the context, since it is easier
> than passing out a little-used extra parameter.
>
> Provide a function to update the version string.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v3:
> - Add missing DECLARE_GLOBAL_DATA_PTR
>
> Changes in v2:
> - Correct documentation format
>
>  include/asm-generic/global_data.h |  6 ++++
>  include/smbios.h                  | 12 +++++++
>  lib/smbios.c                      | 58 +++++++++++++++++++++++++++++--
>  3 files changed, 73 insertions(+), 3 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list