mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
makeModulesClosure: include /lib/firmware/edid
modules-closure.sh seems to consider everything under /lib/firmware to be a kernel module, this change adds a special handling of `edid` directory, which does not contain kernel modules fixes #279739
This commit is contained in:
parent
a0812b380b
commit
4ede20cc6f
@ -89,6 +89,14 @@ for module in $(< ~-/closure); do
|
||||
done || :
|
||||
done
|
||||
|
||||
if test -e lib/firmware/edid ; then
|
||||
echo "lib/firmware/edid found, copying."
|
||||
mkdir -p "$out/lib/firmware"
|
||||
cp -v --no-preserve=mode --recursive --dereference --no-target-directory lib/firmware/edid "$out/lib/firmware/edid"
|
||||
else
|
||||
echo "lib/firmware/edid not found, skipping."
|
||||
fi
|
||||
|
||||
# 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"/.
|
||||
|
Loading…
Reference in New Issue
Block a user