kernel/generic.nix: provide required dependencies for GCC plugins builds
This commit is contained in:
parent
e753bc125f
commit
c789f642f0
@ -4,6 +4,9 @@
|
|||||||
, perl
|
, perl
|
||||||
, bison ? null
|
, bison ? null
|
||||||
, flex ? null
|
, flex ? null
|
||||||
|
, gmp ? null
|
||||||
|
, libmpc ? null
|
||||||
|
, mpfr ? null
|
||||||
, stdenv
|
, stdenv
|
||||||
|
|
||||||
, # The kernel source tarball.
|
, # The kernel source tarball.
|
||||||
@ -89,7 +92,7 @@ let
|
|||||||
passAsFile = [ "kernelConfig" ];
|
passAsFile = [ "kernelConfig" ];
|
||||||
|
|
||||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [ perl ]
|
nativeBuildInputs = [ perl gmp libmpc mpfr ]
|
||||||
++ lib.optionals (stdenv.lib.versionAtLeast version "4.16") [ bison flex ];
|
++ lib.optionals (stdenv.lib.versionAtLeast version "4.16") [ bison flex ];
|
||||||
|
|
||||||
platformName = stdenv.hostPlatform.platform.name;
|
platformName = stdenv.hostPlatform.platform.name;
|
||||||
@ -112,7 +115,10 @@ let
|
|||||||
export buildRoot="''${buildRoot:-build}"
|
export buildRoot="''${buildRoot:-build}"
|
||||||
|
|
||||||
# Get a basic config file for later refinement with $generateConfig.
|
# Get a basic config file for later refinement with $generateConfig.
|
||||||
make HOSTCC=${buildPackages.stdenv.cc.targetPrefix}gcc -C . O="$buildRoot" $kernelBaseConfig ARCH=$kernelArch
|
make -C . O="$buildRoot" $kernelBaseConfig \
|
||||||
|
ARCH=$kernelArch \
|
||||||
|
HOSTCC=${buildPackages.stdenv.cc.targetPrefix}gcc \
|
||||||
|
HOSTCXX=${buildPackages.stdenv.cc.targetPrefix}g++
|
||||||
|
|
||||||
# Create the config file.
|
# Create the config file.
|
||||||
echo "generating kernel configuration..."
|
echo "generating kernel configuration..."
|
||||||
|
Loading…
Reference in New Issue
Block a user