Return-Path: Received: from co1outboundpool.messaging.microsoft.com (co1ehsobe006.messaging.microsoft.com [216.32.180.189]) by mail.openembedded.org (Postfix) with ESMTP id 1F7D36CBF4 for ; Wed, 9 Oct 2013 08:32:59 +0000 (UTC) Received: from mail171-co1-R.bigfish.com (10.243.78.240) by CO1EHSOBE003.bigfish.com (10.243.66.66) with Microsoft SMTP Server id 14.1.225.22; Wed, 9 Oct 2013 08:33:00 +0000 Received: from mail171-co1 (localhost [127.0.0.1]) by mail171-co1-R.bigfish.com (Postfix) with ESMTP id 088B04C01F1 for ; Wed, 9 Oct 2013 08:33:00 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1f42h208ch1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz1de098h1de097h8275bhz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh1fb3h1d0ch1d2eh1d3fh1dc1h1dfeh1dffh1e23h1fe8h1ff5h1155h) Received: from mail171-co1 (localhost.localdomain [127.0.0.1]) by mail171-co1 (MessageSwitch) id 1381307557161685_2367; Wed, 9 Oct 2013 08:32:37 +0000 (UTC) Received: from CO1EHSMHS003.bigfish.com (unknown [10.243.78.246]) by mail171-co1.bigfish.com (Postfix) with ESMTP id 23E6C54021C for ; Wed, 9 Oct 2013 08:32:37 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO1EHSMHS003.bigfish.com (10.243.66.13) with Microsoft SMTP Server (TLS) id 14.16.227.3; Wed, 9 Oct 2013 08:32:37 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server (TLS) id 14.3.158.2; Wed, 9 Oct 2013 08:32:35 +0000 Received: from NETWORKudp177383uds.ap.freescale.net (udp144273uds.ap.freescale.net [10.193.20.27]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id r998WXDN012645; Wed, 9 Oct 2013 01:32:34 -0700 From: To: Date: Wed, 9 Oct 2013 16:32:29 +0800 Message-ID: <1381307549-12711-1-git-send-email-b28495@freescale.com> X-Mailer: git-send-email 1.7.3.4 MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Subject: [meta-oe][PATCH v2] netperf: set _FILE_OFFSET_BITS to 64 to support large files X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2013 08:33:00 -0000 Content-Type: text/plain From: Ting Liu Without this patch, netperf2.6 can only support files smaller than 2GB with TCP_SENDFILE item. Signed-off-by: Ting Liu Tested-by: Jianhua Xie Reviewed-by: Otavio Salvador --- v2: update with Otavio's comment (add base_contains item) .../recipes-support/netperf/netperf_2.6.0.bb | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb index eda7859..c206d56 100644 --- a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb +++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb @@ -23,6 +23,11 @@ S = "${WORKDIR}/netperf-${PV}" # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE" +# set the "_FILE_OFFSET_BITS" preprocessor symbol to 64 to support files +# larger than 2GB +CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \ + ' -D_FILE_OFFSET_BITS=64', '', d)}" + # autotools.bbclass attends to include m4 files with path depth <= 2 by # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4. do_configure_prepend() { -- 1.7.3.4