2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2011-12-17 02:25:36 +01:00
|
|
|
|
|
|
|
|
PKG_NAME="kmod"
|
2024-03-06 08:41:02 +00:00
|
|
|
PKG_VERSION="32"
|
|
|
|
|
PKG_SHA256="630ed0d92275a88cb9a7bf68f5700e911fdadaf02e051cf2e4680ff8480bd492"
|
2011-12-17 02:25:36 +01:00
|
|
|
PKG_LICENSE="GPL"
|
2021-01-09 09:31:42 +00:00
|
|
|
PKG_SITE="https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git"
|
2021-01-19 19:34:16 +00:00
|
|
|
PKG_URL="https://www.kernel.org/pub/linux/utils/kernel/kmod/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2019-10-17 20:01:27 +02:00
|
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
2014-01-30 14:31:09 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
2011-12-17 02:25:36 +01:00
|
|
|
PKG_LONGDESC="kmod offers the needed flexibility and fine grained control over insertion, removal, configuration and listing of kernel modules."
|
2013-08-26 23:14:18 +02:00
|
|
|
|
2013-12-25 18:56:38 +01:00
|
|
|
PKG_CONFIGURE_OPTS_HOST="--enable-tools \
|
|
|
|
|
--disable-logging \
|
|
|
|
|
--disable-debug \
|
|
|
|
|
--disable-manpages \
|
|
|
|
|
--with-gnu-ld \
|
|
|
|
|
--without-xz \
|
2021-01-09 09:31:42 +00:00
|
|
|
--without-zlib \
|
|
|
|
|
--without-zstd"
|
2013-12-25 18:56:38 +01:00
|
|
|
|
2013-08-26 23:14:18 +02:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--enable-tools \
|
|
|
|
|
--enable-logging \
|
|
|
|
|
--disable-debug \
|
|
|
|
|
--disable-manpages \
|
|
|
|
|
--with-gnu-ld \
|
|
|
|
|
--without-xz \
|
2021-01-09 09:31:42 +00:00
|
|
|
--without-zlib \
|
|
|
|
|
--without-zstd"
|
2013-08-26 23:14:18 +02:00
|
|
|
|
2013-12-25 18:56:38 +01:00
|
|
|
post_makeinstall_host() {
|
2021-01-19 19:34:16 +00:00
|
|
|
ln -sf kmod ${TOOLCHAIN}/bin/depmod
|
2013-12-25 18:56:38 +01:00
|
|
|
}
|
|
|
|
|
|
2013-08-26 23:14:18 +02:00
|
|
|
post_makeinstall_target() {
|
|
|
|
|
# make symlinks for compatibility
|
2021-01-19 19:34:16 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/sbin
|
|
|
|
|
ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/lsmod
|
|
|
|
|
ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/insmod
|
|
|
|
|
ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/rmmod
|
|
|
|
|
ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/modinfo
|
|
|
|
|
ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/modprobe
|
|
|
|
|
ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/depmod
|
2013-08-26 23:14:18 +02:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
mkdir -p ${INSTALL}/etc
|
|
|
|
|
ln -sf /storage/.config/modprobe.d ${INSTALL}/etc/modprobe.d
|
2014-11-17 22:38:21 +01:00
|
|
|
|
2013-08-26 23:14:18 +02:00
|
|
|
# add user modprobe.d dir
|
2021-01-19 19:34:16 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/config/modprobe.d
|
2013-08-26 23:14:18 +02:00
|
|
|
}
|