summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-04-27 14:14:54 -0700
committerArmin Kuster <akuster808@gmail.com>2018-05-01 18:17:50 -0700
commita19aa29f7fa336cd075b72c496fe1102e6e5422b (patch)
tree57c744015f1c6ca948c1bdd34817f88d06b55548 /meta-python
parent8efb248b20b25da9905a51f6b7de13e7e2060aea (diff)
downloadmeta-openembedded-a19aa29f7fa336cd075b72c496fe1102e6e5422b.tar.gz
python-evdev: Use target header to generate ecodes.c
ecodes.c is generated file and if we do not specify the linux input headers it happiliy defaults to /usr/include/ to look for these headers while emitting code for ecodes.c which can cause gripes when build systems kernel UAPI is different than the target kernel. Mysterious build errors or even worse runtime errors can start to appear. e.g. | evdev/ecodes.c:603:29: error: 'KEY_ROTATE_LOCK_TOGGLE' undeclared (first use in this function); did you mean 'KEY_ATTENDANT_TOGGLE'? Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python-evdev.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-evdev.inc b/meta-python/recipes-devtools/python/python-evdev.inc
index ccd5077da..5a3884a6f 100644
--- a/meta-python/recipes-devtools/python/python-evdev.inc
+++ b/meta-python/recipes-devtools/python/python-evdev.inc
@@ -6,6 +6,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=18debddbb3f52c661a129724a883a8e2"
6SRC_URI[md5sum] = "c7e855ae9f97f869a59e75b29f05ce74" 6SRC_URI[md5sum] = "c7e855ae9f97f869a59e75b29f05ce74"
7SRC_URI[sha256sum] = "57edafc469a414f58b51af1bfb9ee2babb9f626dd2df530d71c1176871850aa1" 7SRC_URI[sha256sum] = "57edafc469a414f58b51af1bfb9ee2babb9f626dd2df530d71c1176871850aa1"
8 8
9do_compile_prepend() {
10 rm -rf ${S}/evdev/ecodes.c
11}
12
13DISTUTILS_BUILD_ARGS = "build_ecodes --evdev-headers ${STAGING_DIR_TARGET}/usr/include/linux/input.h:${STAGING_DIR_TARGET}/usr/include/linux/input-event-codes.h"
14
9RDEPENDS_${PN} += "\ 15RDEPENDS_${PN} += "\
10 ${PYTHON_PN}-ctypes \ 16 ${PYTHON_PN}-ctypes \
11 ${PYTHON_PN}-fcntl \ 17 ${PYTHON_PN}-fcntl \