diff --git a/kmod-hookers.spec b/kmod-hookers.spec index bc1fb37d7d6486843910f3a414a9982fe1966e89..05cc8478f618465238f4698bc9bb75398369ad9d 100644 --- a/kmod-hookers.spec +++ b/kmod-hookers.spec @@ -19,9 +19,9 @@ Name: kmod-%{pkg} Version: %(echo %{kernel} | sed -E 's/-/~/g; s/\.(el|al|alios)[0-9]+$//g') Release: %{anolis_release}%{?dist} -Summary: ASPEED Graphics DRM Driver +Summary: Allow replacing and restore the function pointer in any order. License: GPL-2.0 -URL: https://www.aspeedtech.com/support_driver/ +URL: https://gitee.com/anolis/cloud-kernel Patch0: source-git.patch # 安装依赖, 和内核版本对应 @@ -66,10 +66,10 @@ find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+ # Generate depmod.conf %{__install} -d %{buildroot}/%{_sysconfdir}/depmod.d/ -for kmod in $(find %{buildroot}/lib/modules/%{kernel}.%{_arch}/extra -type f -name \*.ko -printf "%%P\n" | sort) +for kmod in $(find %{buildroot}/lib/modules/%{kernel}.%{_arch}/updates -type f -name \*.ko -printf "%%P\n" | sort) do echo "override $(basename $kmod .ko) * weak-updates/$(dirname $kmod)" >> %{buildroot}/%{_sysconfdir}/depmod.d/%{pkg}.conf - echo "override $(basename $kmod .ko) * extra/$(dirname $kmod)" >> %{buildroot}/%{_sysconfdir}/depmod.d/%{pkg}.conf + echo "override $(basename $kmod .ko) * updates/$(dirname $kmod)" >> %{buildroot}/%{_sysconfdir}/depmod.d/%{pkg}.conf done %clean