summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2017-11-14 16:57:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-30 10:49:22 +0000
commitde94f5e140870eec37f5e44c3cc5c8b73166c142 (patch)
tree4606de200fa8c19059ed923ec7c17797eec7d7ae /meta/recipes-kernel
parent41d4066ccd375c0eae2665849a4c6ed565443870 (diff)
downloadpoky-de94f5e140870eec37f5e44c3cc5c8b73166c142.tar.gz
dtc: update to 1.4.5
Also fix upstream check and disable newly added python2-only bindings (as there is no clear need for them and python 2 is deprecated). Add a backported patch to address format errors when compiling. (From OE-Core rev: 8737b88f0da61af25ab9731acd9f2c3821170cdb) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/dtc/dtc.inc6
-rw-r--r--meta/recipes-kernel/dtc/dtc/0001-checks-Use-proper-format-modifier-for-size_t.patch43
-rw-r--r--meta/recipes-kernel/dtc/dtc_1.4.5.bb (renamed from meta/recipes-kernel/dtc/dtc_1.4.4.bb)2
3 files changed, 48 insertions, 3 deletions
diff --git a/meta/recipes-kernel/dtc/dtc.inc b/meta/recipes-kernel/dtc/dtc.inc
index d75994661a..d259c57e8d 100644
--- a/meta/recipes-kernel/dtc/dtc.inc
+++ b/meta/recipes-kernel/dtc/dtc.inc
@@ -7,9 +7,11 @@ DEPENDS = "flex-native bison-native"
7 7
8SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git \ 8SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git \
9 file://make_install.patch \ 9 file://make_install.patch \
10 " 10 file://0001-checks-Use-proper-format-modifier-for-size_t.patch \
11 "
12UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
11 13
12EXTRA_OEMAKE='PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"' 14EXTRA_OEMAKE='NO_PYTHON=1 PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"'
13 15
14S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
15 17
diff --git a/meta/recipes-kernel/dtc/dtc/0001-checks-Use-proper-format-modifier-for-size_t.patch b/meta/recipes-kernel/dtc/dtc/0001-checks-Use-proper-format-modifier-for-size_t.patch
new file mode 100644
index 0000000000..cab384dd99
--- /dev/null
+++ b/meta/recipes-kernel/dtc/dtc/0001-checks-Use-proper-format-modifier-for-size_t.patch
@@ -0,0 +1,43 @@
1From c7a4c3817796107bb824a1f173faf90fae45396b Mon Sep 17 00:00:00 2001
2From: Thierry Reding <treding@nvidia.com>
3Date: Wed, 27 Sep 2017 15:04:09 +0200
4Subject: [PATCH] checks: Use proper format modifier for size_t
5
6The size of size_t can vary between architectures, so using %ld isn't
7going to work on 32-bit builds. Use the %zu modifier to make sure it is
8always correct.
9
10Upstream-Status: Backport
11Signed-off-by: Thierry Reding <treding@nvidia.com>
12Acked-by: Rob Herring <robh@kernel.org>
13Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
14Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
15---
16 checks.c | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/checks.c b/checks.c
20index 902f2e3..08a3a29 100644
21--- a/checks.c
22+++ b/checks.c
23@@ -972,7 +972,7 @@ static void check_property_phandle_args(struct check *c,
24 int cell, cellsize = 0;
25
26 if (prop->val.len % sizeof(cell_t)) {
27- FAIL(c, dti, "property '%s' size (%d) is invalid, expected multiple of %ld in node %s",
28+ FAIL(c, dti, "property '%s' size (%d) is invalid, expected multiple of %zu in node %s",
29 prop->name, prop->val.len, sizeof(cell_t), node->fullpath);
30 return;
31 }
32@@ -1163,7 +1163,7 @@ static void check_interrupts_property(struct check *c,
33 return;
34
35 if (irq_prop->val.len % sizeof(cell_t))
36- FAIL(c, dti, "property '%s' size (%d) is invalid, expected multiple of %ld in node %s",
37+ FAIL(c, dti, "property '%s' size (%d) is invalid, expected multiple of %zu in node %s",
38 irq_prop->name, irq_prop->val.len, sizeof(cell_t),
39 node->fullpath);
40
41--
422.15.0
43
diff --git a/meta/recipes-kernel/dtc/dtc_1.4.4.bb b/meta/recipes-kernel/dtc/dtc_1.4.5.bb
index eadb7bab6f..0e46cfbeb4 100644
--- a/meta/recipes-kernel/dtc/dtc_1.4.4.bb
+++ b/meta/recipes-kernel/dtc/dtc_1.4.5.bb
@@ -3,7 +3,7 @@ require dtc.inc
3LIC_FILES_CHKSUM = "file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f \ 3LIC_FILES_CHKSUM = "file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f \
4 file://libfdt/libfdt.h;beginline=3;endline=52;md5=fb360963151f8ec2d6c06b055bcbb68c" 4 file://libfdt/libfdt.h;beginline=3;endline=52;md5=fb360963151f8ec2d6c06b055bcbb68c"
5 5
6SRCREV = "558cd81bdd432769b59bff01240c44f82cfb1a9d" 6SRCREV = "22a65c5331c22979d416738eb756b9541672e00d"
7 7
8S = "${WORKDIR}/git" 8S = "${WORKDIR}/git"
9 9