kmod: update to 34.2

This commit is contained in:
Ian Leonard 2024-07-02 06:04:30 -04:00 committed by Rudi Heitbaum
parent cb01e6e1dd
commit 46b767e74c

View File

@ -2,39 +2,41 @@
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv) # Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
PKG_NAME="kmod" PKG_NAME="kmod"
PKG_VERSION="32" PKG_VERSION="34.2"
PKG_SHA256="630ed0d92275a88cb9a7bf68f5700e911fdadaf02e051cf2e4680ff8480bd492" PKG_SHA256="5a5d5073070cc7e0c7a7a3c6ec2a0e1780850c8b47b3e3892226b93ffcb9cb54"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git" PKG_SITE="https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git"
PKG_URL="https://www.kernel.org/pub/linux/utils/kernel/kmod/${PKG_NAME}-${PKG_VERSION}.tar.xz" PKG_URL="https://www.kernel.org/pub/linux/utils/kernel/kmod/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_HOST="toolchain:host" PKG_DEPENDS_HOST="meson:host ninja:host"
PKG_DEPENDS_TARGET="toolchain" PKG_DEPENDS_TARGET="meson:host gcc:host openssl"
PKG_LONGDESC="kmod offers the needed flexibility and fine grained control over insertion, removal, configuration and listing of kernel modules." PKG_LONGDESC="kmod offers the needed flexibility and fine grained control over insertion, removal, configuration and listing of kernel modules."
PKG_BUILD_FLAGS="-gold -mold"
PKG_CONFIGURE_OPTS_HOST="--enable-tools \ PKG_MESON_OPTS_COMMON="-Dbashcompletiondir=no \
--disable-logging \ -Dfishcompletiondir=no \
--disable-debug \ -Dzshcompletiondir=no \
--disable-manpages \ -Dzstd=disabled \
--with-gnu-ld \ -Dxz=disabled \
--without-xz \ -Dzlib=disabled \
--without-zlib \ -Dopenssl=enabled \
--without-zstd" -Dtools=true \
-Ddebug-messages=false \
-Dbuild-tests=false \
-Dmanpages=false \
-Ddocs=false"
PKG_CONFIGURE_OPTS_TARGET="--enable-tools \ PKG_MESON_OPTS_HOST="${PKG_MESON_OPTS_COMMON} \
--enable-logging \ -Dlogging=false"
--disable-debug \
--disable-manpages \ PKG_MESON_OPTS_TARGET="${PKG_MESON_OPTS_COMMON} \
--with-gnu-ld \ -Dlogging=true"
--without-xz \
--without-zlib \
--without-zstd"
post_makeinstall_host() { post_makeinstall_host() {
ln -sf kmod ${TOOLCHAIN}/bin/depmod ln -sf kmod ${TOOLCHAIN}/bin/depmod
} }
post_makeinstall_target() { post_makeinstall_target() {
# make symlinks for compatibility # make symlinks for compatibility
mkdir -p ${INSTALL}/usr/sbin mkdir -p ${INSTALL}/usr/sbin
ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/lsmod 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/insmod
@ -44,8 +46,9 @@ post_makeinstall_target() {
ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/depmod ln -sf /usr/bin/kmod ${INSTALL}/usr/sbin/depmod
mkdir -p ${INSTALL}/etc mkdir -p ${INSTALL}/etc
rmdir ${INSTALL}/etc/modprobe.d
ln -sf /storage/.config/modprobe.d ${INSTALL}/etc/modprobe.d ln -sf /storage/.config/modprobe.d ${INSTALL}/etc/modprobe.d
# add user modprobe.d dir # add user modprobe.d dir
mkdir -p ${INSTALL}/usr/config/modprobe.d mkdir -p ${INSTALL}/usr/config/modprobe.d
} }