add-debian-revision-to-u-boot-version
authorVagrant Cascadian <vagrant@debian.org>
Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)
committerVagrant Cascadian <vagrant@debian.org>
Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)
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 1766f5ab18acec3310a7b6d3732e2ef306fc0469..703911cad1fdc0fd65740c1cec26be4c2a225746 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -424,7 +424,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