add-debian-revision-to-u-boot-version
authorVagrant Cascadian <vagrant@debian.org>
Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +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 7c2067f35e937f1cea4246e030313542229f3f43..ff123a0503f21c0edc010dfa488dbc2710cde238 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