From: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Date: Wed, 15 May 2024 07:36:11 +0000 (+0200)
Subject: Makefile: refactor ubootrelease target
X-Git-Tag: v2025.01-rc5-pxa1908~398^2~85^2~1
X-Git-Url: http://git.dujemihanovic.xyz/img/static//%22brlog.php?a=commitdiff_plain;h=1bfce599dc68fac4285b0a4fbe247793fd82c156;p=u-boot.git

Makefile: refactor ubootrelease target

Instead of duplicating the contents of the filechk_uboot.release
variable, use it directly.

This is preparation for the next patch which will modify
filechk_uboot.release, and reflects what the linux kernel does
nowadays:

kernelrelease:
	@$(filechk_kernel.release)

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
---

diff --git a/Makefile b/Makefile
index 44deb339af..efaf24e58e 100644
--- a/Makefile
+++ b/Makefile
@@ -2426,7 +2426,7 @@ checkstack:
 	$(PERL) $(src)/scripts/checkstack.pl $(ARCH)
 
 ubootrelease:
-	@echo "$(UBOOTVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
+	@$(filechk_uboot.release)
 
 ubootversion:
 	@echo $(UBOOTVERSION)