Skip to contentSkip to conversation

Refactor kernel recipes

PATCH In review [email protected] 3 participants 9 messages Sep 10, 2013 – Nov 12, 2013 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

cover Refactor kernel recipes

From: Philipp Wagner <[email protected]>

Hi,

as follow-up to the discussion in
[yocto] [meta-raspberrypi][PATCH] linux-raspberrypi: Add version 3.8.13 I've refactored the kernel recipes a bit and included all discussed kernel versions. The default is now 3.6.

I've left linux.inc as-is, as this seems to be copied from meta-oe. Should we include this directly instead of copying it here?

Philipp

Philipp Wagner (4):
Refactor kernel recipes to reduce code duplication Remove tabs from recipe
Make Linux 3.6 the default for Raspberry Pi Add kernel 3.8 and 3.11 for Raspberry Pi

 conf/machine/include/rpi-default-providers.inc   |   3 +
 recipes-kernel/linux/linux-raspberrypi.inc       |  34 +++++
 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb |   6 +
 recipes-kernel/linux/linux-raspberrypi_3.2.27.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.6.11.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb |   6 +
 recipes-kernel/linux/linux.inc                   | 174 +++++++++++------------
 7 files changed, 140 insertions(+), 149 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi.inc
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH 1/4 Refactor kernel recipes to reduce code duplication

From: Philipp Wagner <[email protected]>

---
 recipes-kernel/linux/linux-raspberrypi.inc       | 34 ++++++++++++++++++++++++
 recipes-kernel/linux/linux-raspberrypi_3.2.27.bb | 33 ++---------------------
 recipes-kernel/linux/linux-raspberrypi_3.6.11.bb | 33 ++---------------------
 3 files changed, 38 insertions(+), 62 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi.inc
recipes-kernel/linux/linux-raspberrypi.inc new file +34 -0
new file mode 100644
index 0000000..e756b57
@@ -0,0 +1,34 @@
+require linux.inc
+
+DESCRIPTION = "Linux Kernel for Raspberry Pi"
+SECTION = "kernel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+COMPATIBLE_MACHINE = "raspberrypi"
+
+PV_append = "+git${SRCREV}"
+
+S = "${WORKDIR}/git"
+
+# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
+KERNEL_DEFCONFIG = "bcmrpi_defconfig"
+
+# CMDLINE for raspberrypi
+CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
+
+UDEV_GE_141 ?= "1"
+
+do_configure_prepend() {
+    install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
+}
+
+do_install_prepend() {
+    install -d ${D}/lib/firmware
+}
+
+do_deploy_append() {
+    # Deploy cmdline.txt
+    install -d ${DEPLOYDIR}/bcm2835-bootfiles
+    echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt
+}
recipes-kernel/linux/linux-raspberrypi_3.2.27.bb +2 -31
index 263e0ce..cc4ee38 100644
@@ -1,35 +1,6 @@
-require linux.inc
-
-DESCRIPTION = "Linux kernel for the RaspberryPi board"
-COMPATIBLE_MACHINE = "raspberrypi"
-
-PR = "r7"
-PV_append = "+git${SRCREV}"
-
 SRCREV = "ada8b4415ff44d535d63e4291a0eca733bc2ad0f"
 SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.2.27 \
-	   file://sl030raspberrypii2ckernel.patch \
+           file://sl030raspberrypii2ckernel.patch \
           "
-S = "${WORKDIR}/git"
-
-# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
-KERNEL_DEFCONFIG = "bcmrpi_defconfig"
-
-# CMDLINE for raspberrypi
-CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
-
-UDEV_GE_141 ?= "1"
-
-do_configure_prepend() {
-	install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
-}
-
-do_install_prepend() {
-	install -d ${D}/lib/firmware
-}
 
-do_deploy_append() {
-	# Deploy cmdline.txt
-	install -d ${DEPLOYDIR}/bcm2835-bootfiles
-	echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt
-}
+require linux-raspberrypi.inc
recipes-kernel/linux/linux-raspberrypi_3.6.11.bb +2 -31
index 48c99fd..5314f5d 100644
@@ -1,35 +1,6 @@
-require linux.inc
-
-DESCRIPTION = "Linux kernel for the RaspberryPi board"
-COMPATIBLE_MACHINE = "raspberrypi"
-
-PR = "r7"
-PV_append = "+git${SRCREV}"
-
-SRCREV = "63b69a8806ce1890711ff55280c90673ea415933"
+SRCREV = "cbd6672e7e1b2dc5026f5dc7929a13a9a68f2a62"
 SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \
            file://sl030raspberrypii2ckernel.patch \
           "
-S = "${WORKDIR}/git"
-
-# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
-KERNEL_DEFCONFIG = "bcmrpi_defconfig"
-
-# CMDLINE for raspberrypi
-CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
-
-UDEV_GE_141 ?= "1"
-
-do_configure_prepend() {
-	install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
-}
-
-do_install_prepend() {
-	install -d ${D}/lib/firmware
-}
 
-do_deploy_append() {
-	# Deploy cmdline.txt
-	install -d ${DEPLOYDIR}/bcm2835-bootfiles
-	echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt
-}
+require linux-raspberrypi.inc
Signature · 1 line
1.8.1.4
#2 lore raw

PATCH 2/4 Remove tabs from recipe

In reply to [email protected]

From: Philipp Wagner <[email protected]>

---
 recipes-kernel/linux/linux.inc | 174 ++++++++++++++++++++---------------------
 1 file changed, 87 insertions(+), 87 deletions(-)
recipes-kernel/linux/linux.inc +87 -87
index 493616c..7a8f984 100644
@@ -21,96 +21,96 @@ CMDLINE_append = " ${CMDLINE_DEBUG}"
 # $1 - Configure variable to be set
 # $2 - value [n/y/value]
 kernel_configure_variable() {
-	# Remove the config
-	CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;"
-	if test "$2" = "n"
-	then
-		echo "# CONFIG_$1 is not set" >> ${S}/.config
-	else
-		echo "CONFIG_$1=$2" >> ${S}/.config
-	fi
+    # Remove the config
+    CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;"
+    if test "$2" = "n"
+    then
+        echo "# CONFIG_$1 is not set" >> ${S}/.config
+    else
+        echo "CONFIG_$1=$2" >> ${S}/.config
+    fi
 }
 
 do_configure_prepend() {
-	# Clean .config
-	echo "" > ${S}/.config
-	CONF_SED_SCRIPT=""
-
-	# oabi / eabi support
-	if [ "${TARGET_OS}" = "linux-gnueabi" -o  "${TARGET_OS}" = "linux-uclibceabi" ]; then
-		kernel_configure_variable AEABI y
-		if [ "${ARM_KEEP_OABI}" = "1" ] ; then
-			kernel_configure_variable OABI_COMPAT y
-		else
-			kernel_configure_variable OABI_COMPAT n
-		fi
-	else
-		kernel_configure_variable AEABI n
-		kernel_configure_variable OABI_COMPAT n
-	fi
-
-	# Set cmdline
-	kernel_configure_variable CMDLINE "\"${CMDLINE}\""
-
-	# Localversion
-	kernel_configure_variable LOCALVERSION "\"\""
-	kernel_configure_variable LOCALVERSION_AUTO n
-
-	# Udev quirks
-	# Newer versions of udev mandate that sysfs doesn't have deprecated entries
-	if [ "${UDEV_GE_141}" = "1" ] ; then
-		kernel_configure_variable SYSFS_DEPRECATED n
-		kernel_configure_variable SYSFS_DEPRECATED_V2 n
-		kernel_configure_variable HOTPLUG y
-		kernel_configure_variable UEVENT_HELPER_PATH "\"\""
-		kernel_configure_variable UNIX y
-		kernel_configure_variable SYSFS y
-		kernel_configure_variable PROC_FS y
-		kernel_configure_variable TMPFS y
-		kernel_configure_variable INOTIFY_USER y
-		kernel_configure_variable SIGNALFD y
-		kernel_configure_variable TMPFS_POSIX_ACL y
-		kernel_configure_variable BLK_DEV_BSG y
-		kernel_configure_variable DEVTMPFS y
-		kernel_configure_variable DEVTMPFS_MOUNT y
-	fi
-
-	# Newer inits like systemd need cgroup support
-	if [ "${KERNEL_ENABLE_CGROUPS}" = "1" ] ; then
-		kernel_configure_variable CGROUP_SCHED y
-		kernel_configure_variable CGROUPS y
-		kernel_configure_variable CGROUP_NS y
-		kernel_configure_variable CGROUP_FREEZER y
-		kernel_configure_variable CGROUP_DEVICE y
-		kernel_configure_variable CPUSETS y
-		kernel_configure_variable PROC_PID_CPUSET y
-		kernel_configure_variable CGROUP_CPUACCT y
-		kernel_configure_variable RESOURCE_COUNTERS y
-	fi
-
-	# root-over-nfs-over-usb-eth support. Limited, but should cover some cases
-	# Enable this by setting a proper CMDLINE_NFSROOT_USB.
-	if [ ! -z "${CMDLINE_NFSROOT_USB}" ]; then
-		oenote "Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB}"
-		kernel_configure_variable INET y
-		kernel_configure_variable IP_PNP y
-		kernel_configure_variable USB_GADGET y
-		kernel_configure_variable USB_GADGET_SELECTED y
-		kernel_configure_variable USB_ETH y
-		kernel_configure_variable NFS_FS y
-		kernel_configure_variable ROOT_NFS y
-		kernel_configure_variable ROOT_NFS y
-		kernel_configure_variable CMDLINE "\"${CMDLINE_NFSROOT_USB}\""
-	fi
-
-	# Activate CONFIG_LEGACY_PTYS
-	kernel_configure_variable LEGACY_PTYS y
-
-	# Keep this the last line
-	# Remove all modified configs and add the rest to .config
-	sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config'
-
-	yes '' | oe_runmake oldconfig
+    # Clean .config
+    echo "" > ${S}/.config
+    CONF_SED_SCRIPT=""
+
+    # oabi / eabi support
+    if [ "${TARGET_OS}" = "linux-gnueabi" -o  "${TARGET_OS}" = "linux-uclibceabi" ]; then
+        kernel_configure_variable AEABI y
+        if [ "${ARM_KEEP_OABI}" = "1" ] ; then
+            kernel_configure_variable OABI_COMPAT y
+        else
+            kernel_configure_variable OABI_COMPAT n
+        fi
+    else
+        kernel_configure_variable AEABI n
+        kernel_configure_variable OABI_COMPAT n
+    fi
+
+    # Set cmdline
+    kernel_configure_variable CMDLINE "\"${CMDLINE}\""
+
+    # Localversion
+    kernel_configure_variable LOCALVERSION "\"\""
+    kernel_configure_variable LOCALVERSION_AUTO n
+
+    # Udev quirks
+    # Newer versions of udev mandate that sysfs doesn't have deprecated entries
+    if [ "${UDEV_GE_141}" = "1" ] ; then
+        kernel_configure_variable SYSFS_DEPRECATED n
+        kernel_configure_variable SYSFS_DEPRECATED_V2 n
+        kernel_configure_variable HOTPLUG y
+        kernel_configure_variable UEVENT_HELPER_PATH "\"\""
+        kernel_configure_variable UNIX y
+        kernel_configure_variable SYSFS y
+        kernel_configure_variable PROC_FS y
+        kernel_configure_variable TMPFS y
+        kernel_configure_variable INOTIFY_USER y
+        kernel_configure_variable SIGNALFD y
+        kernel_configure_variable TMPFS_POSIX_ACL y
+        kernel_configure_variable BLK_DEV_BSG y
+        kernel_configure_variable DEVTMPFS y
+        kernel_configure_variable DEVTMPFS_MOUNT y
+    fi
+
+    # Newer inits like systemd need cgroup support
+    if [ "${KERNEL_ENABLE_CGROUPS}" = "1" ] ; then
+        kernel_configure_variable CGROUP_SCHED y
+        kernel_configure_variable CGROUPS y
+        kernel_configure_variable CGROUP_NS y
+        kernel_configure_variable CGROUP_FREEZER y
+        kernel_configure_variable CGROUP_DEVICE y
+        kernel_configure_variable CPUSETS y
+        kernel_configure_variable PROC_PID_CPUSET y
+        kernel_configure_variable CGROUP_CPUACCT y
+        kernel_configure_variable RESOURCE_COUNTERS y
+    fi
+
+    # root-over-nfs-over-usb-eth support. Limited, but should cover some cases
+    # Enable this by setting a proper CMDLINE_NFSROOT_USB.
+    if [ ! -z "${CMDLINE_NFSROOT_USB}" ]; then
+        oenote "Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB}"
+        kernel_configure_variable INET y
+        kernel_configure_variable IP_PNP y
+        kernel_configure_variable USB_GADGET y
+        kernel_configure_variable USB_GADGET_SELECTED y
+        kernel_configure_variable USB_ETH y
+        kernel_configure_variable NFS_FS y
+        kernel_configure_variable ROOT_NFS y
+        kernel_configure_variable ROOT_NFS y
+        kernel_configure_variable CMDLINE "\"${CMDLINE_NFSROOT_USB}\""
+    fi
+
+    # Activate CONFIG_LEGACY_PTYS
+    kernel_configure_variable LEGACY_PTYS y
+
+    # Keep this the last line
+    # Remove all modified configs and add the rest to .config
+    sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config'
+
+    yes '' | oe_runmake oldconfig
 }
 
 # Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled
Signature · 1 line
1.8.1.4
#3 lore raw

PATCH 3/4 Make Linux 3.6 the default for Raspberry Pi

In reply to [email protected]

From: Philipp Wagner <[email protected]>

Kernel 3.6 is also the default for Raspbian and thus should be the most tested version right now.

---
 conf/machine/include/rpi-default-providers.inc | 3 +++
 1 file changed, 3 insertions(+)
conf/machine/include/rpi-default-providers.inc +3 -0
index 665c6e0..1a647c9 100644
@@ -1,6 +1,9 @@
 # RaspberryPi BSP default providers
 
 PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi"
+# The default kernel version is the same as used by Raspbian
+PREFERRED_VERSION_linux-raspberrypi ?= "3.6.%"
+
 PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
 PREFERRED_PROVIDER_virtual/egl ?= "userland"
 PREFERRED_PROVIDER_virtual/libgles2 ?= "userland"
Signature · 1 line
1.8.1.4
#4 lore raw

PATCH 4/4 Add kernel 3.8 and 3.11 for Raspberry Pi

In reply to [email protected]

From: Philipp Wagner <[email protected]>

---
 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb | 6 ++++++
 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb | 6 ++++++
 2 files changed, 12 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb
recipes-kernel/linux/linux-raspberrypi_3.11.0.bb new file +6 -0
new file mode 100644
index 0000000..1ae39b2
@@ -0,0 +1,6 @@
+SRCREV = "d7474694bdc9836af17f4b4d839509f9aad7ffa7"
+SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.11.y \
+           file://sl030raspberrypii2ckernel.patch \
+          "
+
+require linux-raspberrypi.inc
recipes-kernel/linux/linux-raspberrypi_3.8.13.bb new file +6 -0
new file mode 100644
index 0000000..dc8cf0a
@@ -0,0 +1,6 @@
+SRCREV = "d996a1b91b2bf3dc06f4f4f822a56f4496457aa1"
+SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.8.y \
+           file://sl030raspberrypii2ckernel.patch \
+          "
+
+require linux-raspberrypi.inc
Signature · 1 line
1.8.1.4
#5 lore raw
In reply to [email protected]
Quoted 32 lines · On 10 September 2013 23:36, <[email protected]> wrote:

From: Philipp Wagner <[email protected]>

Hi,

as follow-up to the discussion in
[yocto] [meta-raspberrypi][PATCH] linux-raspberrypi: Add version 3.8.13 I've refactored the kernel recipes a bit and included all discussed kernel versions. The default is now 3.6.

I've left linux.inc as-is, as this seems to be copied from meta-oe. Should we include this directly instead of copying it here?

Philipp

Philipp Wagner (4):
Refactor kernel recipes to reduce code duplication Remove tabs from recipe
Make Linux 3.6 the default for Raspberry Pi Add kernel 3.8 and 3.11 for Raspberry Pi

 conf/machine/include/rpi-default-providers.inc   |   3 +
 recipes-kernel/linux/linux-raspberrypi.inc       |  34 +++++
 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb |   6 +
 recipes-kernel/linux/linux-raspberrypi_3.2.27.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.6.11.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb |   6 +
 recipes-kernel/linux/linux.inc                   | 174 +++++++++++------------
 7 files changed, 140 insertions(+), 149 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi.inc
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb
Quoted 2 lines

--
1.8.1.4

Testing this now with PREFERRED_VERSION_linux-raspberrypi = "3.8%".

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk
Tested-by
#6 lore raw
Quoted 33 lines · Paul Barker
Quoted 32 lines · On 10 September 2013 23:36, <[email protected]> wrote:

From: Philipp Wagner <[email protected]>

Hi,

as follow-up to the discussion in
[yocto] [meta-raspberrypi][PATCH] linux-raspberrypi: Add version 3.8.13 I've refactored the kernel recipes a bit and included all discussed kernel versions. The default is now 3.6.

I've left linux.inc as-is, as this seems to be copied from meta-oe. Should we include this directly instead of copying it here?

Philipp

Philipp Wagner (4):
Refactor kernel recipes to reduce code duplication Remove tabs from recipe
Make Linux 3.6 the default for Raspberry Pi Add kernel 3.8 and 3.11 for Raspberry Pi

 conf/machine/include/rpi-default-providers.inc   |   3 +
 recipes-kernel/linux/linux-raspberrypi.inc       |  34 +++++
 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb |   6 +
 recipes-kernel/linux/linux-raspberrypi_3.2.27.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.6.11.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb |   6 +
 recipes-kernel/linux/linux.inc                   | 174 +++++++++++------------
 7 files changed, 140 insertions(+), 149 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi.inc
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb
Quoted 5 lines
Quoted 2 lines

--
1.8.1.4

Testing this now with PREFERRED_VERSION_linux-raspberrypi = "3.8%".

Builds and boots happily.

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk
#7 lore raw
Quoted 37 lines · Paul Barker
Quoted 36 lines · Paul Barker
Quoted 34 lines · On 10 September 2013 23:36, <[email protected]> wrote:

From: Philipp Wagner <[email protected]>

Hi,

as follow-up to the discussion in
[yocto] [meta-raspberrypi][PATCH] linux-raspberrypi: Add version 3.8.13 I've refactored the kernel recipes a bit and included all discussed kernel versions. The default is now 3.6.

I've left linux.inc as-is, as this seems to be copied from meta-oe. Should we include this directly instead of copying it here?

Philipp

Philipp Wagner (4):
Refactor kernel recipes to reduce code duplication Remove tabs from recipe
Make Linux 3.6 the default for Raspberry Pi Add kernel 3.8 and 3.11 for Raspberry Pi

 conf/machine/include/rpi-default-providers.inc   |   3 +
 recipes-kernel/linux/linux-raspberrypi.inc       |  34 +++++
 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb |   6 +
 recipes-kernel/linux/linux-raspberrypi_3.2.27.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.6.11.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb |   6 +
 recipes-kernel/linux/linux.inc                   | 174 +++++++++++------------
 7 files changed, 140 insertions(+), 149 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi.inc
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb

--
1.8.1.4

Quoted 7 lines
Quoted 2 lines

Testing this now with PREFERRED_VERSION_linux-raspberrypi = "3.8%".

Builds and boots happily.

Ping on this series as well. Think it'd be really good to get the newer kernel recipes into the repository.

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk
#8 lore raw
Quoted 43 lines · Paul Barker
Quoted 4 lines · Paul Barker
Quoted 3 lines · Paul Barker
Quoted 2 lines · On 10 September 2013 23:36, <[email protected]> wrote:

From: Philipp Wagner <[email protected]>

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi,

as follow-up to the discussion in
[yocto] [meta-raspberrypi][PATCH] linux-raspberrypi: Add version 3.8.13 I've refactored the kernel recipes a bit and included all discussed kernel versions. The default is now 3.6.

I've left linux.inc as-is, as this seems to be copied from meta-oe.

Should

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

we include this directly instead of copying it here?

Philipp

Philipp Wagner (4):
Refactor kernel recipes to reduce code duplication Remove tabs from recipe
Make Linux 3.6 the default for Raspberry Pi Add kernel 3.8 and 3.11 for Raspberry Pi

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
 conf/machine/include/rpi-default-providers.inc   |   3 +
 recipes-kernel/linux/linux-raspberrypi.inc       |  34 +++++
 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb |   6 +
 recipes-kernel/linux/linux-raspberrypi_3.2.27.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.6.11.bb |  33 +----
 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb |   6 +
 recipes-kernel/linux/linux.inc                   | 174

+++++++++++------------

Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
 7 files changed, 140 insertions(+), 149 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi.inc
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb
 create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb

--
1.8.1.4

Testing this now with PREFERRED_VERSION_linux-raspberrypi = "3.8%".

Quoted 9 lines
Quoted 4 lines

Builds and boots happily.

Ping on this series as well. Think it'd be really good to get the newer kernel recipes into the repository.

Merged.

Thanks,
ag