kernel: Use build kmod

This commit is contained in:
Ben Gamari 2017-10-28 21:06:18 -04:00 committed by Ben Wolsieffer
parent 7a9b6ac39a
commit 50e2bb12f6

View file

@ -1,4 +1,4 @@
{ buildPackages, runCommand, nettools, bc, perl, gmp, libmpc, mpfr, kmod, openssl
{ buildPackages, runCommand, nettools, bc, perl, gmp, libmpc, mpfr, openssl
, libelf
, utillinux
, writeTextFile, ubootTools
@ -97,7 +97,7 @@ let
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|= ${kmod}/bin/depmod|'
sed -i Makefile -e 's|= depmod|= ${buildPackages.kmod}/bin/depmod|'
'';
configurePhase = ''
@ -203,7 +203,7 @@ let
find -empty -type d -delete
# Remove reference to kmod
sed -i Makefile -e 's|= ${kmod}/bin/depmod|= depmod|'
sed -i Makefile -e 's|= ${buildPackages.kmod}/bin/depmod|= depmod|'
'' else optionalString installsFirmware ''
make firmware_install $makeFlags "''${makeFlagsArray[@]}" \
$installFlags "''${installFlagsArray[@]}"