add-debian-revision-to-u-boot-version
authorVagrant Cascadian <vagrant@debian.org>
Sun, 23 May 2021 04:32:45 +0000 (05:32 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Sun, 23 May 2021 04:32:45 +0000 (05:32 +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 b4f1cbcf9bd9ef20e3262723bd59a75b9440d1bc..fc94ab35c3258194b9200dd8b85d4f5413fcaabd 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