Skip to contentSkip to conversation

udev: Add 2 patches to support 4.4 kernel

PATCH New Saul Wold 1 participant 1 message Jan 20, 2016

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH v2 1/1 udev: Add 2 patches to support 4.4 kernel

These 2 patches are needed to build udev with the 4.4 kernel, the first mtd-probe adds back a stdint.h header that was removed in the kernel's mtd-user.h header file.

The second adds a check for a new header and sets a Makefile variable to determine which header to use for the new kernel vs older kernels.

---
v2: Added Upstream-Status in additional patches (Thanks Khem)

 meta/recipes-core/udev/udev.inc                    |  5 ++-
 ...-Add-stdint.h-as-it-was-removed-from-mtd-.patch | 29 ++++++++++++
 ...c-Makefile.am-Check-for-input.h-and-input.patch | 52 ++++++++++++++++++++++
 3 files changed, 85 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/udev/udev/0001-mtd_probe.h-Add-stdint.h-as-it-was-removed-from-mtd-.patch
 create mode 100644 meta/recipes-core/udev/udev/0002-configure.ac-Makefile.am-Check-for-input.h-and-input.patch
meta/recipes-core/udev/udev.inc +4 -1
index c00ed34..93d7369 100644
@@ -31,7 +31,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
            file://add-install-ptest.patch \
            file://fix_rule-syntax-regex-ptest.patch \
            file://run-ptest \
-           file://init"
+           file://init \
+           file://0001-mtd_probe.h-Add-stdint.h-as-it-was-removed-from-mtd-.patch \
+           file://0002-configure.ac-Makefile.am-Check-for-input.h-and-input.patch \
+           "
 
 inherit autotools pkgconfig update-rc.d ptest
 RDEPENDS_${PN}-ptest += "make perl python"
meta/recipes-core/udev/udev/0001-mtd_probe.h-Add-stdint.h-as-it-was-removed-from-mtd-.patch new file +29 -0
new file mode 100644
index 0000000..8d2df1a
@@ -0,0 +1,29 @@
+From 2935f9b2dfb92c3ce4376a988cd01b624430905b Mon Sep 17 00:00:00 2001
+From: Saul Wold <[email protected]>
+Date: Tue, 19 Jan 2016 09:49:56 -0800
+Subject: [PATCH 1/2] mtd_probe.h: Add stdint.h as it was removed from
+ mtd-user.h in the kernel
+
+
+Upstream-Status: Inappropriate [Upstream unsupported]
+
+Signed-off-by: Saul Wold <[email protected]>
+---
+ src/mtd_probe/mtd_probe.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/mtd_probe/mtd_probe.h b/src/mtd_probe/mtd_probe.h
+index 2a37ede..49c1918 100644
+--- a/src/mtd_probe/mtd_probe.h
++++ b/src/mtd_probe/mtd_probe.h
+@@ -18,6 +18,7 @@
+  */
+ 
+ #include <mtd/mtd-user.h>
++#include <stdint.h>
+ 
+ /* Full oob structure as written on the flash */
+ struct sm_oob {
+-- 
+2.5.0
+
meta/recipes-core/udev/udev/0002-configure.ac-Makefile.am-Check-for-input.h-and-input.patch new file +52 -0

52 lines not on this page · raw message

Signature · 1 line
2.5.0