diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2015-02-10 00:52:17 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@resin.io> | 2015-03-01 00:48:34 +0100 |
commit | ba383ecd350eb301fe9f6a2435be8f414617f10a (patch) | |
tree | 850df49a03eb92725304f5bf799b9646f4bfa403 | |
parent | 4147bd721497b651a166fa551705e3d3e10ed4bc (diff) | |
download | meta-raspberrypi-ba383ecd350eb301fe9f6a2435be8f414617f10a.tar.gz |
linux-raspberrypi: Refactor kernel recipes
We use this to simplify the update process. Updating a kernel version will not
require renaming the recipe but only tweaking LINUX_VERSION.
Update kernel version:
- bump SRCREV
- bump LINUX_VERSION if needed
[Support #26]
Change-Id: I7565ddd1f03cc34c34aa5da92664a0057b415c9a
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.10.bb (renamed from recipes-kernel/linux/linux-raspberrypi_3.10.38.bb) | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.12.bb (renamed from recipes-kernel/linux/linux-raspberrypi_3.12.36.bb) | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.16.bb (renamed from recipes-kernel/linux/linux-raspberrypi_3.16.5.bb) | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.18.bb (renamed from recipes-kernel/linux/linux-raspberrypi_3.18.5.bb) | 3 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.6.bb (renamed from recipes-kernel/linux/linux-raspberrypi_3.6.11.bb) | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.8.bb (renamed from recipes-kernel/linux/linux-raspberrypi_3.8.13.bb) | 2 |
7 files changed, 14 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index fde68dd..84d4f9e 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
@@ -11,7 +11,7 @@ SRC_URI += " \ | |||
11 | 11 | ||
12 | COMPATIBLE_MACHINE = "raspberrypi" | 12 | COMPATIBLE_MACHINE = "raspberrypi" |
13 | 13 | ||
14 | PV_append = "+git${SRCREV}" | 14 | PV = "${LINUX_VERSION}+git${SRCREV}" |
15 | 15 | ||
16 | # NOTE: For now we pull in the default config from the RPi kernel GIT tree. | 16 | # NOTE: For now we pull in the default config from the RPi kernel GIT tree. |
17 | KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" | 17 | KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" |
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.10.38.bb b/recipes-kernel/linux/linux-raspberrypi_3.10.bb index a0c5012..e5d5bf2 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.10.38.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.10.bb | |||
@@ -1,3 +1,5 @@ | |||
1 | LINUX_VERSION ?= "3.10.38" | ||
2 | |||
1 | SRCREV = "1b49b450222df26e4abf7abb6d9302f72b2ed386" | 3 | SRCREV = "1b49b450222df26e4abf7abb6d9302f72b2ed386" |
2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.10.y \ | 4 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.10.y \ |
3 | file://sl030raspberrypii2ckernel.patch \ | 5 | file://sl030raspberrypii2ckernel.patch \ |
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.12.36.bb b/recipes-kernel/linux/linux-raspberrypi_3.12.bb index e9e9ad7..2952778 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.12.36.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.12.bb | |||
@@ -1,3 +1,5 @@ | |||
1 | LINUX_VERSION ?= "3.12.36" | ||
2 | |||
1 | SRCREV = "90fa5df724d147564149c7b79cb1ffc571a345ec" | 3 | SRCREV = "90fa5df724d147564149c7b79cb1ffc571a345ec" |
2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.12.y \ | 4 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.12.y \ |
3 | file://sl030raspberrypii2ckernel.patch \ | 5 | file://sl030raspberrypii2ckernel.patch \ |
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.16.5.bb b/recipes-kernel/linux/linux-raspberrypi_3.16.bb index 97947c2..ccc414f 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.16.5.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.16.bb | |||
@@ -1,3 +1,5 @@ | |||
1 | LINUX_VERSION ?= "3.16.5" | ||
2 | |||
1 | SRCREV = "377c82aa1d31b37f1096096b0e4c65beb0bc5c49" | 3 | SRCREV = "377c82aa1d31b37f1096096b0e4c65beb0bc5c49" |
2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.16.y \ | 4 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.16.y \ |
3 | file://sl030raspberrypii2ckernel.patch \ | 5 | file://sl030raspberrypii2ckernel.patch \ |
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.18.5.bb b/recipes-kernel/linux/linux-raspberrypi_3.18.bb index 663522e..921e702 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.18.5.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.18.bb | |||
@@ -1,5 +1,8 @@ | |||
1 | LINUX_VERSION ?= "3.18.5" | ||
2 | |||
1 | SRCREV = "a6cf3c99bc89e2c010c2f78fbf9e3ed478ccfd46" | 3 | SRCREV = "a6cf3c99bc89e2c010c2f78fbf9e3ed478ccfd46" |
2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \ | 4 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \ |
3 | file://sl030raspberrypii2ckernel.patch \ | 5 | file://sl030raspberrypii2ckernel.patch \ |
4 | " | 6 | " |
7 | |||
5 | require linux-raspberrypi.inc | 8 | require linux-raspberrypi.inc |
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb b/recipes-kernel/linux/linux-raspberrypi_3.6.bb index a154bcf..fc9ac89 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.6.bb | |||
@@ -1,3 +1,5 @@ | |||
1 | LINUX_VERSION ?= "3.6.11" | ||
2 | |||
1 | SRCREV = "2a8d45ec0883e3cbdce920855b3461ac77308a5f" | 3 | SRCREV = "2a8d45ec0883e3cbdce920855b3461ac77308a5f" |
2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \ | 4 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \ |
3 | file://sl030raspberrypii2ckernel.patch \ | 5 | file://sl030raspberrypii2ckernel.patch \ |
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.8.13.bb b/recipes-kernel/linux/linux-raspberrypi_3.8.bb index dc8cf0a..ae0dc99 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.8.13.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.8.bb | |||
@@ -1,3 +1,5 @@ | |||
1 | LINUX_VERSION ?= "3.8.13" | ||
2 | |||
1 | SRCREV = "d996a1b91b2bf3dc06f4f4f822a56f4496457aa1" | 3 | SRCREV = "d996a1b91b2bf3dc06f4f4f822a56f4496457aa1" |
2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.8.y \ | 4 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.8.y \ |
3 | file://sl030raspberrypii2ckernel.patch \ | 5 | file://sl030raspberrypii2ckernel.patch \ |