From efa3c73dd97c62ed2a4e6cf56db7f9dc7f349a37 Mon Sep 17 00:00:00 2001 From: Zhenhua Luo Date: Wed, 2 Sep 2015 17:10:32 +0800 Subject: ipc-ust: move SOC specific variables to qoriq-base.inc * 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 Signed-off-by: Otavio Salvador --- recipes-extended/ipc-ust/ipc-ust_git.bb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'recipes-extended/ipc-ust') diff --git a/recipes-extended/ipc-ust/ipc-ust_git.bb b/recipes-extended/ipc-ust/ipc-ust_git.bb index 5ba3411fb..c39716b43 100644 --- a/recipes-extended/ipc-ust/ipc-ust_git.bb +++ b/recipes-extended/ipc-ust/ipc-ust_git.bb @@ -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 () { -- cgit v1.2.3-54-g00ecf