All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/setlocalversion: Reinstate .scmversion support
@ 2025-03-02 18:30 Marek Vasut
  2025-03-04  9:24 ` Rasmus Villemoes
  2025-05-29 17:55 ` Tom Rini
  0 siblings, 2 replies; 8+ messages in thread
From: Marek Vasut @ 2025-03-02 18:30 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Rasmus Villemoes, Tom Rini

The .scmversion is used by oe-core to append U-Boot version string.

LOCALVERSION is not fully compatible replacement as it adds trailing
"-dirty" string at the end of version string in case the U-Boot git
tree contains uncommitted changes. This behavior itself is correct.
However, OE builds do clone U-Boot sources from git and may apply
additional patches on top, which are not tracked in U-Boot git tree,
but rather in the OE metalayer git tree, which leads to the addition
of "-dirty" string as well.

The .scmversion used by oe-core used to replace the version string
suffix fully, including the "-dirty" string. Reinstate support for
the .scmversion to let OE core do exactly that as it used to do it.

Fixes: 5c02350fa03d ("scripts/setlocalversion: sync with linux v6.9")
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de
---
 scripts/setlocalversion | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index dbe048210d6..26d121816dd 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -48,6 +48,10 @@ scm_version()
 	done
 
 	cd "$srctree"
+	if test -e .scmversion; then
+		cat .scmversion
+		return
+	fi
 
 	if test -n "$(git rev-parse --show-cdup 2>/dev/null)"; then
 		return
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-05-29 17:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-02 18:30 [PATCH] scripts/setlocalversion: Reinstate .scmversion support Marek Vasut
2025-03-04  9:24 ` Rasmus Villemoes
2025-03-04 14:28   ` Marek Vasut
2025-03-04 14:42     ` Tom Rini
2025-03-04 21:33       ` Rasmus Villemoes
2025-03-05  0:55         ` Marek Vasut
2025-03-05  0:41       ` Marek Vasut
2025-05-29 17:55 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.