kmod: update to 34 and meson

This commit is contained in:
Rudi Heitbaum 2025-02-23 04:22:30 +00:00
parent 03c56a420f
commit 731e5176bf

View File

@ -2,32 +2,34 @@
# 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="33" PKG_VERSION="34"
PKG_SHA256="dc768b3155172091f56dc69430b5481f2d76ecd9ccb54ead8c2540dbcf5ea9bc" PKG_SHA256="12e7884484151fbd432b6a520170ea185c159f4393c7a2c2a886ab820313149a"
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="autotools:host" PKG_DEPENDS_HOST="meson:host ninja:host"
PKG_DEPENDS_TARGET="autotools:host gcc:host" 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
@ -44,6 +46,7 @@ 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