summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2012-03-22 23:28:35 -0400
committerDenys Dmytriyenko <denys@ti.com>2012-03-22 23:33:44 -0400
commit246cb75a970e9aab0a3974a55e72c6d90f1df151 (patch)
treeead62a5bd0d821143dbefaf4933d32bdad6fe6b3
parent0a92342b2970ad99ede78acae84060e6259017f5 (diff)
downloadmeta-ti-246cb75a970e9aab0a3974a55e72c6d90f1df151.tar.gz
linux-{ti33x,omapl138}: simplify and unify handling of "tipspkernel" feature
And move it to a separate .inc for other kernels to use. Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r--recipes-kernel/linux/linux-omapl138-psp_2.6.37.bb9
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp_3.1.bb11
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp_3.2.bb8
-rw-r--r--recipes-kernel/linux/tipspkernel.inc17
4 files changed, 21 insertions, 24 deletions
diff --git a/recipes-kernel/linux/linux-omapl138-psp_2.6.37.bb b/recipes-kernel/linux/linux-omapl138-psp_2.6.37.bb
index 6326e7bb..5441675b 100644
--- a/recipes-kernel/linux/linux-omapl138-psp_2.6.37.bb
+++ b/recipes-kernel/linux/linux-omapl138-psp_2.6.37.bb
@@ -4,6 +4,7 @@ LICENSE = "GPLv2"
4KERNEL_IMAGETYPE = "uImage" 4KERNEL_IMAGETYPE = "uImage"
5 5
6require multi-kernel.inc 6require multi-kernel.inc
7require tipspkernel.inc
7 8
8S = "${WORKDIR}/git" 9S = "${WORKDIR}/git"
9 10
@@ -14,12 +15,6 @@ SRCREV = "v2.6.37_DAVINCIPSP_03.21.00.04"
14 15
15COMPATIBLE_MACHINE = "(omapl138)" 16COMPATIBLE_MACHINE = "(omapl138)"
16 17
17THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
18CONFIGS_PSP = "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/tipspkernel"], d)}:\
19${@base_set_filespath(["${THISDIR}/${PN}/tipspkernel"], d)}:\
20${@base_set_filespath(["${THISDIR}/files/tipspkernel"], d)}:"
21FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}"
22
23SRC_URI += "git://arago-project.org/git/projects/linux-davinci.git;protocol=git;branch=${BRANCH} \ 18SRC_URI += "git://arago-project.org/git/projects/linux-davinci.git;protocol=git;branch=${BRANCH} \
24 file://defconfig" 19 file://defconfig"
25 20
@@ -32,5 +27,3 @@ PATCHES_OVER_PSP = " \
32 file://0006-Add-wlan-and-BT-config-switches.patch \ 27 file://0006-Add-wlan-and-BT-config-switches.patch \
33 file://uio_pruss.patch \ 28 file://uio_pruss.patch \
34 " 29 "
35
36SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}"
diff --git a/recipes-kernel/linux/linux-ti33x-psp_3.1.bb b/recipes-kernel/linux/linux-ti33x-psp_3.1.bb
index 591731c8..cc30bfb2 100644
--- a/recipes-kernel/linux/linux-ti33x-psp_3.1.bb
+++ b/recipes-kernel/linux/linux-ti33x-psp_3.1.bb
@@ -4,6 +4,7 @@ LICENSE = "GPLv2"
4KERNEL_IMAGETYPE = "uImage" 4KERNEL_IMAGETYPE = "uImage"
5 5
6require multi-kernel.inc 6require multi-kernel.inc
7require tipspkernel.inc
7 8
8S = "${WORKDIR}/git" 9S = "${WORKDIR}/git"
9 10
@@ -15,12 +16,6 @@ MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"
15 16
16COMPATIBLE_MACHINE = "(ti33x)" 17COMPATIBLE_MACHINE = "(ti33x)"
17 18
18THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
19CONFIGS_PSP = "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/tipspkernel"], d)}:\
20${@base_set_filespath(["${THISDIR}/${PN}/tipspkernel"], d)}:\
21${@base_set_filespath(["${THISDIR}/files/tipspkernel"], d)}:"
22FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}"
23
24SRC_URI += "git://github.com/beagleboard/linux.git;branch=${BRANCH} \ 19SRC_URI += "git://github.com/beagleboard/linux.git;branch=${BRANCH} \
25 file://defconfig" 20 file://defconfig"
26 21
@@ -61,10 +56,8 @@ PATCHES_OVER_PSP = " \
61 file://0034-beaglebone-really-enable-i2c2-pullups-fixes-timeouts.patch \ 56 file://0034-beaglebone-really-enable-i2c2-pullups-fixes-timeouts.patch \
62 file://0035-beaglebone-add-structs-for-DVI-cape-LEDs.patch\ 57 file://0035-beaglebone-add-structs-for-DVI-cape-LEDs.patch\
63 file://0036-beaglebone-update-LCD-cape-partnumber.patch \ 58 file://0036-beaglebone-update-LCD-cape-partnumber.patch \
64 file://0037-beaglebone-compare-complete-partnumber-not-the-first.patch \ 59 file://0037-beaglebone-compare-complete-partnumber-not-the-first.patch \
65 file://0038-omap_hsmmc-Set-dto-to-max-value-of-14-to-avoid-SD-Ca.patch \ 60 file://0038-omap_hsmmc-Set-dto-to-max-value-of-14-to-avoid-SD-Ca.patch \
66 " 61 "
67 62
68SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}"
69SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm" 63SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm"
70
diff --git a/recipes-kernel/linux/linux-ti33x-psp_3.2.bb b/recipes-kernel/linux/linux-ti33x-psp_3.2.bb
index 0476e54b..c30d1be2 100644
--- a/recipes-kernel/linux/linux-ti33x-psp_3.2.bb
+++ b/recipes-kernel/linux/linux-ti33x-psp_3.2.bb
@@ -4,6 +4,7 @@ LICENSE = "GPLv2"
4KERNEL_IMAGETYPE = "uImage" 4KERNEL_IMAGETYPE = "uImage"
5 5
6require multi-kernel.inc 6require multi-kernel.inc
7require tipspkernel.inc
7 8
8S = "${WORKDIR}/git" 9S = "${WORKDIR}/git"
9 10
@@ -15,16 +16,9 @@ MACHINE_KERNEL_PR_append = "a+gitr${SRCREV}"
15 16
16COMPATIBLE_MACHINE = "(ti33x)" 17COMPATIBLE_MACHINE = "(ti33x)"
17 18
18THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
19CONFIGS_PSP = "${@base_set_filespath(["${THISDIR}/${PN}-${PV}/tipspkernel"], d)}:\
20${@base_set_filespath(["${THISDIR}/${PN}/tipspkernel"], d)}:\
21${@base_set_filespath(["${THISDIR}/files/tipspkernel"], d)}:"
22FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}"
23
24SRC_URI += "git://arago-project.org/git/projects/linux-am33x.git;protocol=http;branch=${BRANCH} \ 19SRC_URI += "git://arago-project.org/git/projects/linux-am33x.git;protocol=http;branch=${BRANCH} \
25 file://defconfig" 20 file://defconfig"
26 21
27SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}"
28SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm" 22SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm"
29 23
30PATCHES_OVER_PSP = " \ 24PATCHES_OVER_PSP = " \
diff --git a/recipes-kernel/linux/tipspkernel.inc b/recipes-kernel/linux/tipspkernel.inc
new file mode 100644
index 00000000..c23fa577
--- /dev/null
+++ b/recipes-kernel/linux/tipspkernel.inc
@@ -0,0 +1,17 @@
1# Include this file for kernel recipes that need to handle different defconfigs
2# and apply patches based on "tipspkernel" DISTRO_FEATURES
3
4# We don't want "tipspkernel" to be another OVERRIDE, but rather a new level of
5# FILESPATH with all the OVERRIDES applied to it
6CONFIGS_PSP = "${@base_set_filespath(["${FILE_DIRNAME}/${PF}/tipspkernel", "${FILE_DIRNAME}/${P}/tipspkernel", \
7"${FILE_DIRNAME}/${PN}/tipspkernel", "${FILE_DIRNAME}/${BP}/tipspkernel", "${FILE_DIRNAME}/${BPN}/tipspkernel", \
8"${FILE_DIRNAME}/files/tipspkernel", "${FILE_DIRNAME}/tipspkernel"], d)}:"
9
10# When "tipspkernel" is ENABLED, prepend additional set of directories to FILESPATH
11FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}"
12
13# When "tipspkernel" is NOT ENABLED, append additional list of PATCHES_OVER_PSP to SRC_URI
14SRC_URI_append = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}"
15
16# List additional patches to apply on top of PSP kernel, start with a space
17PATCHES_OVER_PSP = ""