Details on this package are located in Section 10.73.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:
CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
--bindir=/bin --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--libdir=/tools/lib64
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.73.2, “Contents of Kmod.”