From patchwork Thu Jan 23 09:07:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 313482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id D8CDD2C00B7 for ; Thu, 23 Jan 2014 20:07:29 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D3E1C32E0F; Thu, 23 Jan 2014 09:07:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c7jtlh1bhXtR; Thu, 23 Jan 2014 09:07:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AF1D732E0B; Thu, 23 Jan 2014 09:07:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 160791BF963 for ; Thu, 23 Jan 2014 09:07:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0ED3D8C6A7 for ; Thu, 23 Jan 2014 09:07:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uWelGE+4XJsm for ; Thu, 23 Jan 2014 09:07:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 91F708C609 for ; Thu, 23 Jan 2014 09:07:26 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id kp14so1613928pab.9 for ; Thu, 23 Jan 2014 01:07:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+N7qDGDgeT07Pj1DiSnqOH6to38E2k1i4TW6aUFPJno=; b=ls/hTY8/+MAchvwmFPMzVJ42493TawAk3WFxvba9jhik0ojFG5GIeJopCXkMvRHeOM JYSbY3siyhCrOxe9aXt5YRRLxeBGWFS+BpdW5j02OdoUoT6cc54v0GTVthKgl/T0Ko6Z FrRwW0F+Orx6wj5EABIXUFu6LQyMkytikSa7j70xTQbxu+ad3l+DzTTcsejmr2j4VRbS q00jbBGrjA18z+77A4Jjv7dYUjGh3O6rQN6z+RS8UP6eQzcafFLTZ0iHccrjWAY2gDaZ kdpnagTgO/6FaG9SeUp8owAw98ZiktaWV+4iai5oDF525hclZnn+iNDaasL45qDxyW7L 42pQ== X-Received: by 10.66.197.164 with SMTP id iv4mr7048662pac.18.1390468046372; Thu, 23 Jan 2014 01:07:26 -0800 (PST) Received: from chrisp3-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by mx.google.com with ESMTPSA id vn10sm33736987pbc.21.2014.01.23.01.07.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 01:07:25 -0800 (PST) From: Chris Packham To: buildroot@busybox.net Date: Thu, 23 Jan 2014 22:07:14 +1300 Message-Id: <1390468034-7430-1-git-send-email-judge.packham@gmail.com> X-Mailer: git-send-email 1.8.4.rc2 In-Reply-To: <87txcvb13p.fsf@dell.be.48ers.dk> References: <87txcvb13p.fsf@dell.be.48ers.dk> Cc: jacmet@uclibc.org Subject: [Buildroot] [PATCH] tcpreplay: cross-compile with tcpdump support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net If tcpdump is enabled set ac_cv_path_tcpdump_path so that verbose output is enabled on the target. Signed-off-by: Chris Packham --- Hi, This should get verbose support working if the tcpdump package is selected. This may also fix some of the build errors (if they set BR2_PACKAGE_TCPDUMP=y) but the real fix will come from upstream. package/tcpreplay/tcpreplay.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/tcpreplay/tcpreplay.mk b/package/tcpreplay/tcpreplay.mk index 0939c6c..a2cd16e 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))