0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-01 01:01:24 +00:00
Ian Leonard b31ce30170 sysutils: automated code cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-01-19 19:34:16 +00:00

52 lines
1.9 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
PKG_NAME="kmod"
PKG_VERSION="28"
PKG_SHA256="3969fc0f13daa98084256337081c442f8749310089e48aa695c9b4dfe1b3a26c"
PKG_LICENSE="GPL"
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_DEPENDS_HOST="toolchain:host"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="kmod offers the needed flexibility and fine grained control over insertion, removal, configuration and listing of kernel modules."
PKG_CONFIGURE_OPTS_HOST="--enable-tools \
--disable-logging \
--disable-debug \
--disable-manpages \
--with-gnu-ld \
--without-xz \
--without-zlib \
--without-zstd"
PKG_CONFIGURE_OPTS_TARGET="--enable-tools \
--enable-logging \
--disable-debug \
--disable-manpages \
--with-gnu-ld \
--without-xz \
--without-zlib \
--without-zstd"
post_makeinstall_host() {
ln -sf kmod ${TOOLCHAIN}/bin/depmod
}
post_makeinstall_target() {
# make symlinks for compatibility
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
mkdir -p ${INSTALL}/etc
ln -sf /storage/.config/modprobe.d ${INSTALL}/etc/modprobe.d
# add user modprobe.d dir
mkdir -p ${INSTALL}/usr/config/modprobe.d
}