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 | |
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')
-rw-r--r-- | recipes-kernel/linux/linux-fslc.inc | 20 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-fslc_3.8.bb | 25 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-imx.inc | 17 |
3 files changed, 32 insertions, 30 deletions
diff --git a/recipes-kernel/linux/linux-fslc.inc b/recipes-kernel/linux/linux-fslc.inc new file mode 100644 index 0000000..6ebf833 --- /dev/null +++ b/recipes-kernel/linux/linux-fslc.inc | |||
@@ -0,0 +1,20 @@ | |||
1 | # Copyright (C) 2012-2013 O.S. Systems Software LTDA. | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | DESCRIPTION = "Freescale Community mainline based Linux kernel" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
7 | DEPENDS += "lzop-native" | ||
8 | PROVIDES = "virtual/kernel linux-mainline" | ||
9 | |||
10 | inherit kernel | ||
11 | |||
12 | require recipes-kernel/linux/linux-imx.inc | ||
13 | require recipes-kernel/linux/linux-dtb.inc | ||
14 | |||
15 | # Avoid imx-test installation hacks | ||
16 | IMX_TEST_SUPPORT = "n" | ||
17 | |||
18 | SRC_URI = "git://github.com/Freescale/linux-mainline.git \ | ||
19 | file://defconfig" | ||
20 | LOCALVERSION = "-fslc" | ||
diff --git a/recipes-kernel/linux/linux-fslc_3.8.bb b/recipes-kernel/linux/linux-fslc_3.8.bb index 06f6dfb..68fa8e1 100644 --- a/recipes-kernel/linux/linux-fslc_3.8.bb +++ b/recipes-kernel/linux/linux-fslc_3.8.bb | |||
@@ -1,15 +1,7 @@ | |||
1 | # Copyright (C) 2012-2013 O.S. Systems Software LTDA. | 1 | # Copyright (C) 2012-2013 O.S. Systems Software LTDA. |
2 | # Released under the MIT license (see COPYING.MIT for the terms) | 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
3 | 3 | ||
4 | DESCRIPTION = "Linux mainline kernel" | 4 | include linux-fslc.inc |
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
7 | DEPENDS += "lzop-native" | ||
8 | PROVIDES = "virtual/kernel linux-mainline" | ||
9 | |||
10 | inherit kernel | ||
11 | |||
12 | require recipes-kernel/linux/linux-dtb.inc | ||
13 | 5 | ||
14 | PV = "3.8+git${SRCPV}" | 6 | PV = "3.8+git${SRCPV}" |
15 | PR = "r5" | 7 | PR = "r5" |
@@ -17,19 +9,4 @@ PR = "r5" | |||
17 | # patches-3.8 | 9 | # patches-3.8 |
18 | SRCREV = "9674b8d96fca62bc47be48fd857591dcfca874b1" | 10 | SRCREV = "9674b8d96fca62bc47be48fd857591dcfca874b1" |
19 | 11 | ||
20 | SRC_URI = "git://github.com/Freescale/linux-mainline.git \ | ||
21 | \ | ||
22 | file://defconfig" | ||
23 | |||
24 | S = "${WORKDIR}/git" | ||
25 | |||
26 | do_configure_append () { | ||
27 | # Ensure we have a proper GIT hash in kernel version | ||
28 | rm ${S}/.scmversion | ||
29 | } | ||
30 | |||
31 | # We need to pass it as param since kernel might support more then one | ||
32 | # machine, with different entry points | ||
33 | EXTRA_OEMAKE += "LOADADDR=${UBOOT_ENTRYPOINT}" | ||
34 | |||
35 | COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6)" | 12 | COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6)" |
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() { |