diff mbox

[PATCHv2,1/2] linux-generic: test: adding odp includes

Message ID 1456930323-45141-2-git-send-email-christophe.milard@linaro.org
State Accepted
Commit d533b6451475bc5ba940d21dbc0de00ce313c5c8
Headers show

Commit Message

Christophe Milard March 2, 2016, 2:52 p.m. UTC
A new Makefile.inc is created, defining common includes that
linux specific tests will need if they need to build with ODP.
Tests just acting as wrappers around platform agnostic tests will not need
these defines, whereas tests building ODP executable will.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/test/Makefile.inc | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 platform/linux-generic/test/Makefile.inc
diff mbox

Patch

diff --git a/platform/linux-generic/test/Makefile.inc b/platform/linux-generic/test/Makefile.inc
new file mode 100644
index 0000000..9a7cb6a
--- /dev/null
+++ b/platform/linux-generic/test/Makefile.inc
@@ -0,0 +1,16 @@ 
+# The following definitions may be used by platform tests that wish to
+# build specific ODP applications, (i.e those whose do more than validation
+# test wrapping)
+
+AM_LDFLAGS += -static
+
+LIBCUNIT_COMMON = $(top_builddir)/test/validation/common/libcunit_common.la
+LIB   = $(top_builddir)/lib
+LIBODP = $(LIB)/libodphelper.la $(LIB)/libodp.la
+
+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) \
+	 -I$(top_srcdir)/include \
+	 -I$(top_srcdir)/helper/include