immortalwrt/include
Josef Schlehofer fbf0e558c3
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>
(cherry picked from commit d6aa9d9e07)
2022-06-21 09:14:53 +08:00
..
site Revert "build: use config.site generated by autoconf-lean, drop hardcoded sitefiles" 2021-03-02 22:02:38 +08:00
autotools.mk build: autotools: fix cache path 2022-04-04 17:15:30 +08:00
cmake.mk include/cmake.mk: add support for overriding the host install prefix 2022-05-21 16:55:40 +08:00
debug.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
depends.mk build: introduce $(MKHASH) 2021-05-13 22:49:42 +08:00
device_table.txt fix permission 2019-09-30 13:52:50 +08:00
download.mk download: improve handling of invalid local files 2021-11-16 13:12:54 +08:00
feeds.mk build: ensure that dash isn't prepended twice to abi version suffix 2021-06-15 23:13:36 +08:00
hardened-ld-pie.specs fix permission 2019-09-30 13:52:50 +08:00
hardening.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
host-build.mk download: improve handling of invalid local files 2021-11-16 13:12:54 +08:00
image-commands.mk build: move elecom-wrc-gs-factory to image-commands.mk 2022-06-14 02:32:48 +08:00
image.mk Merge Mainline 2022-05-17 17:06:47 +08:00
kernel-5.4 kernel: bump 5.4 to 5.4.194 2022-05-29 19:41:02 +08:00
kernel-5.10 kernel: bump 5.10 to 5.10.120 2022-06-14 02:31:46 +08:00
kernel-build.mk generic: Kconfig: exit on unset symbol 2021-08-11 12:02:34 +08:00
kernel-defaults.mk image: fix CONFIG_EXTERNAL_CPIO handling 2021-12-15 23:55:27 +08:00
kernel-version.mk kernel: split kernel version to dedicated files 2022-05-29 18:20:54 +08:00
kernel.mk build: use -nostdinc and -isystem in NOSTDINC_FLAGS for out-of-tree kernel modules 2021-03-18 23:33:25 +08:00
meson.mk tools/meson: update to 0.61.4 2022-04-14 01:02:29 +08:00
netfilter.mk netfilter.mk: add conntrack support to nft bridge 2022-01-29 19:00:21 +08:00
nls.mk gettext: remove package 2022-04-02 23:20:45 +08:00
openssl-engine.mk openssl: move engine.mk to INCLUDE_DIR 2022-03-25 10:35:20 +08:00
package-bin.mk build: allow package to be built for all variants 2021-11-16 13:18:49 +08:00
package-defaults.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
package-dumpinfo.mk build: drop ABI version from metadata 2021-02-15 12:17:04 +08:00
package-ipkg.mk build: allow package to be built for all variants 2021-11-16 13:18:49 +08:00
package-seccomp.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
package.mk download: improve handling of invalid local files 2021-11-16 13:12:54 +08:00
prereq-build.mk build: fix ldconfig executable error in python 2021-12-09 23:53:05 +08:00
prereq.mk Revert "build: replace which with Bash command built-in" 2021-03-04 12:10:58 +08:00
quilt.mk quilt.mk: fix typo in the Host section 2022-03-21 23:28:09 +08:00
rootfs.mk build: reduce cleanup binary calls in rootfs.mk 2020-12-08 11:31:45 +08:00
scan.awk fix permisson 2019-08-16 15:09:42 +08:00
scan.mk build: introduce $(MKHASH) 2021-05-13 22:49:42 +08:00
shell.sh add luci-app-haproxy & luci-app-udpspeederv2 2019-05-25 21:05:51 +08:00
subdir.mk build: allow package to be built for all variants 2021-11-16 13:18:49 +08:00
target.mk build: add e5500 CPU_TYPE 2021-12-24 11:26:30 +08:00
toolchain-build.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
toplevel.mk build: toplevel.mk: fix missing kconfig dependency tracking 2022-02-24 11:37:07 +08:00
trusted-firmware-a.mk trusted-firmware-a.mk: make sure include directory exists 2022-05-10 14:29:17 +08:00
u-boot.mk u-boot.mk: add LOCALVERSION (explicitly specify OpenWrt build) 2022-06-21 09:14:53 +08:00
uclibc++.mk uclibc++: remove 2021-10-26 23:50:42 +08:00
unpack.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
verbose.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
version.mk Merge Mainline 2022-04-25 08:01:43 +08:00