diff options
author | Denys Dmytriyenko <denis@denix.org> | 2012-03-22 23:28:35 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2012-03-22 23:33:44 -0400 |
commit | 246cb75a970e9aab0a3974a55e72c6d90f1df151 (patch) | |
tree | ead62a5bd0d821143dbefaf4933d32bdad6fe6b3 | |
parent | 0a92342b2970ad99ede78acae84060e6259017f5 (diff) | |
download | meta-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.bb | 9 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp_3.1.bb | 11 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp_3.2.bb | 8 | ||||
-rw-r--r-- | recipes-kernel/linux/tipspkernel.inc | 17 |
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" | |||
4 | KERNEL_IMAGETYPE = "uImage" | 4 | KERNEL_IMAGETYPE = "uImage" |
5 | 5 | ||
6 | require multi-kernel.inc | 6 | require multi-kernel.inc |
7 | require tipspkernel.inc | ||
7 | 8 | ||
8 | S = "${WORKDIR}/git" | 9 | S = "${WORKDIR}/git" |
9 | 10 | ||
@@ -14,12 +15,6 @@ SRCREV = "v2.6.37_DAVINCIPSP_03.21.00.04" | |||
14 | 15 | ||
15 | COMPATIBLE_MACHINE = "(omapl138)" | 16 | COMPATIBLE_MACHINE = "(omapl138)" |
16 | 17 | ||
17 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
18 | CONFIGS_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)}:" | ||
21 | FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}" | ||
22 | |||
23 | SRC_URI += "git://arago-project.org/git/projects/linux-davinci.git;protocol=git;branch=${BRANCH} \ | 18 | SRC_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 | |||
36 | SRC_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" | |||
4 | KERNEL_IMAGETYPE = "uImage" | 4 | KERNEL_IMAGETYPE = "uImage" |
5 | 5 | ||
6 | require multi-kernel.inc | 6 | require multi-kernel.inc |
7 | require tipspkernel.inc | ||
7 | 8 | ||
8 | S = "${WORKDIR}/git" | 9 | S = "${WORKDIR}/git" |
9 | 10 | ||
@@ -15,12 +16,6 @@ MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}" | |||
15 | 16 | ||
16 | COMPATIBLE_MACHINE = "(ti33x)" | 17 | COMPATIBLE_MACHINE = "(ti33x)" |
17 | 18 | ||
18 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
19 | CONFIGS_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)}:" | ||
22 | FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}" | ||
23 | |||
24 | SRC_URI += "git://github.com/beagleboard/linux.git;branch=${BRANCH} \ | 19 | SRC_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 | ||
68 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}" | ||
69 | SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm" | 63 | SRC_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" | |||
4 | KERNEL_IMAGETYPE = "uImage" | 4 | KERNEL_IMAGETYPE = "uImage" |
5 | 5 | ||
6 | require multi-kernel.inc | 6 | require multi-kernel.inc |
7 | require tipspkernel.inc | ||
7 | 8 | ||
8 | S = "${WORKDIR}/git" | 9 | S = "${WORKDIR}/git" |
9 | 10 | ||
@@ -15,16 +16,9 @@ MACHINE_KERNEL_PR_append = "a+gitr${SRCREV}" | |||
15 | 16 | ||
16 | COMPATIBLE_MACHINE = "(ti33x)" | 17 | COMPATIBLE_MACHINE = "(ti33x)" |
17 | 18 | ||
18 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
19 | CONFIGS_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)}:" | ||
22 | FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}" | ||
23 | |||
24 | SRC_URI += "git://arago-project.org/git/projects/linux-am33x.git;protocol=http;branch=${BRANCH} \ | 19 | SRC_URI += "git://arago-project.org/git/projects/linux-am33x.git;protocol=http;branch=${BRANCH} \ |
25 | file://defconfig" | 20 | file://defconfig" |
26 | 21 | ||
27 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}" | ||
28 | SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm" | 22 | SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm" |
29 | 23 | ||
30 | PATCHES_OVER_PSP = " \ | 24 | PATCHES_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 | ||
6 | CONFIGS_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 | ||
11 | FILESPATH =. "${@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 | ||
14 | SRC_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 | ||
17 | PATCHES_OVER_PSP = "" | ||