* 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>
EXTRA_IMAGEDEPENDS += "u-boot cst-native"
+IPC_UST_SOC_bsc9131 = "B913x"
+IPC_UST_SOC_bsc9132 = "B913x"
+IPC_UST_SOC_b4 = "B4860"
+
MACHINEOVERRIDES .= ":qoriq"
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
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 () {