Merge pull request #75181 from wamserma/fix-modules-shrunk

modules-shrunk: preserve module priorities from build
This commit is contained in:
Andreas Rammhold 2019-12-12 22:53:14 +01:00 committed by GitHub
commit 89647059dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,4 +56,12 @@ for module in $closure; do
done
done
# copy module ordering hints for depmod
cp $kernel/lib/modules/"$version"/modules.order $out/lib/modules/"$version"/.
cp $kernel/lib/modules/"$version"/modules.builtin $out/lib/modules/"$version"/.
depmod -b $out -a $version
# remove original hints from final derivation
rm $out/lib/modules/"$version"/modules.order
rm $out/lib/modules/"$version"/modules.builtin