]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
dtc: preserve version also from shallow git clones
authorPeter Marko <peter.marko@siemens.com>
Sat, 16 Dec 2023 18:55:04 +0000 (19:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Dec 2023 10:37:28 +0000 (10:37 +0000)
commit319f5d8a32d1f4a71ac997ce4522249b08f84945
treeed3e8261e557aea36c08150ed964a2b33d736cf8
parent5dc05c5bb5debc24864db03da51d03d53333e3e8
dtc: preserve version also from shallow git clones

Since switch from Makefile to meson based build,
the version is no longer hardcoded but queried from git tag.

This works only if git history is available.
When shallow tarballs are used, tag is not available.

Example error for trusted-firmware-a from meta-arm:
dtc version too old (039a994), you need at least version 1.4.4

Backport also patch to fix version in meson file.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/dtc/dtc/0001-meson.build-bump-version-to-1.7.0.patch [new file with mode: 0644]
meta/recipes-kernel/dtc/dtc/0002-meson-allow-building-from-shallow-clones.patch [new file with mode: 0644]
meta/recipes-kernel/dtc/dtc_1.7.0.bb