diff options
author | Pali Rohár <pali@kernel.org> | 2021-08-02 15:18:37 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-17 12:10:44 -0400 |
commit | bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a (patch) | |
tree | e297486b0b529f23ab8cac55461edb33be455b73 /doc | |
parent | fd004950804a60ebcba8dcc0cc850d793c3aa1ea (diff) | |
download | u-boot-bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a.zip u-boot-bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a.tar.gz u-boot-bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a.tar.bz2 |
version: Remove global macro U_BOOT_VERSION_STRING from version.h
Version string is available in global variable char version_string[].
Macro U_BOOT_VERSION_STRING is not used by any other file, so remove it
completely from version.h. Other files were already converted to use
variable version_string[].
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/develop/version.rst | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/doc/develop/version.rst b/doc/develop/version.rst index 066901b..8f3231b 100644 --- a/doc/develop/version.rst +++ b/doc/develop/version.rst @@ -60,15 +60,6 @@ The following are available: This is used as part of the banner string when U-Boot starts. - U_BOOT_VERSION_STRING (string #define) - U_BOOT_VERSION followed by build-time information - and CONFIG_IDENT_STRING. - - Examples:: - - 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. @@ -77,6 +68,18 @@ The following are available: Patch number, e.g. 1 for release 2020.01. Note this is an integer, not a string. +Human readable U-Boot version string is available in header file +include/version_string.h in following variable: + + version_string (const char[]) + U_BOOT_VERSION followed by build-time information + and CONFIG_IDENT_STRING. + + Examples:: + + 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 + Build date/time is also included. See the generated file include/generated/timestamp_autogenerated.h for the available fields. For example:: |