# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/kmod/kmod.conf # Copyright (C) 2014 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- prefix= set_confopt # remove when zstd patch merged upstream var_append makeopt ' ' 'ACLOCAL=true AUTOMAKE=true' var_append makeinstopt ' ' 'ACLOCAL=true AUTOMAKE=true' pkginstalled zlib && var_append confopt ' ' '--with-zlib' pkginstalled libxslt || var_append confopt ' ' '--disable-manpages' #pkginstalled xz && var_append confopt ' ' '--with-xz' pkginstalled zstd && var_append confopt ' ' '--with-zstd' if atstage toolchain; then var_append confopt " " "--with-sysroot=$sysroot" xprefix=${arch_target}- var_append confopt " " "--program-transform-name='s,^,$xprefix,'" else bindir=$sbindir fi kmod_pm() { install -dm 755 $root/{etc,usr/lib}/{depmod,modprobe}.d atstage toolchain || cp -vf $confdir/modprobe.conf $root/etc/modprobe.d/modprobe.conf for f in {ins,ls,rm,dep}mod mod{probe,info}; do ln -sfv ${xprefix}kmod $root$bindir/${xprefix}$f done } hook_add postinstall 3 "kmod_pm" var_append makeinstopt ' ' "LN_S='ln -svf'"