summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
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
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')
-rw-r--r--recipes-kernel/linux/linux-fslc.inc20
-rw-r--r--recipes-kernel/linux/linux-fslc_3.8.bb25
-rw-r--r--recipes-kernel/linux/linux-imx.inc17
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
4DESCRIPTION = "Freescale Community mainline based Linux kernel"
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
7DEPENDS += "lzop-native"
8PROVIDES = "virtual/kernel linux-mainline"
9
10inherit kernel
11
12require recipes-kernel/linux/linux-imx.inc
13require recipes-kernel/linux/linux-dtb.inc
14
15# Avoid imx-test installation hacks
16IMX_TEST_SUPPORT = "n"
17
18SRC_URI = "git://github.com/Freescale/linux-mainline.git \
19 file://defconfig"
20LOCALVERSION = "-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
4DESCRIPTION = "Linux mainline kernel" 4include linux-fslc.inc
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
7DEPENDS += "lzop-native"
8PROVIDES = "virtual/kernel linux-mainline"
9
10inherit kernel
11
12require recipes-kernel/linux/linux-dtb.inc
13 5
14PV = "3.8+git${SRCPV}" 6PV = "3.8+git${SRCPV}"
15PR = "r5" 7PR = "r5"
@@ -17,19 +9,4 @@ PR = "r5"
17# patches-3.8 9# patches-3.8
18SRCREV = "9674b8d96fca62bc47be48fd857591dcfca874b1" 10SRCREV = "9674b8d96fca62bc47be48fd857591dcfca874b1"
19 11
20SRC_URI = "git://github.com/Freescale/linux-mainline.git \
21 \
22 file://defconfig"
23
24S = "${WORKDIR}/git"
25
26do_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
33EXTRA_OEMAKE += "LOADADDR=${UBOOT_ENTRYPOINT}"
34
35COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6)" 12COMPATIBLE_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
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() {