forked from mirrors/nixpkgs
dpdk: add ARMv8 sandboxed build support
DPDK defaults to reading machine info from /sys unless specific platform info is provided at configure time. Tell it to build a generic version instead of trying to optimize based on the build host.
This commit is contained in:
parent
19eb8f294d
commit
5ff289f39e
|
@ -53,6 +53,7 @@ in stdenv.mkDerivation rec {
|
|||
++ lib.optional (mod && kernel.kernelOlder "5.11") "-Ddisable_drivers=kni"
|
||||
++ lib.optional (!shared) "-Ddefault_library=static"
|
||||
++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
|
||||
++ lib.optional stdenv.isAarch64 "-Dmachine=generic"
|
||||
++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}"
|
||||
++ lib.optional (withExamples != []) "-Dexamples=${builtins.concatStringsSep "," withExamples}";
|
||||
|
||||
|
|
Loading…
Reference in a new issue