From d61b7fd8fd6601ffa1529fedb60b16416ca2c7b6 Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Tue, 22 Dec 2015 16:50:19 +0800 Subject: ipc-module: define SOC outside of do_compile 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 Signed-off-by: Zhenhua Luo --- recipes-kernel/ipc/ipc-modules.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes-kernel/ipc/ipc-modules.inc b/recipes-kernel/ipc/ipc-modules.inc index 79ba7ef..073e72c 100644 --- a/recipes-kernel/ipc/ipc-modules.inc +++ b/recipes-kernel/ipc/ipc-modules.inc @@ -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,11 +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" - -- cgit v1.2.3-54-g00ecf