Skip to content

Commit

Permalink
makeModulesClosure: include /lib/firmware/edid
Browse files Browse the repository at this point in the history
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 NixOS#279739
  • Loading branch information
nazarewk committed Apr 2, 2024
1 parent d8fe5e6 commit 1872b54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/build-support/kernel/modules-closure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"/.
Expand Down

0 comments on commit 1872b54

Please sign in to comment.