Skip to contentSkip to conversation

linux-rpi: Enable kconf options to enable initramfs support

PATCH In review Khem Raj 2 participants 3 messages May 13, 2016 – May 19, 2016 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 linux-rpi: Enable kconf options to enable initramfs support

Additionally add few few file systems e.g. squashfs, overlayfs to support booting with initramfs

Drop checking for target triplet to set EABI, rpi probaly should not have any legacy into OABI world.

---
 recipes-kernel/linux/linux-rpi.inc | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)
recipes-kernel/linux/linux-rpi.inc +13 -9
index fae78b7..1755685 100644
@@ -18,6 +18,8 @@ UDEV_GE_141 ?= "1"
 CMDLINE_DEBUG ?= '${@base_conditional("DISTRO_TYPE", "release", "quiet", "debug", d)}'
 CMDLINE_append = " ${CMDLINE_DEBUG}"
 
+KERNEL_INITRAMFS ?= '${@base_conditional("INITRAMFS_IMAGE_BUNDLE", "1", "1", "", d)}'
+
 # Set a variable in .configure
 # $1 - Configure variable to be set
 # $2 - value [n/y/value]
@@ -38,15 +40,10 @@ do_configure_prepend() {
     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
+    kernel_configure_variable AEABI y
+    if [ "${ARM_KEEP_OABI}" = "1" ] ; then
+        kernel_configure_variable OABI_COMPAT y
     else
-        kernel_configure_variable AEABI n
         kernel_configure_variable OABI_COMPAT n
     fi
 
@@ -103,7 +100,14 @@ do_configure_prepend() {
         kernel_configure_variable ROOT_NFS y
         kernel_configure_variable CMDLINE "\"${CMDLINE_NFSROOT_USB}\""
     fi
-
+    if [ ! -z "${KERNEL_INITRAMFS}" ]; then
+        kernel_configure_variable BLK_DEV_INITRD y
+        kernel_configure_variable INITRAMFS_SOURCE ""
+        kernel_configure_variable RD_GZIP y
+        kernel_configure_variable OVERLAY_FS y
+        kernel_configure_variable SQUASHFS y
+        kernel_configure_variable UBIFS_FS y
+    fi
     # Activate CONFIG_LEGACY_PTYS
     kernel_configure_variable LEGACY_PTYS y
 
Signature · 1 line
2.8.2
author
#1 lore raw

PATCH 2/2 linux-raspberrypi_4.4.bb: Upgrade to 4.4.9

---
 recipes-kernel/linux/linux-raspberrypi_4.4.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-raspberrypi_4.4.bb +2 -2
index f6e1005..ba47b22 100644
@@ -1,8 +1,8 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
 
-LINUX_VERSION ?= "4.4.8"
+LINUX_VERSION ?= "4.4.9"
 
-SRCREV = "fe7ad6aa5c6940817fe971d80a7b2a1d6052190a"
+SRCREV = "3b440738b5c1adc3ec3ee72ceca799d1b8d264df"
 SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \
 "
 require linux-raspberrypi.inc
Signature · 1 line
2.8.2
#2 lore raw
In reply to Khem Raj
Quoted 6 lines · Khem Raj

Additionally add few few file systems e.g. squashfs, overlayfs to support booting with initramfs

Drop checking for target triplet to set EABI, rpi probaly should not have any legacy into OABI world.

Merged both to master. Thanks.

--
Andrei Gherzan