Patchwork [meta-fsl-ppc] fmlib: use SOC_FAMILY as override in do_install

login
register
mail settings
Submitter Ting Liu
Date Aug. 7, 2014, 2:01 a.m.
Message ID <1407376888-45638-1-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/77423/
State Accepted
Headers show

Comments

Ting Liu - Aug. 7, 2014, 2:01 a.m.
From: Ting Liu <ting.liu@freescale.com>

In previous commit, do_install was missed. update it.

Signed-off-by: Ting Liu <ting.liu@freescale.com>
---
 recipes-dpaa/fmlib/fmlib_git.bb | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

Patch

diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-dpaa/fmlib/fmlib_git.bb
index 04b94a3..ec03886 100644
--- a/recipes-dpaa/fmlib/fmlib_git.bb
+++ b/recipes-dpaa/fmlib/fmlib_git.bb
@@ -22,21 +22,17 @@  COMPATIBLE_HOST ?= "(none)"
 EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} LIB_DEST_DIR=${libdir} \
         CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
-COMPILE_TARGET = "libfm-${TARGET_ARCH_FMLIB}.a"
-COMPILE_TARGET_t1 = "libfm-${TARGET_ARCH_FMLIB}-fmv3.a"
+FMLIB_TARGET = "libfm-${TARGET_ARCH_FMLIB}"
+FMLIB_TARGET_t1 = "libfm-${TARGET_ARCH_FMLIB}-fmv3"
 do_compile () {
-    oe_runmake ${COMPILE_TARGET}
+    oe_runmake ${FMLIB_TARGET}.a
 }
 
 do_compile_virtclass-native () {
 }
 
 do_install () {
-    if [ "t1040" = "${SOC_FAMILY}" -o "t1042" = "${SOC_FAMILY}" ];then
-        oe_runmake install-libfm-${TARGET_ARCH_FMLIB}-fmv3
-    else
-        oe_runmake install-libfm-${TARGET_ARCH_FMLIB}
-    fi
+    oe_runmake install-${FMLIB_TARGET}
 }
 
 do_install_virtclass-native () {