On Mon, Feb 9, 2015 at 11:06 PM, Petter Mabäcker <petter@technux.se> wrote:
Hmm the formatting in my previous mail looks weird, I try to send this again.. See my comment inline.

Cheers
Petter


On 02/08/2015 12:58 PM, Andrei Gherzan wrote:
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>
---
  recipes-kernel/linux/linux-raspberrypi.inc        | 2 +-
  recipes-kernel/linux/linux-raspberrypi_3.10.38.bb | 6 ------
  recipes-kernel/linux/linux-raspberrypi_3.10.bb    | 8 ++++++++
  recipes-kernel/linux/linux-raspberrypi_3.12.36.bb | 6 ------
  recipes-kernel/linux/linux-raspberrypi_3.12.bb    | 8 ++++++++
  recipes-kernel/linux/linux-raspberrypi_3.16.5.bb  | 6 ------
  recipes-kernel/linux/linux-raspberrypi_3.16.bb    | 8 ++++++++
  recipes-kernel/linux/linux-raspberrypi_3.18.5.bb  | 5 -----
  recipes-kernel/linux/linux-raspberrypi_3.18.bb    | 8 ++++++++
  recipes-kernel/linux/linux-raspberrypi_3.6.11.bb  | 6 ------
  recipes-kernel/linux/linux-raspberrypi_3.6.bb     | 8 ++++++++
  recipes-kernel/linux/linux-raspberrypi_3.8.13.bb  | 6 ------
  recipes-kernel/linux/linux-raspberrypi_3.8.bb     | 8 ++++++++
  13 files changed, 49 insertions(+), 36 deletions(-)
  delete mode 100644 recipes-kernel/linux/linux-raspberrypi_3.10.38.bb
  create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.10.bb
  delete mode 100644 recipes-kernel/linux/linux-raspberrypi_3.12.36.bb
  create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.12.bb
  delete mode 100644 recipes-kernel/linux/linux-raspberrypi_3.16.5.bb
  create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.16.bb
  delete mode 100644 recipes-kernel/linux/linux-raspberrypi_3.18.5.bb
  create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.18.bb
  delete mode 100644 recipes-kernel/linux/linux-raspberrypi_3.6.11.bb
  create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.6.bb
  delete mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb
  create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.bb

diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
index ff0c5ce..c00128d 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -11,7 +11,7 @@ SRC_URI += " \
    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.
  KERNEL_DEFCONFIG = "bcmrpi_defconfig"
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.10.38.bb b/recipes-kernel/linux/linux-raspberrypi_3.10.38.bb
deleted file mode 100644
index a0c5012..0000000
--- a/recipes-kernel/linux/linux-raspberrypi_3.10.38.bb
+++ /dev/null
@@ -1,6 +0,0 @@
-SRCREV = "1b49b450222df26e4abf7abb6d9302f72b2ed386"
-SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.10.y \
-           file://sl030raspberrypii2ckernel.patch \
-          "
-
-require linux-raspberrypi.inc
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.10.bb b/recipes-kernel/linux/linux-raspberrypi_3.10.bb
new file mode 100644
index 0000000..e5d5bf2
--- /dev/null
+++ b/recipes-kernel/linux/linux-raspberrypi_3.10.bb
@@ -0,0 +1,8 @@
+LINUX_VERSION ?= "3.10.38"
+
+SRCREV = "1b49b450222df26e4abf7abb6d9302f72b2ed386"
+SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.10.y \
+           file://sl030raspberrypii2ckernel.patch \
+          "
+
+require linux-raspberrypi.inc
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.12.36.bb b/recipes-kernel/linux/linux-raspberrypi_3.12.36.bb
deleted file mode 100644
index e9e9ad7..0000000
--- a/recipes-kernel/linux/linux-raspberrypi_3.12.36.bb
+++ /dev/null
@@ -1,6 +0,0 @@
-SRCREV = "90fa5df724d147564149c7b79cb1ffc571a345ec"
-SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.12.y \
-           file://sl030raspberrypii2ckernel.patch \
-          "
-
-require linux-raspberrypi.inc
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.12.bb b/recipes-kernel/linux/linux-raspberrypi_3.12.bb
new file mode 100644
index 0000000..08be83e
--- /dev/null
+++ b/recipes-kernel/linux/linux-raspberrypi_3.12.bb
@@ -0,0 +1,8 @@
+LINUX_VERSION ?= "3.12.26"
+

Small typo here. It should be "3.12.36".

Good catch. Thanks. 



--
Andrei Gherzan