601 |
%endif |
%endif |
602 |
|
|
603 |
|
|
604 |
# gzipping modules |
# compressing modules |
605 |
find %{target_modules} -name "*.ko" | %kxargs gzip -9 |
find %{target_modules} -name "*.ko" | %kxargs xz -6e |
606 |
|
|
607 |
|
|
608 |
# We used to have a copy of PrepareKernel here |
# We used to have a copy of PrepareKernel here |
613 |
done |
done |
614 |
|
|
615 |
|
|
616 |
# sniff, if we gzipped all the modules, we change the stamp :( |
# sniff, if we compressed all the modules, we change the stamp :( |
617 |
# we really need the depmod -ae here |
# we really need the depmod -ae here |
618 |
pushd %{target_modules} |
pushd %{target_modules} |
619 |
for i in *; do |
for i in *; do |
624 |
for i in *; do |
for i in *; do |
625 |
pushd $i |
pushd $i |
626 |
echo "Creating module.description for $i" |
echo "Creating module.description for $i" |
627 |
modules=`find . -name "*.ko.gz"` |
modules=`find . -name "*.ko.[g,x]z"` |
628 |
echo $modules | %kxargs /sbin/modinfo \ |
echo $modules | %kxargs /sbin/modinfo \ |
629 |
| perl -lne 'print "$name\t$1" if $name && /^description:\s*(.*)/; $name = $1 if m!^filename:\s*(.*)\.k?o!; $name =~ s!.*/!!' > modules.description |
| perl -lne 'print "$name\t$1" if $name && /^description:\s*(.*)/; $name = $1 if m!^filename:\s*(.*)\.k?o!; $name =~ s!.*/!!' > modules.description |
630 |
popd |
popd |