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>
This commit is contained in:
Andrei Gherzan 2015-02-10 00:52:17 +01:00 committed by Andrei Gherzan
parent 4147bd7214
commit ba383ecd35
7 changed files with 14 additions and 1 deletions

View File

@ -11,7 +11,7 @@ SRC_URI += " \
COMPATIBLE_MACHINE = "raspberrypi" COMPATIBLE_MACHINE = "raspberrypi"
PV_append = "+git${SRCREV}" PV = "${LINUX_VERSION}+git${SRCREV}"
# NOTE: For now we pull in the default config from the RPi kernel GIT tree. # NOTE: For now we pull in the default config from the RPi kernel GIT tree.
KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"

View File

@ -1,3 +1,5 @@
LINUX_VERSION ?= "3.10.38"
SRCREV = "1b49b450222df26e4abf7abb6d9302f72b2ed386" SRCREV = "1b49b450222df26e4abf7abb6d9302f72b2ed386"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.10.y \ SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.10.y \
file://sl030raspberrypii2ckernel.patch \ file://sl030raspberrypii2ckernel.patch \

View File

@ -1,3 +1,5 @@
LINUX_VERSION ?= "3.12.36"
SRCREV = "90fa5df724d147564149c7b79cb1ffc571a345ec" SRCREV = "90fa5df724d147564149c7b79cb1ffc571a345ec"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.12.y \ SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.12.y \
file://sl030raspberrypii2ckernel.patch \ file://sl030raspberrypii2ckernel.patch \

View File

@ -1,3 +1,5 @@
LINUX_VERSION ?= "3.16.5"
SRCREV = "377c82aa1d31b37f1096096b0e4c65beb0bc5c49" SRCREV = "377c82aa1d31b37f1096096b0e4c65beb0bc5c49"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.16.y \ SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.16.y \
file://sl030raspberrypii2ckernel.patch \ file://sl030raspberrypii2ckernel.patch \

View File

@ -1,5 +1,8 @@
LINUX_VERSION ?= "3.18.5"
SRCREV = "a6cf3c99bc89e2c010c2f78fbf9e3ed478ccfd46" SRCREV = "a6cf3c99bc89e2c010c2f78fbf9e3ed478ccfd46"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \ SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \
file://sl030raspberrypii2ckernel.patch \ file://sl030raspberrypii2ckernel.patch \
" "
require linux-raspberrypi.inc require linux-raspberrypi.inc

View File

@ -1,3 +1,5 @@
LINUX_VERSION ?= "3.6.11"
SRCREV = "2a8d45ec0883e3cbdce920855b3461ac77308a5f" SRCREV = "2a8d45ec0883e3cbdce920855b3461ac77308a5f"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \ SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \
file://sl030raspberrypii2ckernel.patch \ file://sl030raspberrypii2ckernel.patch \

View File

@ -1,3 +1,5 @@
LINUX_VERSION ?= "3.8.13"
SRCREV = "d996a1b91b2bf3dc06f4f4f822a56f4496457aa1" SRCREV = "d996a1b91b2bf3dc06f4f4f822a56f4496457aa1"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.8.y \ SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.8.y \
file://sl030raspberrypii2ckernel.patch \ file://sl030raspberrypii2ckernel.patch \