WIP: kernel config is getting old... might need to migrate stuff!
The kernel infra is being updated for newer kernels. I may need to keep
track locally of older kernel build infras, or something :(.
@@ -84,6 +84,13 @@ let
${additionalInstall}
'';
+ prePatch = ''
+ for mf in $(find -name Makefile -o -name Makefile.include -o -name install.sh); do
+ echo "stripping FHS paths in \`$mf'..."
+ sed -i "$mf" -e 's|/usr/bin/||g ; s|/bin/||g ; s|/sbin/||g'
+ done
+ sed -i Makefile -e 's|= depmod|= ${buildPackages.kmod}/bin/depmod|'
+ '';
installTargets = [ "dtbs" "zinstall" ];
dontStrip = true;
}));
