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:
Krzysztof Nazarewski 2024-01-09 10:45:35 +01:00 committed by K900
parent a0812b380b
commit 4ede20cc6f

View File

@ -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"/.