Patchwork [meta-fsl-ppc,master/dylan] fmc: deploy header and library into sysroot

login
register
mail settings
Submitter Zhenhua Luo
Date May 2, 2013, 3:56 a.m.
Message ID <1367466977-19025-1-git-send-email-zhenhua.luo@freescale.com>
Download mbox | patch
Permalink /patch/49231/
State Accepted
Headers show

Comments

Zhenhua Luo - May 2, 2013, 3:56 a.m.
fmc.h and libfmc.a might be depended by other packages

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 recipes-ucode/fmc/fmc_git.bb |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
Otavio Salvador - May 2, 2013, 1:01 p.m.
On Thu, May 2, 2013 at 12:56 AM, Zhenhua Luo <zhenhua.luo@freescale.com> wrote:
> fmc.h and libfmc.a might be depended by other packages
>
> Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>

The change is right but it needs to go to master before.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
Zhenhua Luo - May 3, 2013, 2:26 p.m.
Applied in both master and dylan. 


Best Regards,

Zhenhua


> -----Original Message-----
> From: otavio.salvador@gmail.com [mailto:otavio.salvador@gmail.com] On
> Behalf Of Otavio Salvador
> Sent: Thursday, May 02, 2013 9:02 PM
> To: Luo Zhenhua-B19537
> Cc: meta-freescale@yoctoproject.org; Yu Zongchun-B40527
> Subject: Re: [meta-freescale] [meta-fsl-ppc master/dylan][PATCH] fmc:
> deploy header and library into sysroot
> 
> On Thu, May 2, 2013 at 12:56 AM, Zhenhua Luo <zhenhua.luo@freescale.com>
> wrote:
> > fmc.h and libfmc.a might be depended by other packages
> >
> > Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
> 
> The change is right but it needs to go to master before.
> 
> --
> Otavio Salvador                             O.S. Systems
> E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
> Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

Patch

diff --git a/recipes-ucode/fmc/fmc_git.bb b/recipes-ucode/fmc/fmc_git.bb
index 4f85216..2e85a8b 100644
--- a/recipes-ucode/fmc/fmc_git.bb
+++ b/recipes-ucode/fmc/fmc_git.bb
@@ -3,7 +3,7 @@  SECTION = "fmc"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=a504ab5a8ff235e67c7301214749346c"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "git://git.freescale.com/ppc/sdk/fmc.git"
 SRCREV = "6db53fae9dfe72db0312a383733e0d3598aad3f2"
@@ -21,6 +21,8 @@  EXTRA_OEMAKE_virtclass-native = 'FMCHOSTMODE=1 FMD_USPACE_HEADER_PATH="${STAGING
     FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \
     TCLAP_HEADER_PATH="${STAGING_INCDIR}" '
 
+PARALLEL_MAKE = ""
+
 do_compile () {
     if [ "b4860qds" = "${MACHINE}" ] || [ "b4420qds" = "${MACHINE}" ];then
         EXTRA_OEMAKE_PLATFORM="b4860qds"
@@ -39,9 +41,13 @@  do_install () {
     install -m 755 ${S}/source/fmc ${D}/${bindir}/fmc
 
     install -d ${D}/etc/fmc/config
-    install -m 644 ${S}/etc/fmc/config/hxs_pdl_v3.xml ${D}/etc/fmc/config
-}
+    install -m 644 ${S}/etc/fmc/config/hxs_pdl_v3.xml ${D}/etc/fmc/configa
 
-PARALLEL_MAKE = ""
+    install -d ${D}/${includedir}
+    install ${S}/source/fmc.h ${D}/${includedir}
+
+    install -d ${D}/${libdir}
+    install ${S}/source/libfmc.a ${D}/${libdir}
+}
 
 BBCLASSEXTEND = "native"