add-debian-revision-to-u-boot-version
authorVagrant Cascadian <vagrant@debian.org>
Mon, 5 Oct 2020 19:13:28 +0000 (20:13 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Mon, 5 Oct 2020 19:13:28 +0000 (20:13 +0100)
Add the debian revision to the U-boot version, which is displayed at
boot and can be helpful to determine which specific version is used.

Gbp-Pq: Name add-debian-revision-to-u-boot-version

Makefile

index d4736bb50196dabbb06132008af4beecc164966e..05d6ae469248fefa956aa80a53add69a01bc4dcd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -447,7 +447,7 @@ KBUILD_AFLAGS       += $(call cc-option,-fno-PIE)
 
 # Read UBOOTRELEASE from include/config/uboot.release (if it exists)
 UBOOTRELEASE = $(shell cat include/config/uboot.release 2> /dev/null)
-UBOOTVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
+UBOOTVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)$(DEBIAN_REVISION)
 
 export VERSION PATCHLEVEL SUBLEVEL UBOOTRELEASE UBOOTVERSION
 export ARCH CPU BOARD VENDOR SOC CPUDIR BOARDDIR