diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2013-04-17 15:58:18 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2013-04-19 10:29:26 -0300 |
commit | 1dff18eae170e2493140d82d8811a3198e2ebde4 (patch) | |
tree | ebafc8733da06262b5ddd2127f60afc15d456426 /recipes-kernel/linux/linux-imx.inc | |
parent | 8fddd6b33ac3a399bc0897a713226d00aab7dad3 (diff) | |
download | meta-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.inc | 17 |
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 | |||
13 | LOCALVERSION ?= "+yocto" | 13 | LOCALVERSION ?= "+yocto" |
14 | SCMVERSION ?= "y" | 14 | SCMVERSION ?= "y" |
15 | 15 | ||
16 | # Add imx-test support hacks | ||
17 | IMX_TEST_SUPPORT ?= "y" | ||
18 | |||
16 | SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git \ | 19 | SRC_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 |
53 | do_install_append() { | 56 | do_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 | ||
63 | sysroot_stage_all_append() { | 68 | sysroot_stage_all_append() { |