Patchwork [meta-fsl-ppc,3/6] fmlib: use SOC_FAMILY as override

login
register
mail settings
Submitter Ting Liu
Date July 24, 2014, 7:48 a.m.
Message ID <1406188097-6533-3-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/76551/
State Accepted
Headers show

Comments

Ting Liu - July 24, 2014, 7:48 a.m.
From: Ting Liu <b28495@freescale.com>

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 recipes-dpaa/fmlib/fmlib_git.bb |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

Patch

diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-dpaa/fmlib/fmlib_git.bb
index d59d6ac..04b94a3 100644
--- a/recipes-dpaa/fmlib/fmlib_git.bb
+++ b/recipes-dpaa/fmlib/fmlib_git.bb
@@ -22,12 +22,10 @@  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"
 do_compile () {
-    if [ "t1040" = "${SOC_FAMILY}" -o "t1042" = "${SOC_FAMILY}" ];then
-        oe_runmake libfm-${TARGET_ARCH_FMLIB}-fmv3.a
-    else
-        oe_runmake libfm-${TARGET_ARCH_FMLIB}.a
-    fi
+    oe_runmake ${COMPILE_TARGET}
 }
 
 do_compile_virtclass-native () {