]> code.ossystems Code Review - meta-freescale.git/commitdiff
ipc-module: define SOC outside of do_compile
authorTing Liu <ting.liu@nxp.com>
Sat, 9 Jan 2016 06:43:51 +0000 (14:43 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:24 +0000 (15:03 -0300)
the SOC need to be availble for all tasks as it used in EXTRA_OEMAKE.
otherwise, make clean will break

Signed-off-by: Ting Liu <ting.liu@nxp.com>
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-kernel/kernel-modules/kernel-module-ipc.inc

index a496ab6df75112997b00fa9616ba96e23f1e0e05..89330d177fcb0a3f76cd381314d5191647a8db9b 100644 (file)
@@ -9,6 +9,11 @@ inherit module qoriq_build_64bit_kernel
 
 S = "${WORKDIR}/git"
 
+SOC ?= ""
+SOC_b4 = "B4860"
+SOC_bsc9131 = "B913x"
+SOC_bsc9132 = "B913x"
+
 do_configure[depends] += "virtual/kernel:do_shared_workdir"
 do_configure_prepend() {
     sed -i 's,$(KERNEL_DIR)/.config,$(KBUILD_OUTPUT)/.config,' ${S}/kernel/Makefile
@@ -16,10 +21,6 @@ do_configure_prepend() {
 
 do_compile_prepend () {
     cd ${S}/kernel
-    case ${MACHINE} in
-        bsc9132qds|bsc9131rdb) SOC=B913x;;
-        b4860qds|b4420qds) SOC=B4860;;
-    esac
 }
 
 INHIBIT_PACKAGE_STRIP = "1"