summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Le Bihan <eric.le.bihan.dev@free.fr>2014-07-03 18:57:36 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-15 23:24:00 +0200
commit64b38f03a705fdbb40f0cf0186bbe38d611d1e10 (patch)
tree611e793c41e6e01127455c3a69ba51a105dbb95f
parent1612fd39e11556f2f672f2f0e8444b025c56e2d4 (diff)
downloadbuildroot-64b38f03a705fdbb40f0cf0186bbe38d611d1e10.tar.gz
buildroot-64b38f03a705fdbb40f0cf0186bbe38d611d1e10.zip
systemd: fix path for kmod in service files
The path for kmod used in kmod-static-nodes.service is the one found by the ./configure script, which ends up being the path to the host kmod program. This patch forces the path to the target kmod program. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/systemd/systemd.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 95e72148f8..f7fbf79a54 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -50,6 +50,10 @@ SYSTEMD_CONF_OPT += \
--disable-dbus \
--without-python
+# Override path to kmod, used in kmod-static-nodes.service
+SYSTEMD_CONF_ENV = \
+ ac_cv_path_KMOD=/usr/bin/kmod
+
ifeq ($(BR2_PACKAGE_SYSTEMD_COMPAT),y)
SYSTEMD_CONF_OPT += --enable-compat-libs
else
OpenPOWER on IntegriCloud