mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
kernel: Fix depmod references
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
1d11a242b3
commit
adb57a0cc4
@ -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[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user