mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 18:42:55 +00:00
rm empty directory
This commit is contained in:
parent
4ed0330a4e
commit
6ccc5e5d4b
1 changed files with 5 additions and 0 deletions
|
@ -1807,6 +1807,11 @@ do
|
||||||
nv="$(basename "$line")"
|
nv="$(basename "$line")"
|
||||||
mkdir -p %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
|
mkdir -p %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
|
||||||
mv -v "$line"/*.ko%{kmod_suffix} %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
|
mv -v "$line"/*.ko%{kmod_suffix} %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
|
||||||
|
dir_no_buildroot="$(echo "$line" | sed -e 's,^%{buildroot},,')"
|
||||||
|
echo "%exclude $dir_no_buildroot" >> %{kernel_files}
|
||||||
|
%if %{build_debug}
|
||||||
|
echo "%dir $dir_no_buildroot" >> %{debuginfo_files}
|
||||||
|
%endif
|
||||||
done
|
done
|
||||||
%endif #/with binary_extra_modules
|
%endif #/with binary_extra_modules
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue