kernel: Use build kmod
This commit is contained in:
parent
7a9b6ac39a
commit
50e2bb12f6
@ -1,4 +1,4 @@
|
|||||||
{ buildPackages, runCommand, nettools, bc, perl, gmp, libmpc, mpfr, kmod, openssl
|
{ buildPackages, runCommand, nettools, bc, perl, gmp, libmpc, mpfr, openssl
|
||||||
, libelf
|
, libelf
|
||||||
, utillinux
|
, utillinux
|
||||||
, writeTextFile, ubootTools
|
, writeTextFile, ubootTools
|
||||||
@ -97,7 +97,7 @@ let
|
|||||||
echo "stripping FHS paths in \`$mf'..."
|
echo "stripping FHS paths in \`$mf'..."
|
||||||
sed -i "$mf" -e 's|/usr/bin/||g ; s|/bin/||g ; s|/sbin/||g'
|
sed -i "$mf" -e 's|/usr/bin/||g ; s|/bin/||g ; s|/sbin/||g'
|
||||||
done
|
done
|
||||||
sed -i Makefile -e 's|= depmod|= ${kmod}/bin/depmod|'
|
sed -i Makefile -e 's|= depmod|= ${buildPackages.kmod}/bin/depmod|'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
@ -203,7 +203,7 @@ let
|
|||||||
find -empty -type d -delete
|
find -empty -type d -delete
|
||||||
|
|
||||||
# Remove reference to kmod
|
# 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 ''
|
'' else optionalString installsFirmware ''
|
||||||
make firmware_install $makeFlags "''${makeFlagsArray[@]}" \
|
make firmware_install $makeFlags "''${makeFlagsArray[@]}" \
|
||||||
$installFlags "''${installFlagsArray[@]}"
|
$installFlags "''${installFlagsArray[@]}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user