diff options
3 files changed, 85 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc index c00ed3412a..93d736941d 100644 --- a/meta/recipes-core/udev/udev.inc +++ b/meta/recipes-core/udev/udev.inc | |||
| @@ -31,7 +31,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ | |||
| 31 | file://add-install-ptest.patch \ | 31 | file://add-install-ptest.patch \ |
| 32 | file://fix_rule-syntax-regex-ptest.patch \ | 32 | file://fix_rule-syntax-regex-ptest.patch \ |
| 33 | file://run-ptest \ | 33 | file://run-ptest \ |
| 34 | file://init" | 34 | file://init \ |
| 35 | file://0001-mtd_probe.h-Add-stdint.h-as-it-was-removed-from-mtd-.patch \ | ||
| 36 | file://0002-configure.ac-Makefile.am-Check-for-input.h-and-input.patch \ | ||
| 37 | " | ||
| 35 | 38 | ||
| 36 | inherit autotools pkgconfig update-rc.d ptest | 39 | inherit autotools pkgconfig update-rc.d ptest |
| 37 | RDEPENDS_${PN}-ptest += "make perl python" | 40 | RDEPENDS_${PN}-ptest += "make perl python" |
diff --git a/meta/recipes-core/udev/udev/0001-mtd_probe.h-Add-stdint.h-as-it-was-removed-from-mtd-.patch b/meta/recipes-core/udev/udev/0001-mtd_probe.h-Add-stdint.h-as-it-was-removed-from-mtd-.patch new file mode 100644 index 0000000000..8d2df1a390 --- /dev/null +++ b/meta/recipes-core/udev/udev/0001-mtd_probe.h-Add-stdint.h-as-it-was-removed-from-mtd-.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 2935f9b2dfb92c3ce4376a988cd01b624430905b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Saul Wold <sgw@linux.intel.com> | ||
| 3 | Date: Tue, 19 Jan 2016 09:49:56 -0800 | ||
| 4 | Subject: [PATCH 1/2] mtd_probe.h: Add stdint.h as it was removed from | ||
| 5 | mtd-user.h in the kernel | ||
| 6 | |||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [Upstream unsupported] | ||
| 9 | |||
| 10 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 11 | --- | ||
| 12 | src/mtd_probe/mtd_probe.h | 1 + | ||
| 13 | 1 file changed, 1 insertion(+) | ||
| 14 | |||
| 15 | diff --git a/src/mtd_probe/mtd_probe.h b/src/mtd_probe/mtd_probe.h | ||
| 16 | index 2a37ede..49c1918 100644 | ||
| 17 | --- a/src/mtd_probe/mtd_probe.h | ||
| 18 | +++ b/src/mtd_probe/mtd_probe.h | ||
| 19 | @@ -18,6 +18,7 @@ | ||
| 20 | */ | ||
| 21 | |||
| 22 | #include <mtd/mtd-user.h> | ||
| 23 | +#include <stdint.h> | ||
| 24 | |||
| 25 | /* Full oob structure as written on the flash */ | ||
| 26 | struct sm_oob { | ||
| 27 | -- | ||
| 28 | 2.5.0 | ||
| 29 | |||
diff --git a/meta/recipes-core/udev/udev/0002-configure.ac-Makefile.am-Check-for-input.h-and-input.patch b/meta/recipes-core/udev/udev/0002-configure.ac-Makefile.am-Check-for-input.h-and-input.patch new file mode 100644 index 0000000000..a9dc627459 --- /dev/null +++ b/meta/recipes-core/udev/udev/0002-configure.ac-Makefile.am-Check-for-input.h-and-input.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | From 63ae7ebb0c6177efed46734061fb59c458a47a26 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Saul Wold <sgw@linux.intel.com> | ||
| 3 | Date: Tue, 19 Jan 2016 09:49:19 -0800 | ||
| 4 | Subject: [PATCH 2/2] configure.ac/Makefile.am: Check for input.h and | ||
| 5 | input-event-codes.h | ||
| 6 | |||
| 7 | Add INPUT_HEADER to know which header file to use because it changed | ||
| 8 | in the 4.4 kernel code. | ||
| 9 | |||
| 10 | Set INPUT_HEADER with default linux/input.h if it exists and if the | ||
| 11 | newer input-events-codes.h exists from 4.4 use it instead. | ||
| 12 | |||
| 13 | Upstream-Status: Inappropriate [Upstream unsupported] | ||
| 14 | |||
| 15 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 16 | --- | ||
| 17 | Makefile.am | 2 +- | ||
| 18 | configure.ac | 4 +++- | ||
| 19 | 2 files changed, 4 insertions(+), 2 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/Makefile.am b/Makefile.am | ||
| 22 | index 2e32e69..04eb194 100644 | ||
| 23 | --- a/Makefile.am | ||
| 24 | +++ b/Makefile.am | ||
| 25 | @@ -591,7 +591,7 @@ dist_udevkeymapforcerel_DATA = \ | ||
| 26 | src/keymap/force-release-maps/samsung-other \ | ||
| 27 | src/keymap/force-release-maps/common-volume-keys | ||
| 28 | |||
| 29 | -src/keymap/keys.txt: $(INCLUDE_PREFIX)/linux/input.h | ||
| 30 | +src/keymap/keys.txt: $(INCLUDE_PREFIX)/$(INPUT_HEADER) | ||
| 31 | $(AM_V_at)mkdir -p src/keymap | ||
| 32 | $(AM_V_GEN)$(AWK) '/^#define.*KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' < $< | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@ | ||
| 33 | |||
| 34 | diff --git a/configure.ac b/configure.ac | ||
| 35 | index 0500313..9674620 100644 | ||
| 36 | --- a/configure.ac | ||
| 37 | +++ b/configure.ac | ||
| 38 | @@ -154,8 +154,10 @@ AS_IF([test "x$enable_keymap" = "xyes"], [ | ||
| 39 | if test -z "$GPERF"; then | ||
| 40 | AC_MSG_ERROR([gperf is needed]) | ||
| 41 | fi | ||
| 42 | + | ||
| 43 | + AC_CHECK_HEADER([linux/input.h], [AC_SUBST([INPUT_HEADER], [$(echo 'linux/input.h')])], AC_MSG_ERROR([kernel headers not found])) | ||
| 44 | + AC_CHECK_HEADER([linux/input-event-codes.h], [AC_SUBST([INPUT_HEADER], [$(echo 'linux/input-event-codes.h')])], [:]) | ||
| 45 | |||
| 46 | - AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found])) | ||
| 47 | AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')]) | ||
| 48 | ]) | ||
| 49 | AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"]) | ||
| 50 | -- | ||
| 51 | 2.5.0 | ||
| 52 | |||
