sdk: invert logic for GIT_BRANCH and GIT_TAGNAME
authorChristian Marangi <[email protected]>
Thu, 4 Dec 2025 18:11:17 +0000 (19:11 +0100)
committerChristian Marangi <[email protected]>
Thu, 4 Dec 2025 18:20:38 +0000 (19:20 +0100)
commit289172b00e7193df8a2afa1eee54b43148470698
tree72bc16d604ac551648d262fe38127eae252ae348
parent0338dd44d5755fdd9bd38ce18e823cc024979240
sdk: invert logic for GIT_BRANCH and GIT_TAGNAME

There is currently a logic error with generating the base feed string.

In the scenario where the commit of a Tag match the latest commit of a
stable branch, the stable branch have priority over the tag name.

This results in generating SDK that actually target the branch instead
of the specific tag.

To fix this invert the logic and give priority to the tag name.

Fixes: #18583
Signed-off-by: Christian Marangi <[email protected]>
target/sdk/Makefile