diff options
author | Ting Liu <ting.liu@nxp.com> | 2016-01-09 14:43:51 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-04-19 15:03:24 -0300 |
commit | 192b7ceeeac507817cf845b29c62aed44aa9a5b3 (patch) | |
tree | 8330cc6ab989a79cd9a5a956360d3951be3bcfe7 /recipes-kernel/kernel-modules/kernel-module-ipc.inc | |
parent | db1b82c36ff4b608b530b8c1336a48c2c4098056 (diff) | |
download | meta-freescale-192b7ceeeac507817cf845b29c62aed44aa9a5b3.tar.gz |
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 <ting.liu@nxp.com>
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/kernel-modules/kernel-module-ipc.inc')
-rw-r--r-- | recipes-kernel/kernel-modules/kernel-module-ipc.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes-kernel/kernel-modules/kernel-module-ipc.inc b/recipes-kernel/kernel-modules/kernel-module-ipc.inc index a496ab6d..89330d17 100644 --- a/recipes-kernel/kernel-modules/kernel-module-ipc.inc +++ b/recipes-kernel/kernel-modules/kernel-module-ipc.inc | |||
@@ -9,6 +9,11 @@ inherit module qoriq_build_64bit_kernel | |||
9 | 9 | ||
10 | S = "${WORKDIR}/git" | 10 | S = "${WORKDIR}/git" |
11 | 11 | ||
12 | SOC ?= "" | ||
13 | SOC_b4 = "B4860" | ||
14 | SOC_bsc9131 = "B913x" | ||
15 | SOC_bsc9132 = "B913x" | ||
16 | |||
12 | do_configure[depends] += "virtual/kernel:do_shared_workdir" | 17 | do_configure[depends] += "virtual/kernel:do_shared_workdir" |
13 | do_configure_prepend() { | 18 | do_configure_prepend() { |
14 | sed -i 's,$(KERNEL_DIR)/.config,$(KBUILD_OUTPUT)/.config,' ${S}/kernel/Makefile | 19 | sed -i 's,$(KERNEL_DIR)/.config,$(KBUILD_OUTPUT)/.config,' ${S}/kernel/Makefile |
@@ -16,10 +21,6 @@ do_configure_prepend() { | |||
16 | 21 | ||
17 | do_compile_prepend () { | 22 | do_compile_prepend () { |
18 | cd ${S}/kernel | 23 | cd ${S}/kernel |
19 | case ${MACHINE} in | ||
20 | bsc9132qds|bsc9131rdb) SOC=B913x;; | ||
21 | b4860qds|b4420qds) SOC=B4860;; | ||
22 | esac | ||
23 | } | 24 | } |
24 | 25 | ||
25 | INHIBIT_PACKAGE_STRIP = "1" | 26 | INHIBIT_PACKAGE_STRIP = "1" |