All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe MacDonald <joe@deserted.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH v2] netperf: set _FILE_OFFSET_BITS to 64 to support large files
Date: Wed, 9 Oct 2013 13:25:26 -0400	[thread overview]
Message-ID: <20131009172523.GD5541@deserted.net> (raw)
In-Reply-To: <1381307549-12711-1-git-send-email-b28495@freescale.com>

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

Merged, thanks.

-J.

[[oe] [meta-oe][PATCH v2] netperf: set _FILE_OFFSET_BITS to 64 to support large files] On 13.10.09 (Wed 16:32) b28495@freescale.com wrote:

> From: Ting Liu <b28495@freescale.com>
> 
> Without this patch, netperf2.6 can only
> support files smaller than 2GB with TCP_SENDFILE item.
> 
> Signed-off-by: Ting Liu <b28495@freescale.com>
> Tested-by: Jianhua Xie<jianhua.xie@freescale.com>
> Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> 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() {
-- 
-Joe MacDonald.
:wq

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

      reply	other threads:[~2013-10-09 17:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-09  8:32 [meta-oe][PATCH v2] netperf: set _FILE_OFFSET_BITS to 64 to support large files b28495
2013-10-09 17:25 ` Joe MacDonald [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131009172523.GD5541@deserted.net \
    --to=joe@deserted.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.