[PATCH] scripts/setlocalversion: Reinstate .scmversion support
Marek Vasut
marex at denx.de
Wed Mar 5 01:41:04 CET 2025
On 3/4/25 3:42 PM, Tom Rini wrote:
[...]
>>> export LOCALVERSION = "${UBOOT_LOCALVERSION}"
>> U-Boot and Linux builds in OE-core work differently.
>>
>> Linux uses SCC to apply patches onto a git tree (i.e. it behaves like "git
>> am *patch") and therefore the "-dirty" suffix is not added.
>>
>> U-Boot recipe uses plain bitbake do_patch to apply patches, and therefore
>> the build tree is effectively dirty and the "-dirty" suffix is added. The
>> .scmversion overrides the dirty suffix.
>
> Yes, but that's Rasmus' point isn't it?
> 0592671fbba8c96df043d537d1f6415492de886e (v2025.01 hash) in oe-core
> isn't the same as in mainline because there's patches on top and it's
> non-obvious.
That still does not mean the repository is dirty , it only means the
patches are tracked in a different git tree (the OE layer one).
More information about the U-Boot
mailing list