Patchwork [meta-fsl-ppc,master] fmlib: fix compile error with linux-libc-headers

login
register
mail settings
Submitter chunrong guo
Date Sept. 30, 2013, 5:31 a.m.
Message ID <1380519066-4496-1-git-send-email-b40290@freescale.com>
Download mbox | patch
Permalink /patch/59131/
State Accepted
Delegated to: Zhenhua Luo
Headers show

Comments

chunrong guo - Sept. 30, 2013, 5:31 a.m.
From: Chunrong Guo <B40290@freescale.com>

    * fix the below error
    | NOTE: make -j 48 DESTDIR=/poky/build/tmp/work/ppce500mc-poky-linux/fmlib/git-r1/image PREFIX=/usr LIB_DEST_DIR=/usr/lib    | CROSS_COMPILE=powerpc-poky-linux- KERNEL_SRC=/poky/build/tmp/sysroots/p4080ds/usr libfm-ppce500mc.a
    | (CC)  libfm-ppce500mc.o
    | src/fm_lib.c:56:23: fatal error: fm_ioctls.h: No such file or directory

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 recipes-dpaa/fmlib/fmlib_git.bb |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Zhenhua Luo - Sept. 30, 2013, 6:44 a.m.
Applied in dora/master, thanks. 


Best Regards,

Zhenhua


> -----Original Message-----
> From: Guo Chunrong-B40290
> Sent: Monday, September 30, 2013 1:31 PM
> To: meta-freescale@yoctoproject.org
> Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290
> Subject: [meta-fsl-ppc master][PATCH] fmlib: fix compile error with
> linux-libc-headers
> 
> From: Chunrong Guo <B40290@freescale.com>
> 
>     * fix the below error
>     | NOTE: make -j 48 DESTDIR=/poky/build/tmp/work/ppce500mc-poky-
> linux/fmlib/git-r1/image PREFIX=/usr LIB_DEST_DIR=/usr/lib    |
> CROSS_COMPILE=powerpc-poky-linux-
> KERNEL_SRC=/poky/build/tmp/sysroots/p4080ds/usr libfm-ppce500mc.a
>     | (CC)  libfm-ppce500mc.o
>     | src/fm_lib.c:56:23: fatal error: fm_ioctls.h: No such file or
> directory
> 
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
>  recipes-dpaa/fmlib/fmlib_git.bb |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-
> dpaa/fmlib/fmlib_git.bb index 7a7b8f2..9d34fcc 100644
> --- a/recipes-dpaa/fmlib/fmlib_git.bb
> +++ b/recipes-dpaa/fmlib/fmlib_git.bb
> @@ -5,7 +5,6 @@ LIC_FILES_CHKSUM =
> "file://COPYING;md5=3f16fa8e677e45af3127c5c4bafc3c00"
> 
>  PR = "r1"
> 
> -DEPENDS = "linux-libc-headers"
>  DEPENDS_virtclass-native = ""
> 
>  SRC_URI = "git://git.freescale.com/ppc/sdk/fmlib.git"
> @@ -20,7 +19,7 @@ COMPATIBLE_HOST_fslmachine = ".*"
>  COMPATIBLE_HOST ?= "(none)"
> 
>  EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} LIB_DEST_DIR=${libdir} \
> -        CROSS_COMPILE=${TARGET_PREFIX}
> KERNEL_SRC=${STAGING_EXECPREFIXDIR}"
> +        CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_KERNEL_DIR}"
> 
>  do_compile () {
>        oe_runmake libfm-${TARGET_ARCH_FMLIB}.a
> --
> 1.7.5.4

Patch

diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-dpaa/fmlib/fmlib_git.bb
index 7a7b8f2..9d34fcc 100644
--- a/recipes-dpaa/fmlib/fmlib_git.bb
+++ b/recipes-dpaa/fmlib/fmlib_git.bb
@@ -5,7 +5,6 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=3f16fa8e677e45af3127c5c4bafc3c00"
 
 PR = "r1"
 
-DEPENDS = "linux-libc-headers"
 DEPENDS_virtclass-native = ""
 
 SRC_URI = "git://git.freescale.com/ppc/sdk/fmlib.git"
@@ -20,7 +19,7 @@  COMPATIBLE_HOST_fslmachine = ".*"
 COMPATIBLE_HOST ?= "(none)"
 
 EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} LIB_DEST_DIR=${libdir} \
-        CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_EXECPREFIXDIR}"
+        CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
 do_compile () {
       oe_runmake libfm-${TARGET_ARCH_FMLIB}.a