linux-generic/test/Makefile: OOT ring build error

Message ID 1465157500-4788-1-git-send-email-anders.roxell@linaro.org
State New
Headers show

Commit Message

Anders Roxell June 5, 2016, 8:11 p.m.
Add a missing include path to be able to do out-of-tree builds.

Making all in ring
make[2]: Entering directory '/media/data/src/odp/crap/platform/linux-generic/test/ring'
  CC       libtestring_la-ring_stress.lo
  CC       libtestring_la-ring_basic.lo
  CC       ring_main.o
  CC       libtestring_la-ring_suites.lo
../../../../../platform/linux-generic/test/ring/ring_stress.c:21:30: fatal error: odp/helper/linux.h: No such file or directory
 #include <odp/helper/linux.h>
                              ^
compilation terminated.
Makefile:535: recipe for target 'libtestring_la-ring_stress.lo' failed
make[2]: *** [libtestring_la-ring_stress.lo] Error 1

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 platform/linux-generic/test/Makefile.inc | 1 +
 1 file changed, 1 insertion(+)

Comments

Anders Roxell June 5, 2016, 8:27 p.m. | #1
On 5 June 2016 at 22:11, Anders Roxell <anders.roxell@linaro.org> wrote:
> Add a missing include path to be able to do out-of-tree builds.
>
> Making all in ring
> make[2]: Entering directory '/media/data/src/odp/crap/platform/linux-generic/test/ring'
>   CC       libtestring_la-ring_stress.lo
>   CC       libtestring_la-ring_basic.lo
>   CC       ring_main.o
>   CC       libtestring_la-ring_suites.lo
> ../../../../../platform/linux-generic/test/ring/ring_stress.c:21:30: fatal error: odp/helper/linux.h: No such file or directory
>  #include <odp/helper/linux.h>
>                               ^
> compilation terminated.
> Makefile:535: recipe for target 'libtestring_la-ring_stress.lo' failed
> make[2]: *** [libtestring_la-ring_stress.lo] Error 1
>
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>  platform/linux-generic/test/Makefile.inc | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/platform/linux-generic/test/Makefile.inc b/platform/linux-generic/test/Makefile.inc
> index 2d1a683..d504f70 100644
> --- a/platform/linux-generic/test/Makefile.inc
> +++ b/platform/linux-generic/test/Makefile.inc
> @@ -12,4 +12,5 @@ INCCUNIT_COMMON = -I$(top_srcdir)/test/validation/common
>  INCODP = -I$(top_srcdir)/test \
>          -I$(top_srcdir)/platform/@with_platform@/include \
>          -I$(top_srcdir)/platform/@with_platform@/arch/$(ARCH_DIR) \
> +        -I$(top_srcdir)/helper/include \
>          -I$(top_srcdir)/include
> --
> 2.1.4
>

Urgh... Please ignore this patch.

Cheers,
Anders

Patch

diff --git a/platform/linux-generic/test/Makefile.inc b/platform/linux-generic/test/Makefile.inc
index 2d1a683..d504f70 100644
--- a/platform/linux-generic/test/Makefile.inc
+++ b/platform/linux-generic/test/Makefile.inc
@@ -12,4 +12,5 @@  INCCUNIT_COMMON = -I$(top_srcdir)/test/validation/common
 INCODP = -I$(top_srcdir)/test \
 	 -I$(top_srcdir)/platform/@with_platform@/include \
 	 -I$(top_srcdir)/platform/@with_platform@/arch/$(ARCH_DIR) \
+	 -I$(top_srcdir)/helper/include \
 	 -I$(top_srcdir)/include