kernel: Fix depmod references

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2014-01-05 10:31:16 -05:00
parent 1d11a242b3
commit adb57a0cc4

View File

@ -49,7 +49,6 @@ let
commonMakeFlags = [ commonMakeFlags = [
"O=$(buildRoot)" "O=$(buildRoot)"
"DEPMOD=${kmod}/bin/depmod"
]; ];
drvAttrs = config_: platform: kernelPatches: configfile: drvAttrs = config_: platform: kernelPatches: configfile:
@ -95,6 +94,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}/sbin/depmod|'
''; '';
configurePhase = '' configurePhase = ''
@ -168,6 +168,9 @@ let
# Delete empty directories # Delete empty directories
find -empty -type d -delete find -empty -type d -delete
# Remove reference to kmod
sed -i Makefile -e 's|= ${kmod}/sbin/depmod|= depmod|'
'' else optionalString installsFirmware '' '' else optionalString installsFirmware ''
make firmware_install $makeFlags "''${makeFlagsArray[@]}" \ make firmware_install $makeFlags "''${makeFlagsArray[@]}" \
$installFlags "''${installFlagsArray[@]}" $installFlags "''${installFlagsArray[@]}"