dpdk: 20.05 -> 21.02
(cherry picked from commit a443ea7d0142ac3f8c27a40a3dcc5723cb49d62e)
This commit is contained in:
parent
df25a8867f
commit
40b3403d59
@ -8,14 +8,14 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
mod = kernel != null;
|
mod = kernel != null;
|
||||||
|
dpdkVersion = "21.02";
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "dpdk-${version}" + lib.optionalString mod "-${kernel.version}";
|
pname = "dpdk";
|
||||||
version = "20.05";
|
version = "${dpdkVersion}" + lib.optionalString mod "-${kernel.version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
|
url = "https://fast.dpdk.org/rel/dpdk-${dpdkVersion}.tar.xz";
|
||||||
sha256 = "0h0xv2zwb91b9n29afg5ihn06a8q28in64hag2f112kc19f79jj8";
|
sha256 = "sha256-CZJKKoJVGqKZeKNoYYT4oQX1L1ZAsb4of1QLLJHpSJs==";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -25,6 +25,7 @@ in stdenv.mkDerivation rec {
|
|||||||
pkg-config
|
pkg-config
|
||||||
python3
|
python3
|
||||||
python3.pkgs.sphinx
|
python3.pkgs.sphinx
|
||||||
|
python3.pkgs.pyelftools
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
jansson
|
jansson
|
||||||
@ -42,9 +43,12 @@ in stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
|
"-Dtests=false"
|
||||||
"-Denable_docs=true"
|
"-Denable_docs=true"
|
||||||
"-Denable_kmods=${lib.boolToString mod}"
|
"-Denable_kmods=${lib.boolToString mod}"
|
||||||
]
|
]
|
||||||
|
# kni kernel driver is currently not compatble with 5.11
|
||||||
|
++ lib.optional (mod && kernel.kernelOlder "5.11") "-Ddisable_drivers=kni"
|
||||||
++ lib.optional (!shared) "-Ddefault_library=static"
|
++ lib.optional (!shared) "-Ddefault_library=static"
|
||||||
++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
|
++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
|
||||||
++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}";
|
++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user