Files
operating-system/buildroot/package/netperf/netperf.mk
Stefan Agner 98ac18cbd5 Update buildroot to 2021.02.3 (#1422)
Signed-off-by: Stefan Agner <stefan@agner.ch>
(cherry picked from commit 9c8172df40)
2021-06-21 10:17:45 +02:00

26 lines
767 B
Makefile

################################################################################
#
# netperf
#
################################################################################
NETPERF_VERSION = 2.7.0
NETPERF_SITE = http://sources.buildroot.org/netperf
NETPERF_SOURCE = netperf-$(NETPERF_VERSION).tar.bz2
# gcc 5+ defaults to gnu99 which breaks netperf
NETPERF_CONF_ENV = \
ac_cv_func_setpgrp_void=set \
CFLAGS="$(TARGET_CFLAGS) -std=gnu89"
NETPERF_CONF_OPTS = --enable-demo=yes
NETPERF_LICENSE = netperf license
NETPERF_LICENSE_FILES = COPYING
define NETPERF_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/src/netperf \
$(TARGET_DIR)/usr/bin/netperf
$(INSTALL) -m 0755 $(@D)/src/netserver \
$(TARGET_DIR)/usr/bin/netserver
endef
$(eval $(autotools-package))