!45 weak-modules: Precisely filters ko files in "/lib/modules/$kernel/extra" to avoid creating unnecessary symbols.

From: @yang_yanchao
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2021-11-25 07:12:42 +00:00 committed by Gitee
commit c2601fe049
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: kmod
Version: 27
Release: 6
Release: 7
Summary: Kernel module management
# GPLv2+ is used by programs, LGPLv2+ is used for libraries.
License: GPLv2+ and LGPLv2+
@ -116,6 +116,10 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
%doc TODO NEWS README
%changelog
* Wed Nov 24 2021 Yang Yanchao <yangyanchao6@huawei.com> - 27-7
- Precisely filters ko files in "/lib/modules/$kernel/extra"
to avoid creating unnecessary symbols.
* Tue Nov 9 2021 Yang Yanchao <yangyanchao6@huawei.com> - 27-6
- Sync the weak-modules script from the 20.03-LTS-SP1
- use -V to sort kernel version in weak-modules

View File

@ -985,7 +985,7 @@ filter_extra_absoluted()
while read i; do
# skip non-extra. The check is not perfect, but ok
# to speed up handling in general cases
echo "$i" |grep -q "extra/" || continue
echo "$i" |grep -q "^extra/" || continue
read -a mods <<< "$i"
for j in "${!mods[@]}"; do