mbox series

[00/10] smbios: Enhancements for more flexibility

Message ID 20210107042202.2600568-1-sjg@chromium.org
Headers show
Series smbios: Enhancements for more flexibility | expand

Message

Simon Glass Jan. 7, 2021, 4:21 a.m. UTC
This series includes various patches to allow more flexibility as to where
the data for SMBIOS tables comes from:

- introduces some standard sysinfo options as a source, e.g. to read
   strapping pins to determine the board revision
- allows the U-Boot version number to be included
- allows the version number to be provided programmatically, e.g. to
   support the build system adding information after U-Boot is built

Documentation is added for how to obtain version information.

The code is also refactored a little to make it easier to maintain.


Simon Glass (10):
  README: Add doumentation for version information
  Makefile: Provide numeric versions
  smbios: Move smbios_write_type to the C file
  smbios: Use char consistently for the eos member
  smbios: Set BIOS release version
  smbios: Use a struct to keep track of context
  smbios: Drop the eos parameter
  smbios: Track the end of the string table
  smbios: Add more options for the BIOS version string
  smbios: Allow a few values to come from sysinfo

 Makefile                          |   4 +
 README                            |  92 ++++++++++++
 include/asm-generic/global_data.h |   3 +
 include/smbios.h                  |  26 ++--
 include/sysinfo.h                 |  11 ++
 lib/smbios.c                      | 240 ++++++++++++++++++++++--------
 6 files changed, 303 insertions(+), 73 deletions(-)