Skip to content

Commit

Permalink
dpdk: separate kernel modules
Browse files Browse the repository at this point in the history
  • Loading branch information
abuibrahim committed Jun 1, 2016
1 parent d1934f6 commit f0006ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/os-specific/linux/dpdk/default.nix
Expand Up @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
RTE_TARGET = "x86_64-native-linuxapp-gcc";

enableParallelBuilding = true;
outputs = [ "out" "examples" ];
outputs = [ "out" "kmod" "examples" ];

# we need ssse3 instructions to build
NIX_CFLAGS_COMPILE = [ "-march=core2" ];
Expand All @@ -34,7 +34,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 \;
Expand Down

0 comments on commit f0006ff

Please sign in to comment.