Message ID | 1406630637-26294-3-git-send-email-anders.roxell@linaro.org |
---|---|
State | New |
Headers | show |
On 07/29/2014 01:43 PM, Anders Roxell wrote: > Signed-off-by: Anders Roxell <anders.roxell@linaro.org> > --- > platform/linux-keystone2/Makefile.am | 5 +++++ > platform/linux-keystone2/README | 3 ++- > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/platform/linux-keystone2/Makefile.am b/platform/linux-keystone2/Makefile.am > index 12c9f5c..2366ec4 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_ > +KS2_PLATFORM += -I$(SDK_INSTALL_PATH)/usr/include KS2_PLATFORM should contain a type of device. Change it here to AM_CFLAGS. Otherwise Reviewed-and-Tested-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> > + > +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 2f95b98..244ac79 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 >
diff --git a/platform/linux-keystone2/Makefile.am b/platform/linux-keystone2/Makefile.am index 12c9f5c..2366ec4 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_ +KS2_PLATFORM += -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 2f95b98..244ac79 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
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- platform/linux-keystone2/Makefile.am | 5 +++++ platform/linux-keystone2/README | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-)