Added common helper file for backwards compatibility. This file
includes all headers under helper/linux directory. It's installed
only with --enable-helper-linux configuration option.

Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org>
---
 helper/Makefile.am                |  3 +++
 helper/include/odp/helper/linux.h | 27 +++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 helper/include/odp/helper/linux.h

diff --git a/helper/Makefile.am b/helper/Makefile.am
index 5757c7c..b478dcd 100644
--- a/helper/Makefile.am
+++ b/helper/Makefile.am
@@ -32,6 +32,9 @@ helperinclude_HEADERS = \
                  $(srcdir)/include/odp/helper/udp.h
 
 if helper_linux
+helperinclude_HEADERS += \
+                 $(srcdir)/include/odp/helper/linux.h
+
 helperlinuxincludedir = $(includedir)/odp/helper/linux
 helperlinuxinclude_HEADERS = \
                  $(srcdir)/include/odp/helper/linux/pthread.h \
diff --git a/helper/include/odp/helper/linux.h 
b/helper/include/odp/helper/linux.h
new file mode 100644
index 0000000..396203a
--- /dev/null
+++ b/helper/include/odp/helper/linux.h
@@ -0,0 +1,27 @@
+/* Copyright (c) 2017, Linaro Limited
+ * All rights reserved
+ *
+ * SPDX-License-Identifier:     BSD-3-Clause
+ */
+
+/**
+ * @file
+ *
+ * All ODP Linux helpers
+ *
+ */
+
+#ifndef ODP_HELPER_LINUX_H_
+#define ODP_HELPER_LINUX_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <odp/helper/linux/process.h>
+#include <odp/helper/linux/pthread.h>
+
+#ifdef __cplusplus
+}
+#endif
+#endif
-- 
2.8.1

Reply via email to