diff options
author | Simon Glass | 2021-02-04 21:17:13 -0700 |
---|---|---|
committer | Bin Meng | 2021-02-06 19:18:41 +0800 |
commit | 68f6a90ec27c46f804f7ee5a2e736fb2c24f71de (patch) | |
tree | 260b2bb5be30dc130ec20313d73ffd8107246f71 /doc | |
parent | 9b95f3f7ffb77fd53b2fad7197de2b379f7fac3e (diff) |
Makefile: Provide numeric versions
For SMBIOS we want to store the numeric version numbers in the tables. It
does not make sense to parse the strings. Instead, add new #defines with
the version and patchlevel.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/develop/version.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/develop/version.rst b/doc/develop/version.rst index 6da31a4a1e7..a7797db41bb 100644 --- a/doc/develop/version.rst +++ b/doc/develop/version.rst @@ -69,6 +69,14 @@ The following are available: U-Boot 2020.10 (Jan 06 2021 - 08:50:36 -0700) U-Boot 2021.01-rc5-00248-g60dd854f3ba-dirty (Jan 06 2021 - 08:50:36 -0700) for spring + U_BOOT_VERSION_NUM (integer #define) + Release year, e.g. 2021 for release 2021.01. Note + this is an integer, not a string. + + U_BOOT_VERSION_NUM_PATCH (integer #define) + Patch number, e.g. 1 for release 2020.01. Note + this is an integer, not a string. + Build date/time is also included. See the generated file include/generated/timestamp_autogenerated.h for the available fields. For example:: |