summaryrefslogtreecommitdiffstats
path: root/package/tcpreplay
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2014-01-23 22:07:14 +1300
committerPeter Korsgaard <peter@korsgaard.com>2014-01-23 22:24:57 +0100
commit340ba1bec04a87eae00b49098070d01e77457819 (patch)
treee73e755082c1a35dcb40fcef8697fe709d37d034 /package/tcpreplay
parent99fa554bd64561e36b8f337821d2fb387f506ef6 (diff)
downloadbuildroot-340ba1bec04a87eae00b49098070d01e77457819.tar.gz
buildroot-340ba1bec04a87eae00b49098070d01e77457819.zip
tcpreplay: cross-compile with tcpdump support
If tcpdump is enabled set ac_cv_path_tcpdump_path so that verbose output is enabled on the target. Signed-off-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/tcpreplay')
-rw-r--r--package/tcpreplay/tcpreplay.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/tcpreplay/tcpreplay.mk b/package/tcpreplay/tcpreplay.mk
index 0939c6ce5b..a2cd16e396 100644
--- a/package/tcpreplay/tcpreplay.mk
+++ b/package/tcpreplay/tcpreplay.mk
@@ -18,4 +18,10 @@ TCPREPLAY_DEPENDENCIES = libpcap
TCPREPLAY_LIBS = -lpcap $(if $(BR2_PACKAGE_LIBUSB),-lusb-1.0)
TCPREPLAY_CONF_ENV += ac_cv_search_pcap_close='$(TCPREPLAY_LIBS)'
+ifeq ($(BR2_PACKAGE_TCPDUMP),y)
+TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=/usr/sbin/tcpdump
+else
+TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=no
+endif
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud