From: Rasmus Villemoes <ravi@prevas.dk>
To: Marek Vasut <marex@denx.de>
Cc: u-boot@lists.denx.de, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH] scripts/setlocalversion: Reinstate .scmversion support
Date: Tue, 04 Mar 2025 10:24:06 +0100 [thread overview]
Message-ID: <87tt895etl.fsf@prevas.dk> (raw)
In-Reply-To: <20250302183128.326418-1-marex@denx.de> (Marek Vasut's message of "Sun, 2 Mar 2025 19:30:28 +0100")
On Sun, Mar 02 2025, Marek Vasut <marex@denx.de> wrote:
> 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.
>
... which is then _also_ correct, no? It means that U-Boot is built from
v2024.10-321-gabcd1234 plus some entirely unknown additional patches,
which can be anything from fixing a typo in a printf string to
completely overhauling everything.
> 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.
No, please don't. Let's not let this script deviate from upstream linux
again, and let's instead try to fix the bug in oe-core that (ab)uses
this legacy .scmversion file. The fundamental bug is that oe-core
creates these .scmversion files unconditionally, even if they end up
empty, making CONFIG_LOCALVERSION_AUTO completely useless. I have long
since worked around those bugs in my own u-boot and linux recipes, but
I'd much rather be able to eventually drop those workarounds.
Why doesn't doing what kernel.bbclass has done,
export LOCALVERSION = "${UBOOT_LOCALVERSION}"
work for you?
Rasmus
next prev parent reply other threads:[~2025-03-04 9:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-02 18:30 [PATCH] scripts/setlocalversion: Reinstate .scmversion support Marek Vasut
2025-03-04 9:24 ` Rasmus Villemoes [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tt895etl.fsf@prevas.dk \
--to=ravi@prevas.dk \
--cc=marex@denx.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.