aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2014-07-29 14:13:43 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2014-07-29 18:13:49 +0400
commit2ab893ecab8bea6173678dec1996c5c6bff08d22 (patch)
treea87d7f3c76e21087c0700cb7b48cd212eaf051eb /platform
parentb8d16ef019afdd2371eca3645e61704098d19220 (diff)
keystone2: make use of variable --with-sdk-install-path
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Reviewed-and-Tested-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Diffstat (limited to 'platform')
-rw-r--r--platform/linux-keystone2/Makefile.am5
-rw-r--r--platform/linux-keystone2/README3
2 files changed, 7 insertions, 1 deletions
diff --git a/platform/linux-keystone2/Makefile.am b/platform/linux-keystone2/Makefile.am
index 12c9f5c9e..f9c32432f 100644
--- a/platform/linux-keystone2/Makefile.am
+++ b/platform/linux-keystone2/Makefile.am
@@ -9,6 +9,11 @@ nodist_pkgconfig_DATA = $(top_builddir)/pkgconfig/libodp.pc
.PHONY: pkgconfig/libodp.pc
KS2_PLATFORM = DEVICE_K2K
+if SDK_INSTALL_PATH_
+AM_CFLAGS += -I$(SDK_INSTALL_PATH)/usr/include
+
+AM_LDFLAGS += -L$(SDK_INSTALL_PATH)/usr/lib
+endif
PLAT_CFLAGS = -D$(KS2_PLATFORM)
PLAT_CFLAGS += -D_GNU_SOURCE -DEM_32_BIT -DTI_EM_CENTRAL_SCHED
diff --git a/platform/linux-keystone2/README b/platform/linux-keystone2/README
index 2f95b9856..244ac7906 100644
--- a/platform/linux-keystone2/README
+++ b/platform/linux-keystone2/README
@@ -33,5 +33,6 @@ Check README file in OpenEM root directory for build instructions.
3. Keystone2 ODP build
./bootstrap
-./configure --host=arm-linux-gnueabihf --with-platform=linux-keystone2 LDFLAGS=-L<oem-install-path>/usr/lib CFLAGS=-I<oem-install-path>/usr/include
+./configure --host=arm-linux-gnueabihf --with-platform=linux-keystone2 --with-sdk-install-path=<oem-install-path>
+# if openem is installed to the default path then you don't need to specify --with-sdk-install-path=<oem-install-path> when you run configure.
make