aboutsummaryrefslogtreecommitdiff
path: root/helper
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2019-09-24 10:25:47 +0300
committerMatias Elo <matias.elo@nokia.com>2019-11-21 14:45:29 +0200
commit49349224a0256ad109535b4731dd562f35ef00ae (patch)
treed57a5c783abe852b6536bc742e5fe94ca75bd889 /helper
parent444eed490f4bdbe5303ccdb8d35c51d82f236860 (diff)
linux-gen: include config.h header in install directory
Previously, config.h header was not included in install dir. This caused a compilation failure when an application tried to include ODP helper headers. config.h has been moved to include/odp subdirectory to avoid naming conflicts and unnecessary includes have been removed. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reported-by: Mikko Parpala <mikko.parpala@nokia.com>
Diffstat (limited to 'helper')
-rw-r--r--helper/chksum.c2
-rw-r--r--helper/cuckootable.c2
-rw-r--r--helper/eth.c2
-rw-r--r--helper/hashtable.c2
-rw-r--r--helper/include/odp/helper/odph_debug.h2
-rw-r--r--helper/ip.c2
-rw-r--r--helper/iplookuptable.c2
-rw-r--r--helper/lineartable.c2
-rw-r--r--helper/linux/thread.c2
-rw-r--r--helper/test/chksum.c2
-rw-r--r--helper/test/cuckootable.c2
-rw-r--r--helper/test/debug.c2
-rw-r--r--helper/test/iplookuptable.c2
-rw-r--r--helper/test/linux/process.c2
-rw-r--r--helper/test/linux/pthread.c2
-rw-r--r--helper/test/odpthreads.c2
-rw-r--r--helper/test/parse.c2
-rw-r--r--helper/test/table.c2
-rw-r--r--helper/test/version.c2
-rw-r--r--helper/threads.c2
20 files changed, 2 insertions, 38 deletions
diff --git a/helper/chksum.c b/helper/chksum.c
index c3e712421..e9ef19a62 100644
--- a/helper/chksum.c
+++ b/helper/chksum.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <odp.h>
#include <odp/helper/ip.h>
#include <odp/helper/udp.h>
diff --git a/helper/cuckootable.c b/helper/cuckootable.c
index 5609e6906..237c2f297 100644
--- a/helper/cuckootable.c
+++ b/helper/cuckootable.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
/*-
* BSD LICENSE
*
diff --git a/helper/eth.c b/helper/eth.c
index d46283b23..86a0be6f5 100644
--- a/helper/eth.c
+++ b/helper/eth.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <odp/helper/eth.h>
#include <stdio.h>
diff --git a/helper/hashtable.c b/helper/hashtable.c
index 496bca5e6..ac11acb15 100644
--- a/helper/hashtable.c
+++ b/helper/hashtable.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <stdio.h>
#include <string.h>
#include <malloc.h>
diff --git a/helper/include/odp/helper/odph_debug.h b/helper/include/odp/helper/odph_debug.h
index ef520497b..370a0fa12 100644
--- a/helper/include/odp/helper/odph_debug.h
+++ b/helper/include/odp/helper/odph_debug.h
@@ -15,7 +15,7 @@
#ifndef ODPH_DEBUG_H_
#define ODPH_DEBUG_H_
-#include "config.h"
+#include <odp/config.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/helper/ip.c b/helper/ip.c
index 8ecda69e0..9e02892aa 100644
--- a/helper/ip.c
+++ b/helper/ip.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <odp/helper/ip.h>
#include <stdio.h>
diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c
index 1b5538ab8..c02ee5415 100644
--- a/helper/iplookuptable.c
+++ b/helper/iplookuptable.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <string.h>
#include <stdint.h>
#include <errno.h>
diff --git a/helper/lineartable.c b/helper/lineartable.c
index 864c7973f..0999569cc 100644
--- a/helper/lineartable.c
+++ b/helper/lineartable.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <stdio.h>
#include <string.h>
#include <malloc.h>
diff --git a/helper/linux/thread.c b/helper/linux/thread.c
index eecd6fed1..c7ed24512 100644
--- a/helper/linux/thread.c
+++ b/helper/linux/thread.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
diff --git a/helper/test/chksum.c b/helper/test/chksum.c
index a569f2394..d14ee20d1 100644
--- a/helper/test/chksum.c
+++ b/helper/test/chksum.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <odp_api.h>
#include <odp/helper/odph_api.h>
diff --git a/helper/test/cuckootable.c b/helper/test/cuckootable.c
index 22df27f3d..d11e944f9 100644
--- a/helper/test/cuckootable.c
+++ b/helper/test/cuckootable.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
/*-
* BSD LICENSE
*
diff --git a/helper/test/debug.c b/helper/test/debug.c
index e20fd325a..48d4462c9 100644
--- a/helper/test/debug.c
+++ b/helper/test/debug.c
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
+#include <odp/config.h>
#include <odp_api.h>
#include <odp/helper/odph_api.h>
diff --git a/helper/test/iplookuptable.c b/helper/test/iplookuptable.c
index 8ffc75efe..bd724b1b7 100644
--- a/helper/test/iplookuptable.c
+++ b/helper/test/iplookuptable.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <stdio.h>
#include <stdint.h>
#include <string.h>
diff --git a/helper/test/linux/process.c b/helper/test/linux/process.c
index 0bc53e5a7..f57b5ab8a 100644
--- a/helper/test/linux/process.c
+++ b/helper/test/linux/process.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <odp_api.h>
#include <odp/helper/odph_api.h>
#include <odp/helper/linux/pthread.h>
diff --git a/helper/test/linux/pthread.c b/helper/test/linux/pthread.c
index e14d5cdf8..770308faa 100644
--- a/helper/test/linux/pthread.c
+++ b/helper/test/linux/pthread.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <odp_api.h>
#include <odp/helper/odph_api.h>
#include <odp/helper/linux/pthread.h>
diff --git a/helper/test/odpthreads.c b/helper/test/odpthreads.c
index 83f9476fd..1540ad503 100644
--- a/helper/test/odpthreads.c
+++ b/helper/test/odpthreads.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
/*
* This program tests the ability of the linux helper to create ODP threads,
* either implemented as linux pthreads or as linux processes, depending on
diff --git a/helper/test/parse.c b/helper/test/parse.c
index 5f8c5846a..3097ae476 100644
--- a/helper/test/parse.c
+++ b/helper/test/parse.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <odp_api.h>
#include <odp/helper/odph_api.h>
diff --git a/helper/test/table.c b/helper/test/table.c
index 1a889392c..df7a23d6e 100644
--- a/helper/test/table.c
+++ b/helper/test/table.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier:BSD-3-Clause
*/
-#include "config.h"
-
#include <odp_api.h>
#include <odp/helper/odph_api.h>
diff --git a/helper/test/version.c b/helper/test/version.c
index 22ee2955d..925d305da 100644
--- a/helper/test/version.c
+++ b/helper/test/version.c
@@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#include <odp_api.h>
#include <odp/helper/odph_api.h>
diff --git a/helper/threads.c b/helper/threads.c
index 37a0c25db..431712d93 100644
--- a/helper/threads.c
+++ b/helper/threads.c
@@ -5,8 +5,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif