]> code.ossystems Code Review - meta-freescale.git/commitdiff
ovs-dpdk: remove static key word
authorChunrong Guo <chunrong.guo@nxp.com>
Mon, 21 Jan 2019 07:46:32 +0000 (07:46 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 31 Jan 2019 12:29:40 +0000 (10:29 -0200)
fix the below error:
|lib/dhparams.c:2:12: error: static declaration of 'get_dh1024' follows non-static declaration
|  static DH *get_dh1024(void)

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-extended/ovs-dpdk/ovs-dpdk/0001-automake-remove-static-key-word.patch [new file with mode: 0644]
recipes-extended/ovs-dpdk/ovs-dpdk_2.9.bb

diff --git a/recipes-extended/ovs-dpdk/ovs-dpdk/0001-automake-remove-static-key-word.patch b/recipes-extended/ovs-dpdk/ovs-dpdk/0001-automake-remove-static-key-word.patch
new file mode 100644 (file)
index 0000000..e438e47
--- /dev/null
@@ -0,0 +1,27 @@
+From 9327cc35bc9e7040d9de743caebd0fee72bbd619 Mon Sep 17 00:00:00 2001
+From: Chunrong Guo <chunrong.guo@nxp.com>
+Date: Fri, 12 Oct 2018 10:53:00 +0800
+Subject: [PATCH] automake: remove static key word
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
+---
+ lib/automake.mk | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/automake.mk b/lib/automake.mk
+index 8ecad12..f9016a0 100644
+--- a/lib/automake.mk
++++ b/lib/automake.mk
+@@ -439,6 +439,7 @@ lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
+        openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout &&      \
+        openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout)        \
+       | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp &&  \
++        sed -i '/\(get_dh[0-9]*\)(void)/s/^static//' lib/dhparams.c.tmp && \
+       mv lib/dhparams.c.tmp lib/dhparams.c
+ else
+ lib_libopenvswitch_la_SOURCES += lib/stream-nossl.c
+-- 
+2.7.4
+
index ab351f6cbced66c426bacf6a16465b4a5a2de2a7..b1994c5c95a9d717386f3883527687bf48fcce8a 100644 (file)
@@ -7,7 +7,9 @@ RDEPENDS_${PN} = "bash libcrypto libssl python"
 
 inherit pythonnative
 
-SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/ovs-dpdk;nobranch=1"
+SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/ovs-dpdk;nobranch=1 \
+    file://0001-automake-remove-static-key-word.patch \
+"
 SRCREV = "24eec4133f03b0a5a8f903577bc87603577150c0"
 
 S = "${WORKDIR}/git"