diff mbox

[PATCHv16,07/10] helper: move odp pause to installed helper

Message ID 1448278144-31994-8-git-send-email-maxim.uvarov@linaro.org
State Superseded
Headers show

Commit Message

Maxim Uvarov Nov. 23, 2015, 11:29 a.m. UTC
ipc pktio depends on ring which depends on pause. Move
pause to installed helpers to support out of tree builds.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 helper/Makefile.am                                  | 4 ++--
 helper/{odph_pause.h => include/odp/helper/pause.h} | 0
 helper/ring.c                                       | 2 +-
 helper/test/pause.c                                 | 2 +-
 platform/linux-generic/Makefile.am                  | 1 +
 5 files changed, 5 insertions(+), 4 deletions(-)
 rename helper/{odph_pause.h => include/odp/helper/pause.h} (100%)
diff mbox

Patch

diff --git a/helper/Makefile.am b/helper/Makefile.am
index e72507e..f045393 100644
--- a/helper/Makefile.am
+++ b/helper/Makefile.am
@@ -18,11 +18,11 @@  helperinclude_HEADERS = \
 		  $(srcdir)/include/odp/helper/ipsec.h\
 		  $(srcdir)/include/odp/helper/tcp.h\
 		  $(srcdir)/include/odp/helper/table.h\
-		  $(srcdir)/include/odp/helper/udp.h
+		  $(srcdir)/include/odp/helper/udp.h \
+		  $(srcdir)/include/odp/helper/pause.h
 
 noinst_HEADERS = \
 		 $(srcdir)/odph_debug.h \
-		 $(srcdir)/odph_pause.h \
 		 $(srcdir)/odph_hashtable.h \
 		 $(srcdir)/odph_lineartable.h \
 		 $(srcdir)/odph_list_internal.h
diff --git a/helper/odph_pause.h b/helper/include/odp/helper/pause.h
similarity index 100%
rename from helper/odph_pause.h
rename to helper/include/odp/helper/pause.h
diff --git a/helper/ring.c b/helper/ring.c
index e113606..e37d33e 100644
--- a/helper/ring.c
+++ b/helper/ring.c
@@ -71,13 +71,13 @@ 
 
 #include <odp/shared_memory.h>
 #include <odp/spinlock.h>
-#include "odph_pause.h"
 #include <odp/align.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <string.h>
 #include "odph_debug.h"
 #include <odp/rwlock.h>
+#include <odp/helper/pause.h>
 #include <odp/helper/ring.h>
 
 static TAILQ_HEAD(, odph_ring) odp_ring_list;
diff --git a/helper/test/pause.c b/helper/test/pause.c
index f5f5da3..c5a5f1a 100644
--- a/helper/test/pause.c
+++ b/helper/test/pause.c
@@ -5,7 +5,7 @@ 
  */
 
 #include <test_debug.h>
-#include "../odph_pause.h"
+#include <odp/helper/pause.h>
 
 int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED)
 {
diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am
index 610e04d..d847d6a 100644
--- a/platform/linux-generic/Makefile.am
+++ b/platform/linux-generic/Makefile.am
@@ -6,6 +6,7 @@  include $(top_srcdir)/platform/Makefile.inc
 AM_CFLAGS +=  -I$(srcdir)/include
 AM_CFLAGS +=  -I$(top_srcdir)/include
 AM_CFLAGS +=  -I$(top_srcdir)/helper/include
+AM_CFLAGS +=  -I$(top_srcdir)/helper
 
 include_HEADERS = \
 		  $(top_srcdir)/include/odp.h