Patchwork [meta-fsl-arm,1] imx-test: Fix the compile command

login
register
mail settings
Submitter Daiane Angolini
Date June 12, 2013, 6:07 p.m.
Message ID <1371060461-24996-1-git-send-email-daiane.angolini@freescale.com>
Download mbox | patch
Permalink /patch/51627/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Daiane Angolini - June 12, 2013, 6:07 p.m.
It includes the same INCLUDE_DIR from imx-lib

Change-Id: Ie2a5aeff621a6c333e14d24a8c0e78a7b72ba50c
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
---
 recipes-bsp/imx-test/imx-test.inc |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Daiane Angolini - June 27, 2013, 1:52 p.m.
On Wed, Jun 12, 2013 at 3:07 PM, Daiane Angolini
<daiane.angolini@freescale.com> wrote:
> It includes the same INCLUDE_DIR from imx-lib
>
> Change-Id: Ie2a5aeff621a6c333e14d24a8c0e78a7b72ba50c
> Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>

Otavio,

Could you, please, apply this patch on dylan?

Daiane

> ---
>  recipes-bsp/imx-test/imx-test.inc |    7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
> index 20c65ec..ab0c6e2 100644
> --- a/recipes-bsp/imx-test/imx-test.inc
> +++ b/recipes-bsp/imx-test/imx-test.inc
> @@ -15,10 +15,15 @@ SRC_URI = "${FSL_MIRROR}/imx-test-${PV}.tar.gz \
>             file://clocks.sh \
>             file://mxc_x11_test-exclude-IMX-5-6-platforms.patch"
>
> +INCLUDE_DIR="-I${STAGING_INCDIR} \
> +             -I${STAGING_KERNEL_DIR}/include \
> +             -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
> +             -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include"
>
>  do_compile() {
>          LDFLAGS="" make PLATFORM=${PLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \
> -        KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1
> +        KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1 \
> +        INC="${INCLUDE_DIR}"
>  }
>
>  do_install() {
> --
> 1.7.10.4
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
Otavio Salvador - June 27, 2013, 2:22 p.m.
On Thu, Jun 27, 2013 at 10:52 AM, Daiane Angolini <daiane.list@gmail.com> wrote:
> On Wed, Jun 12, 2013 at 3:07 PM, Daiane Angolini
> <daiane.angolini@freescale.com> wrote:
>> It includes the same INCLUDE_DIR from imx-lib
>>
>> Change-Id: Ie2a5aeff621a6c333e14d24a8c0e78a7b72ba50c
>> Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
>
> Otavio,
>
> Could you, please, apply this patch on dylan?

Applied.

--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

Patch

diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
index 20c65ec..ab0c6e2 100644
--- a/recipes-bsp/imx-test/imx-test.inc
+++ b/recipes-bsp/imx-test/imx-test.inc
@@ -15,10 +15,15 @@  SRC_URI = "${FSL_MIRROR}/imx-test-${PV}.tar.gz \
            file://clocks.sh \
            file://mxc_x11_test-exclude-IMX-5-6-platforms.patch"
 
+INCLUDE_DIR="-I${STAGING_INCDIR} \
+             -I${STAGING_KERNEL_DIR}/include \
+             -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
+             -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include"
 
 do_compile() {
         LDFLAGS="" make PLATFORM=${PLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \
-        KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1
+        KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1 \
+        INC="${INCLUDE_DIR}"
 }
 
 do_install() {