summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-imx.inc
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-04-17 15:58:18 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2013-04-19 10:29:26 -0300
commit1dff18eae170e2493140d82d8811a3198e2ebde4 (patch)
treeebafc8733da06262b5ddd2127f60afc15d456426 /recipes-kernel/linux/linux-imx.inc
parent8fddd6b33ac3a399bc0897a713226d00aab7dad3 (diff)
downloadmeta-fsl-arm-1dff18eae170e2493140d82d8811a3198e2ebde4.tar.gz
linux-fslc: Refactor to use linux-imx.inc and avoid duplication of code
Provides a new linux-fslc.inc file which abstracts the specific changes for the linux-fslc based kernels. A new variable has been add to linux-imx.inc to allow to skip the 'imx-test' specific hacks after kernel install as 'imx-test' is not supported for Linux mainline. Change-Id: I309ee9fa70f359e4d3b03af6cb68bf15d0745257 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/linux/linux-imx.inc')
-rw-r--r--recipes-kernel/linux/linux-imx.inc17
1 files changed, 11 insertions, 6 deletions
diff --git a/recipes-kernel/linux/linux-imx.inc b/recipes-kernel/linux/linux-imx.inc
index 9020f57..6a8eeb8 100644
--- a/recipes-kernel/linux/linux-imx.inc
+++ b/recipes-kernel/linux/linux-imx.inc
@@ -13,6 +13,9 @@ inherit kernel
13LOCALVERSION ?= "+yocto" 13LOCALVERSION ?= "+yocto"
14SCMVERSION ?= "y" 14SCMVERSION ?= "y"
15 15
16# Add imx-test support hacks
17IMX_TEST_SUPPORT ?= "y"
18
16SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git \ 19SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git \
17 file://defconfig \ 20 file://defconfig \
18" 21"
@@ -51,13 +54,15 @@ do_configure_prepend() {
51 54
52# install nedded headers for imx-test compilation 55# install nedded headers for imx-test compilation
53do_install_append() { 56do_install_append() {
54 # bounds.h may be used by a module and is currently missing 57 if [ "${IMX_TEST_SUPPORT}" = "y" ]; then
55 if [ -d include/generated ]; then 58 # bounds.h may be used by a module and is currently missing
56 cp include/generated/* $kerneldir/include/generated/ 59 if [ -d include/generated ]; then
57 fi 60 cp include/generated/* $kerneldir/include/generated/
61 fi
58 62
59 # Host architecture object file 63 # Host architecture object file
60 rm -f $kerneldir/scripts/kconfig/kxgettext.o 64 rm -f $kerneldir/scripts/kconfig/kxgettext.o
65 fi
61} 66}
62 67
63sysroot_stage_all_append() { 68sysroot_stage_all_append() {