openwrt/include
Josef Schlehofer d6aa9d9e07 u-boot.mk: add LOCALVERSION (explicitly specify OpenWrt build)
For debugging purposes, we need to know if users are using modified
U-boot versions or not. Currently, the U-boot version is somehow
stripped. This is a little bit problematic when there are
backported/wip/to-upstream patches.

To make it more confusing, there was (before this commit) two U-boot
versioning. U-boot compiled by OpenWrt build bots are missing ``Build:``
This is also the case when the U-boot is compiled locally.

Example:
```
U-Boot SPL 2022.01 (Jan 27 2022 - 00:24:34 +0000)
U-Boot 2022.01 (Jan 27 2022 - 00:24:34 +0000)
```

On the other hand, if you run full build, you can at least see, where it
was compiled. Notice added ``Build:``.

Example:
```
U-Boot 2022.01 (Jan 27 2022 - 00:24:34 +0000), Build: jenkins-turris-os-packages-burstlab-omnia-216
```

In both cases, it is not clear to U-boot developers if it is an unmodified
build. This is also caused that there is a missing ``.git`` file from
U-boot folder, and so there is no history. It leads to that it can not
contain suffix ``-dirty`` (uncommitted modifications) or even something
else like number of commits, etc. [1]

When U-boot is compiled as it should be, the version should look like
this: ``U-Boot 2022.04-rc1-01173-g278195ea1f (Feb 11 2022 - 14:46:50 +0100)``
The date is not changed daily when there are new OpenWrt builds.

This commit adds OpenWrt specific version, which could be verified by
using strings.

```
$ strings bin/targets/mvebu/cortexa9/u-boot-omnia/u-boot-spl.kwb | grep -E "OpenWrt*"
U-Boot SPL 2022.01-OpenWrt-r18942+54-cbfce92367 (Feb 21 2022 - 13:17:34 +0000)
arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r18942+54-cbfce92367) 11.2.0
2022.01-OpenWrt-r18942+54-cbfce92367
U-Boot 2022.01-OpenWrt-r18942+54-cbfce92367 (Feb 21 2022 - 13:17:34 +0000)
```

[1] https://u-boot.readthedocs.io/en/latest/develop/version.html

Reported-by: Pali Rohár <pali@kernel.org>
Suggested-by: Karel Kočí <karel.koci@nic.cz>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-02-28 23:54:52 +01:00
..
site
autotools.mk gettext: remove package 2021-11-20 21:08:25 +01:00
bpf.mk treewide: drop use of which 2022-01-17 09:14:26 +01:00
cmake.mk treewide: drop use of which 2022-01-17 09:14:26 +01:00
debug.mk
depends.mk
device_table.txt
download.mk download: improve handling of invalid local files 2021-11-01 20:18:55 +01:00
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk build: add HOST_CXXFLAGS for host build 2022-01-16 22:13:46 +01:00
image-commands.mk image-commands.mk: Use ERROR_MESSAGE for imagesize fails 2022-02-28 23:52:13 +01:00
image.mk image: define DEVICE_DTS_DELIMITER as per-device variable 2021-10-24 11:19:58 +02:00
kernel-5.4 kernel: bump 5.4 to 5.4.175 2022-02-01 21:46:07 +01:00
kernel-5.10 kernel: bump 5.10 to 5.10.100 2022-02-11 23:17:40 +01:00
kernel-build.mk generic: Kconfig: exit on unset symbol 2021-08-10 13:14:52 +02:00
kernel-defaults.mk image: fix CONFIG_EXTERNAL_CPIO handling 2021-11-28 20:15:10 +00:00
kernel-version.mk kernel: split kernel version to dedicated files 2022-01-13 23:46:39 +00:00
kernel.mk
logo.png
logo.svg
meson.mk include/meson: fix host build directory 2022-02-07 00:03:27 +01:00
netfilter.mk netfilter: add kmod-nft-tproxy 2022-02-28 10:24:17 +08:00
nls.mk gettext: remove package 2021-11-20 21:08:25 +01:00
package-bin.mk build: allow package to be built for all variants 2021-11-15 00:38:46 +01:00
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk tools: build bash on macOS and use it for ipkg-build 2022-01-27 13:38:48 +01:00
package-seccomp.mk
package.mk build: fix host package unpack if git-src is used 2021-11-04 16:43:32 +01:00
prereq-build.mk build: fix ldconfig executable error in python 2021-11-02 18:18:00 +01:00
prereq.mk treewide: drop use of which 2022-01-17 09:14:26 +01:00
quilt.mk
rootfs.mk
scan.awk
scan.mk
shell.sh
subdir.mk build: allow package to be built for all variants 2021-11-15 00:38:46 +01:00
target.mk build: switch to firewall4 by default 2022-01-19 09:20:22 +01:00
toolchain-build.mk
toplevel.mk build: toplevel.mk: fix missing kconfig dependency tracking 2022-02-22 16:37:23 +01:00
trusted-firmware-a.mk
u-boot.mk u-boot.mk: add LOCALVERSION (explicitly specify OpenWrt build) 2022-02-28 23:54:52 +01:00
uclibc++.mk uclibc++: remove 2021-10-24 18:20:50 +02:00
unpack.mk
verbose.mk verbose.mk: print ERROR messages in non-verbose 2022-02-28 23:52:13 +01:00
version.mk