git.iko.soy/typeable/nixpkgs
on master help sign in
dpdk: pktgen: odp-dpdk: upgrades (#16585)

* dpdk: fix a typo * dpdk: separate configure phase * odp-dpdk: 1.8.0.0 -> 1.10.1.0 * pktgen: 3.0.00 -> 3.0.04 * pktgen: add withGtk build option

commitd515d72aba2cec1d11ebe19108d0425354819f4b authorRuslan Babayev <ruslan@babayev.com> dateWed 29 Jun 2016, 01:34 (10 years ago) parent3afa246
3 files changed+24−13
pkgs/os-specific/linux/dpdk/default.nix+5−2 pkgs/os-specific/linux/odp-dpdk/default.nix+4−4 pkgs/os-specific/linux/pktgen/default.nix+15−7
pkgs/os-specific/linux/dpdk/default.nix+5−2
@@ -16,14 +16,17 @@ stdenv.mkDerivation rec {
1616 RTE_KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
1717 RTE_TARGET = "x86_64-native-linuxapp-gcc";
1818
19− # we need ssse3 instructions to build
19+ # we need sse3 instructions to build
2020 NIX_CFLAGS_COMPILE = [ "-march=core2" ];
2121
2222 enableParallelBuilding = true;
2323 outputs = [ "out" "kmod" "examples" ];
2424
25− buildPhase = ''
25+ configurePhase = ''
2626 make T=x86_64-native-linuxapp-gcc config
27+ '';
28+
29+ buildPhase = ''
2730 make T=x86_64-native-linuxapp-gcc install
2831 make T=x86_64-native-linuxapp-gcc examples
2932 '';
pkgs/os-specific/linux/odp-dpdk/default.nix+4−4
@@ -2,12 +2,12 @@
22
33stdenv.mkDerivation rec {
44 name = "odp-dpdk-${version}";
5− version = "1.8.0.0";
5+ version = "1.10.1.0";
66
77 src = fetchgit {
88 url = "https://git.linaro.org/lng/odp-dpdk.git";
9− rev = "438a207a39bad213cdc03929452a8199caef5d8c";
10− sha256 = "0k4g5zbirbfdcgqz0nbn9san66y178qnigyvrr2apj3apzjjy7zv";
9+ rev = "0ed1ced007d98980f90604675083bf30c354e867";
10+ sha256 = "1kf090bizr0p0cxn525qpmypb5j86imvxrfpmwbl7vqqfh74j5ax";
1111 };
1212
1313 nativeBuildInputs = [ autoreconfHook bash ];
@@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
1818
1919 patchPhase = ''
2020 substituteInPlace scripts/git_hash.sh --replace /bin/bash /bin/sh
21+ substituteInPlace scripts/get_impl_str.sh --replace /bin/bash /bin/sh
2122 echo -n ${version} > .scmversion
2223 '';
2324
@@ -26,7 +27,6 @@ stdenv.mkDerivation rec {
2627 configureFlags = [
2728 "--with-platform=linux-dpdk"
2829 "--disable-shared"
29− "--disable-shared-dpdk"
3030 "--with-sdk-install-path=${dpdk}/${RTE_TARGET}"
3131 ];
3232
pkgs/os-specific/linux/pktgen/default.nix+15−7
@@ -1,26 +1,34 @@
1−{ stdenv, fetchurl, dpdk, libpcap, utillinux }:
1+{ stdenv, fetchurl, dpdk, libpcap, utillinux
2+, pkgconfig
3+, gtk, withGtk ? false
4+}:
25
36stdenv.mkDerivation rec {
47 name = "pktgen-${version}";
5− version = "3.0.00";
8+ version = "3.0.04";
69
710 src = fetchurl {
811 url = "http://dpdk.org/browse/apps/pktgen-dpdk/snapshot/pktgen-${version}.tar.gz";
9− sha256 = "703f8bd615aa4ae3a3085055483f9889dda09d082abb58afd33c1ba7c766ea65";
12+ sha256 = "0vrmbpl8zaal5zjwyzlx0y3d6jydfxdmf0psdj7ic37h5yh2iv2q";
1013 };
1114
12− buildInputs = [ dpdk libpcap ];
15+ nativeBuildInputs = stdenv.lib.optionals withGtk [ pkgconfig ];
16+
17+ buildInputs =
18+ [ dpdk libpcap ]
19+ ++ stdenv.lib.optionals withGtk [gtk];
1320
1421 RTE_SDK = "${dpdk}";
1522 RTE_TARGET = "x86_64-native-linuxapp-gcc";
23+ GUI = stdenv.lib.optionalString withGtk "true";
1624
1725 enableParallelBuilding = true;
1826
1927 NIX_CFLAGS_COMPILE = [ "-march=core2" ];
2028
21− patchPhase = ''
22− sed -i -e s:/usr/local:$out:g lib/lua/src/luaconf.h
23− sed -i -e s:/usr/bin/lscpu:${utillinux}/bin/lscpu:g lib/common/wr_lscpu.h
29+ postPatch = ''
30+ substituteInPlace lib/lua/src/luaconf.h --replace /usr/local $out
31+ substituteInPlace lib/common/wr_lscpu.h --replace /usr/bin/lscpu ${utillinux}/bin/lscpu
2432 '';
2533
2634 installPhase = ''