added my Recipes
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
From 4801363fbff12bf1019aaf90142981702cecff92 Mon Sep 17 00:00:00 2001
|
||||
From: Andrey Zhizhikin <andrey.z@gmail.com>
|
||||
Date: Wed, 3 Feb 2021 20:44:34 +0000
|
||||
Subject: [PATCH] configure.ac: check for CPP prog
|
||||
|
||||
Absence of check for CPP_PROG causes following build errors:
|
||||
| checking TCP_CONGESTION socket option... ../git/configure: line 14427: CPP: command not found
|
||||
| ../git/configure: line 14553: ac_fn_c_try_cpp: command not found
|
||||
| ../git/configure: line 14553: ac_fn_c_try_cpp: command not found
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
|
||||
|
||||
---
|
||||
configure.ac | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 53a4db4..3462b3e 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -48,6 +48,7 @@ AC_CANONICAL_HOST
|
||||
# Checks for tools: c compiler, ranlib (used for creating static libraries),
|
||||
# symlinks and libtool
|
||||
AC_PROG_CC
|
||||
+AC_PROG_CPP
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_LN_S
|
||||
LT_INIT
|
||||
@@ -0,0 +1,30 @@
|
||||
From 155ae12f7809e387a379703d8c09f227e430336d Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 14 Jul 2017 13:00:16 -0700
|
||||
Subject: [PATCH] Remove -pg from profile_CFLAGS
|
||||
|
||||
musl fails to link with missing gcrt1.o
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
|
||||
|
||||
---
|
||||
src/Makefile.am | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index 11d3e17..4058cff 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -58,9 +58,9 @@ if ENABLE_PROFILING
|
||||
iperf3_profile_SOURCES = main.c \
|
||||
$(libiperf_la_SOURCES)
|
||||
|
||||
-iperf3_profile_CFLAGS = -pg -g
|
||||
+iperf3_profile_CFLAGS = -g
|
||||
iperf3_profile_LDADD = libiperf.la
|
||||
-iperf3_profile_LDFLAGS = -pg -g
|
||||
+iperf3_profile_LDFLAGS = -g
|
||||
endif
|
||||
|
||||
# Specify the sources and various flags for the test cases
|
||||
@@ -0,0 +1,34 @@
|
||||
SUMMARY = "Network benchmark tool"
|
||||
DESCRIPTION = "\
|
||||
iperf is a tool for active measurements of the maximum achievable bandwidth \
|
||||
on IP networks. It supports tuning of various parameters related to timing, \
|
||||
protocols, and buffers. For each test it reports the bandwidth, loss, and \
|
||||
other parameters."
|
||||
|
||||
HOMEPAGE = "http://software.es.net/iperf/"
|
||||
SECTION = "console/network"
|
||||
BUGTRACKER = "https://github.com/esnet/iperf/issues"
|
||||
AUTHOR = "ESNET <info@es.net>, Lawrence Berkeley National Laboratory <websupport@lbl.gov>"
|
||||
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=dc6301c8256ceb8f71c9e3c2ae9096b9"
|
||||
|
||||
SRC_URI = "git://github.com/esnet/iperf.git;branch=master;protocol=https \
|
||||
file://0002-Remove-pg-from-profile_CFLAGS.patch \
|
||||
file://0001-configure.ac-check-for-CPP-prog.patch \
|
||||
"
|
||||
|
||||
SRCREV = "f48e7fa92b8932814f3d92f36986d51be9efe6e0"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools
|
||||
|
||||
PACKAGECONFIG ?= "openssl"
|
||||
|
||||
PACKAGECONFIG[lksctp] = "ac_cv_header_netinet_sctp_h=yes,ac_cv_header_netinet_sctp_h=no,lksctp-tools"
|
||||
PACKAGECONFIG[openssl] = "--with-openssl=${RECIPE_SYSROOT}${prefix},--without-openssl,openssl"
|
||||
|
||||
CFLAGS += "-D_GNU_SOURCE"
|
||||
|
||||
CVE_PRODUCT = "iperf_project:iperf"
|
||||
Reference in New Issue
Block a user