Receipt for: linux-lts-hw
PACKAGE="linux-lts-hw"
VERSION="6.12.89"
CATEGORY="base-system"
SHORT_DESC="The Linux LTS kernel hardware modules (ACPI, hwmon, thermal, i2c, gpio)."
MAINTAINER="devel@slitaz.org"
LICENSE="GPL2"
DEPENDS="linux-lts"
WANTED="linux-lts"
HOST_ARCH="i486 x86_64"
WEB_SITE="https://www.kernel.org/"
genpkg_rules()
{
local path
path=lib/modules/$VERSION-slitaz/kernel
mkdir -p $fs/$path
export src install
$wanted_stuff/list_modules.sh drivers/acpi drivers/hwmon drivers/thermal drivers/cpufreq drivers/i2c drivers/pinctrl drivers/thunderbolt drivers/gpio drivers/mfd drivers/regulator drivers/power drivers/powercap drivers/pps drivers/ptp drivers/watchdog drivers/leds drivers/platform | while read module; do
dir=$path/$(dirname $module)
[ -d $fs/$dir ] || mkdir -p $fs/$dir
cp -a $install/$path/$module $fs/$dir 2>/dev/null || true
done
# Drop modules already shipped by the master linux-lts package.
for i in $(cat $wanted_stuff/modules.list); do
[ -f $fs/$path/$i ] && rm -f $fs/$path/$i
done
return 0
}
post_install() { chroot "$root/" depmod -a $VERSION-slitaz; }
post_remove() { chroot "$root/" depmod -a $VERSION-slitaz; }