summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2024-12-04 07:48:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-06 23:34:12 +0000
commit53d0f5d43de1c6f6569f43820a724153947e6358 (patch)
treeb0280368ac1f2055b0619a17087394e3980cadee
parent9cabda06ab20ade43e7f9ac9b27c3ff92821e202 (diff)
downloadpoky-53d0f5d43de1c6f6569f43820a724153947e6358.tar.gz
dtc: upgrade 1.7.0 -> 1.7.2
Remove patches (both applied upstream). Add a tests option that is disabled by default (as previously it was inside a is_cross() condition and so was always disabled). (From OE-Core rev: fe1a0c72ad2b9c13322b1ce24276a76be6453896) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/dtc/dtc/0001-meson.build-bump-version-to-1.7.0.patch29
-rw-r--r--meta/recipes-kernel/dtc/dtc/0002-meson-allow-building-from-shallow-clones.patch38
-rw-r--r--meta/recipes-kernel/dtc/dtc_1.7.2.bb (renamed from meta/recipes-kernel/dtc/dtc_1.7.0.bb)5
3 files changed, 2 insertions, 70 deletions
diff --git a/meta/recipes-kernel/dtc/dtc/0001-meson.build-bump-version-to-1.7.0.patch b/meta/recipes-kernel/dtc/dtc/0001-meson.build-bump-version-to-1.7.0.patch
deleted file mode 100644
index 79a3b92b44..0000000000
--- a/meta/recipes-kernel/dtc/dtc/0001-meson.build-bump-version-to-1.7.0.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From 9153522103bd4ed7e3299c4d073f66bb37cb2d42 Mon Sep 17 00:00:00 2001
2From: Nikolay Letov <letov.nikolay@gmail.com>
3Date: Wed, 22 Feb 2023 13:36:07 +0300
4Subject: [PATCH 1/2] meson.build: bump version to 1.7.0
5
6[This was botched in the actual 1.7.0 release :( - David Gibson]
7
8Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/?id=64a907f08b9bedd89833c1eee674148cff2343c6]
9
10Signed-off-by: Nikolay Letov <letov.nikolay@gmail.com>
11Signed-off-by: Peter Marko <peter.marko@siemens.com>
12---
13 meson.build | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/meson.build b/meson.build
17index 78251eb..d88cd9f 100644
18--- a/meson.build
19+++ b/meson.build
20@@ -1,5 +1,5 @@
21 project('dtc', 'c',
22- version: '1.6.0',
23+ version: '1.7.0',
24 license: ['GPL2+', 'BSD-2'],
25 default_options: 'werror=true',
26 )
27--
282.30.2
29
diff --git a/meta/recipes-kernel/dtc/dtc/0002-meson-allow-building-from-shallow-clones.patch b/meta/recipes-kernel/dtc/dtc/0002-meson-allow-building-from-shallow-clones.patch
deleted file mode 100644
index 0284905913..0000000000
--- a/meta/recipes-kernel/dtc/dtc/0002-meson-allow-building-from-shallow-clones.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From 4415b0baece3c4351a6d3637c2754abbefd4795d Mon Sep 17 00:00:00 2001
2From: Peter Marko <peter.marko@siemens.com>
3Date: Sat, 16 Dec 2023 18:58:31 +0100
4Subject: [PATCH 2/2] meson: allow building from shallow clones
5
6When building from shallow clone, tag is not available
7and version defaults to git hash.
8Problem is that some builds check DTC version and fail the comparison.
9Example is https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
10Which fails to build with following error:
11dtc version too old (039a994), you need at least version 1.4.4
12
13Drop --always from git describe command, see
14https://github.com/mesonbuild/meson/blob/1.3.0/mesonbuild/utils/universal.py#L773
15This will make it more closer to build via Makefile.
16
17Upstream-Status: Submitted [https://github.com/dgibson/dtc/pull/122]
18
19Signed-off-by: Peter Marko <peter.marko@siemens.com>
20---
21 meson.build | 1 +
22 1 file changed, 1 insertion(+)
23
24diff --git a/meson.build b/meson.build
25index 78251eb..fc0c92a 100644
26--- a/meson.build
27+++ b/meson.build
28@@ -56,6 +56,7 @@ py = py.find_installation(required: get_option('python'))
29 swig = find_program('swig', required: get_option('python'))
30
31 version_gen_h = vcs_tag(
32+ command: ['git', 'describe', '--dirty=+'],
33 input: 'version_gen.h.in',
34 output: 'version_gen.h',
35 )
36--
372.30.2
38
diff --git a/meta/recipes-kernel/dtc/dtc_1.7.0.bb b/meta/recipes-kernel/dtc/dtc_1.7.2.bb
index 0702fc16df..3df95ec1ee 100644
--- a/meta/recipes-kernel/dtc/dtc_1.7.0.bb
+++ b/meta/recipes-kernel/dtc/dtc_1.7.2.bb
@@ -10,10 +10,8 @@ LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
10 10
11SRC_URI = " \ 11SRC_URI = " \
12 git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=main;protocol=https \ 12 git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=main;protocol=https \
13 file://0001-meson.build-bump-version-to-1.7.0.patch \
14 file://0002-meson-allow-building-from-shallow-clones.patch \
15" 13"
16SRCREV = "039a99414e778332d8f9c04cbd3072e1dcc62798" 14SRCREV = "2d10aa2afe35527728db30b35ec491ecb6959e5c"
17 15
18UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" 16UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
19 17
@@ -24,6 +22,7 @@ inherit meson pkgconfig
24EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled" 22EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
25 23
26PACKAGECONFIG ??= "tools" 24PACKAGECONFIG ??= "tools"
25PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false,"
27PACKAGECONFIG[tools] = "-Dtools=true,-Dtools=false,flex-native bison-native" 26PACKAGECONFIG[tools] = "-Dtools=true,-Dtools=false,flex-native bison-native"
28PACKAGECONFIG[yaml] = "-Dyaml=enabled,-Dyaml=disabled,libyaml" 27PACKAGECONFIG[yaml] = "-Dyaml=enabled,-Dyaml=disabled,libyaml"
29 28