3
0
Fork 0
forked from mirrors/nixpkgs

nixos top-level: Add 'dtbs' symlink when kernel uses device trees

Currently e.g. extlinux-conf-builder.sh uses
`readlink -m "$toplevel/kernel/../dtbs"` to figure out the directory.
That is obscenely ugly.
This commit is contained in:
Tuomas Tynkkynen 2017-02-12 02:56:29 +02:00
parent 4f34e030a5
commit 9e04b57dde

View file

@ -45,6 +45,9 @@ let
ln -s ${kernelPath} $out/kernel
ln -s ${config.system.modulesTree} $out/kernel-modules
${optionalString (pkgs.stdenv.platform.kernelDTB or false) ''
ln -s ${config.boot.kernelPackages.kernel}/dtbs $out/dtbs
''}
echo -n "$kernelParams" > $out/kernel-params