Details on this package are located in Section 10.51.2, “Contents of Kmod.”
The Kmod package contains programs for loading, inserting and removing kernel modules for Linux. Kmod replaces the Module-Init-tools package.
Prepare Kmod for compilation:
./configure --prefix=/tools --bindir=/bin \
--build=${CLFS_HOST} --host=${CLFS_TARGET}
Compile the package:
make
Install the package:
make DESTDIR=${CLFS} install
Create symbolic links for programs that expect Module-Init-Tools.
ln -sv kmod ${CLFS}/bin/lsmod
ln -sv ../bin/kmod ${CLFS}/sbin/depmod
ln -sv ../bin/kmod ${CLFS}/sbin/insmod
ln -sv ../bin/kmod ${CLFS}/sbin/modprobe
ln -sv ../bin/kmod ${CLFS}/sbin/modinfo
ln -sv ../bin/kmod ${CLFS}/sbin/rmmod
Details on this package are located in Section 10.51.2, “Contents of Kmod.”