[PATCH 1/2] Makefile: refactor ubootrelease target

Rasmus Villemoes rasmus.villemoes at prevas.dk
Wed May 15 09:36:11 CEST 2024


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 at prevas.dk>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 44deb339af1..efaf24e58e7 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)
-- 
2.40.1.1.g1c60b9335d



More information about the U-Boot mailing list