summaryrefslogtreecommitdiffstats
path: root/package/libevdev/libevdev.mk
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2014-04-06 13:36:26 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-06 14:09:54 +0200
commit649ab8940f84e02dfedb5423a8287b1acb1fa886 (patch)
treeb9a36e05bb9c5ded95b3ef3b511ed2965a89b500 /package/libevdev/libevdev.mk
parentaf9ff258f8fbfad8b9b9b281df6d4d75630f05c4 (diff)
downloadbuildroot-649ab8940f84e02dfedb5423a8287b1acb1fa886.tar.gz
buildroot-649ab8940f84e02dfedb5423a8287b1acb1fa886.zip
libevdev: adjust host-python dependency
libevdev depends on host-python because of some of its build scripts. These build scripts support python2 and python3. When python3 is part of the target selection, then we can just use the interpreter provided by the host-python3 package. Fixes: http://autobuild.buildroot.net/results/dd0/dd04833b11a0ebb0193c861cb375b2112dd339d1/ Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libevdev/libevdev.mk')
-rw-r--r--package/libevdev/libevdev.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/libevdev/libevdev.mk b/package/libevdev/libevdev.mk
index 3a022304c0..fdaceb5cd1 100644
--- a/package/libevdev/libevdev.mk
+++ b/package/libevdev/libevdev.mk
@@ -15,7 +15,9 @@ LIBEVDEV_DEPENDENCIES = host-pkgconf
# Needs Python to generate a header file
# We can't rely on the system Python, since it may be too old
# (missing argparse in python 2.6)
-LIBEVDEV_DEPENDENCIES += host-python
+# libevdev build scripts support both python2 and python3, so avoid unneeded
+# dependency on host-python.
+LIBEVDEV_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
# package source code coming from git, so it doesn't have generated
# configure and Makefile.in
OpenPOWER on IntegriCloud