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

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

Comments

Mihaela Sendrea - May 13, 2014, 2 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(+)

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..ffa77d7 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,9 @@  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,"
+
 # 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() {
@@ -57,5 +60,7 @@  do_install() {
     install -m 0644 ${S}/doc/netperf_old.ps ${D}${docdir}/netperf
 }
 
+RRECOMMENDS_${PN} += "${@base_contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}"
+
 INITSCRIPT_NAME="netperf"
 INITSCRIPT_PARAMS="defaults"