]> code.ossystems Code Review - meta-freescale.git/commitdiff
ipc-ust: move SOC specific variables to qoriq-base.inc
authorZhenhua Luo <zhenhua.luo@freescale.com>
Wed, 2 Sep 2015 09:10:32 +0000 (17:10 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:18 +0000 (15:03 -0300)
* Add IPC_UST_SOC variables in qoriq-base.inc to define SOC type for ipc-ust
* Use IPC_UST_SOC in ipc-ust bb file

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/include/qoriq-base.inc
recipes-extended/ipc-ust/ipc-ust_git.bb

index 1b49cc42ca9b6b864220a5b0a5ea1e616aead09f..f85f18e16e3b748b347bef0bbcdf463ae0ba284d 100644 (file)
@@ -20,4 +20,8 @@ MACHINE_EXTRA_RRECOMMENDS ?= "udev-rules-qoriq"
 
 EXTRA_IMAGEDEPENDS += "u-boot cst-native"
 
+IPC_UST_SOC_bsc9131 = "B913x"
+IPC_UST_SOC_bsc9132 = "B913x"
+IPC_UST_SOC_b4 = "B4860"
+
 MACHINEOVERRIDES .= ":qoriq"
index 5ba3411fba58354e4ad62575203ae31defa91235..c39716b43218c4eb4e5dd606179e94229871eae6 100644 (file)
@@ -5,6 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10"
 
 require ipc.inc
 
+python () {
+    if not d.getVar("IPC_UST_SOC", True):
+        raise bb.parse.SkipPackage("IPC_UST_SOC is not defined in qoriq-base.inc")
+}
+
 S = "${WORKDIR}/git"
 
 # workaround for issue of parallel build, required a actual fix in ipc source
@@ -13,11 +18,7 @@ PARALLEL_MAKE = ""
 EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC}" AR="${AR}"'
 
 do_compile () {
-    case ${MACHINE} in
-        bsc9132qds|bsc9131rdb) SOC=B913x;;
-        b4860qds|b4420qds|b4860qds-64b) SOC=B4860;;
-    esac
-    oe_runmake ${SOC}=1
+    oe_runmake ${IPC_UST_SOC}=1
 }
 
 do_install () {