]> git.baikalelectronics.ru Git - uboot.git/commit
scripts: dtc-version: support git version strings too
authorMartin Hundebøll <martin@geanix.com>
Wed, 3 May 2023 10:23:39 +0000 (12:23 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 15 May 2023 18:08:44 +0000 (14:08 -0400)
commit8e9d1c1c311c594cbf49c19e84ea285f1cbe59ef
treea7a195ecb46c93006d6466b56ecf18bf76a8f7fa
parent1f68a218c51f3bafcbcb232ca41f8fd206b6b50e
scripts: dtc-version: support git version strings too

Building dtc from git causes the version number to start with a 'v'
(e.g. v1.7.0). printf then fails to parse 'v1' as a decimal value, and
prints '000700' instead of '010700'. Subsequently, the build fails,
because '000700' is less than the required '010400' version.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
scripts/dtc-version.sh