Patchwork [meta-networking,v4,2/2] netperf: enable SCTP support

login
register
mail settings
Submitter Mihaela Sendrea
Date May 13, 2014, 1:07 p.m.
Message ID <1399986439-6925-3-git-send-email-mihaela.sendrea@enea.com>
Download mbox | patch
Permalink /patch/72093/
State New, archived
Headers show

Comments

Mihaela Sendrea - May 13, 2014, 1:07 p.m.
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
---
 meta-networking/recipes-support/netperf/netperf_2.6.0.bb | 5 +++++
 1 file changed, 5 insertions(+)
Koen Kooi - May 13, 2014, 1:47 p.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mihaela Sendrea schreef op 13-05-14 15:07:
> Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com> --- 
> meta-networking/recipes-support/netperf/netperf_2.6.0.bb | 5 +++++ 1 file
> changed, 5 insertions(+)
> 
> 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
> 7124b02..07bd0cf 100644 ---
> a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb +++
> b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb @@ -27,6
> +27,11 @@ CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE" 
> CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \ '
> -D_FILE_OFFSET_BITS=64', '', d)}"
> 
> +PACKAGECONFIG ??= "" +PACKAGECONFIG[sctp] =
> "--enable-sctp,--disable-sctp,lksctp-tools," + +RRECOMMENDS_${PN} +=
> "${@base_contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '',
> d)}"

R* variables are for packaging so go below do_install.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFTciJVMkyGM64RGpERAiIdAKCtomOboF/4B0JYDfTYIzPZVphz/ACfVdP5
Htmoo8XSpGUAfn7AgoU6iwI=
=bJG/
-----END PGP SIGNATURE-----

Patch

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 7124b02..07bd0cf 100644
--- a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
+++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
@@ -27,6 +27,11 @@  CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
 CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \
     ' -D_FILE_OFFSET_BITS=64', '', d)}"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[sctp] = "--enable-sctp,--disable-sctp,lksctp-tools,"
+
+RRECOMMENDS_${PN} += "${@base_contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', 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() {