[Buildroot] [PATCH 1/3] kmod: allow to build a host variant

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Aug 20 11:05:40 UTC 2013

Since module-init-tools is deprecated, we now want to use kmod instead
for the installation of modules during the kernel build process. In
order to do this, we need to be able to build a host variant of kmod,
which is want this patch allows to do.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 package/kmod/kmod.mk | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
index 72a24af..8951a56 100644
--- a/package/kmod/kmod.mk
+++ b/package/kmod/kmod.mk
@@ -53,4 +53,13 @@ else
 KMOD_CONF_OPT += --disable-tools
+	mkdir -p $(HOST_DIR)/sbin/
+	for i in depmod insmod lsmod modinfo modprobe rmmod; \
+	do ln -sf ../usr/bin/kmod $(HOST_DIR)/sbin/$$i; done
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))

More information about the buildroot mailing list