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"
|
2025-03-28 14:37:50 +00:00
|
|
|
PKG_VERSION="34.2"
|
|
|
|
|
PKG_SHA256="5a5d5073070cc7e0c7a7a3c6ec2a0e1780850c8b47b3e3892226b93ffcb9cb54"
|
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"
|
2025-02-23 04:22:30 +00:00
|
|
|
PKG_DEPENDS_HOST="meson:host ninja:host"
|
|
|
|
|
PKG_DEPENDS_TARGET="meson:host gcc:host openssl"
|
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."
|
2025-02-23 04:22:30 +00:00
|
|
|
PKG_BUILD_FLAGS="-gold -mold"
|
2013-08-26 23:14:18 +02:00
|
|
|
|
2025-02-23 04:22:30 +00:00
|
|
|
PKG_MESON_OPTS_COMMON="-Dbashcompletiondir=no \
|
|
|
|
|
-Dfishcompletiondir=no \
|
|
|
|
|
-Dzshcompletiondir=no \
|
|
|
|
|
-Dzstd=disabled \
|
|
|
|
|
-Dxz=disabled \
|
|
|
|
|
-Dzlib=disabled \
|
|
|
|
|
-Dopenssl=enabled \
|
|
|
|
|
-Dtools=true \
|
|
|
|
|
-Ddebug-messages=false \
|
|
|
|
|
-Dbuild-tests=false \
|
|
|
|
|
-Dmanpages=false \
|
|
|
|
|
-Ddocs=false"
|
2013-12-25 18:56:38 +01:00
|
|
|
|
2025-02-23 04:22:30 +00:00
|
|
|
PKG_MESON_OPTS_HOST="${PKG_MESON_OPTS_COMMON} \
|
|
|
|
|
-Dlogging=false"
|
|
|
|
|
|
|
|
|
|
PKG_MESON_OPTS_TARGET="${PKG_MESON_OPTS_COMMON} \
|
|
|
|
|
-Dlogging=true"
|
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() {
|
2024-08-01 11:51:09 +02:00
|
|
|
# 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
|
2025-02-23 04:22:30 +00:00
|
|
|
rmdir ${INSTALL}/etc/modprobe.d
|
2021-01-19 19:34:16 +00:00
|
|
|
ln -sf /storage/.config/modprobe.d ${INSTALL}/etc/modprobe.d
|
2014-11-17 22:38:21 +01:00
|
|
|
|
2024-08-01 11:51:09 +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
|
|
|
}
|