forked from mirrors/nixpkgs
dpdk: separate kernel modules
This commit is contained in:
parent
9f3c0f9716
commit
7334e925b4
|
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||
NIX_CFLAGS_COMPILE = [ "-march=core2" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
outputs = [ "out" "examples" ];
|
||||
outputs = [ "out" "kmod" "examples" ];
|
||||
|
||||
buildPhase = ''
|
||||
make T=x86_64-native-linuxapp-gcc config
|
||||
|
@ -30,7 +30,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -pr x86_64-native-linuxapp-gcc/{lib,include,kmod} $out/
|
||||
cp -pr x86_64-native-linuxapp-gcc/{lib,include} $out/
|
||||
|
||||
mkdir -p $kmod/lib/modules/${kernel.modDirVersion}/kernel/drivers/net
|
||||
cp ${RTE_TARGET}/kmod/*.ko $kmod/lib/modules/${kernel.modDirVersion}/kernel/drivers/net
|
||||
|
||||
mkdir -p $examples/bin
|
||||
find examples ${RTE_TARGET}/app -type f -executable -exec cp {} $examples/bin \;
|
||||
|
|
Loading…
Reference in a new issue