diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2016-12-19 21:36:31 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-01-05 17:40:09 +0100 |
commit | 2603a5fbb9a2176c999a7e3e6951413ff4787fdc (patch) | |
tree | 1546663ee25037a7146197b90f16915044f37df3 /rules/netperf.make | |
parent | afcbcbcf22dc5b1815e7d4f84ead4130d73c831d (diff) | |
download | ptxdist-2603a5fbb9a2176c999a7e3e6951413ff4787fdc.tar.gz ptxdist-2603a5fbb9a2176c999a7e3e6951413ff4787fdc.tar.xz |
netperf: new package
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/netperf.make')
-rw-r--r-- | rules/netperf.make | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/rules/netperf.make b/rules/netperf.make new file mode 100644 index 000000000..a317fe529 --- /dev/null +++ b/rules/netperf.make @@ -0,0 +1,75 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Clemens Gruber <clemens.gruber@pqgruber.com> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_NETPERF) += netperf + +# +# Paths and names +# +NETPERF_VERSION := 2.7.0 +NETPERF_MD5 := ad1c5342d61f297c417a93133aeba65a +NETPERF := netperf-$(NETPERF_VERSION) +NETPERF_SUFFIX := tar.bz2 +NETPERF_URL := ftp://ftp.netperf.org/netperf/$(NETPERF).$(NETPERF_SUFFIX) +NETPERF_SOURCE := $(SRCDIR)/$(NETPERF).$(NETPERF_SUFFIX) +NETPERF_DIR := $(BUILDDIR)/$(NETPERF) +NETPERF_LICENSE := HP + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +NETPERF_CONF_TOOL := autoconf +NETPERF_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --disable-histogram \ + --disable-dirty \ + --enable-demo \ + --disable-unixdomain \ + --disable-dlpi \ + --disable-dccp \ + --enable-omni \ + --disable-xti \ + --disable-sdp \ + --disable-exs \ + --disable-sctp \ + --disable-intervals \ + --disable-spin \ + --enable-burst \ + --enable-cpuutil=procstat + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/netperf.targetinstall: + @$(call targetinfo) + + @$(call install_init, netperf) + @$(call install_fixup, netperf, PRIORITY, optional) + @$(call install_fixup, netperf, SECTION, base) + @$(call install_fixup, netperf, AUTHOR, "Clemens Gruber <clemens.gruber@pqgruber.com>") + @$(call install_fixup, netperf, DESCRIPTION, missing) + + @$(call install_alternative, netperf, 0, 0, 0755, /usr/bin/netperf) + @$(call install_alternative, netperf, 0, 0, 0755, /usr/bin/netserver) + + @$(call install_finish, netperf) + + @$(call touch) + +# vim: syntax=make |