Skip to contentSkip to conversation

linux-raspberry.inc: add initramfs support

PATCH Superseded Andrei Gherzan 1 participant 1 message Feb 28, 2016 Broadcom BCM2711/BCM2835 Arm architecture

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 linux-raspberry.inc: add initramfs support

From: Stéphane Cerveau <[email protected]>

append initramfs creation to install RPi bootloader trailer

---
 recipes-kernel/linux/linux-raspberrypi.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)
recipes-kernel/linux/linux-raspberrypi.inc +10 -0
index 8c7c46c..1befee4 100644
@@ -64,4 +64,14 @@ do_rpiboot_mkimage() {
         fi
     fi
 }
+
+do_bundle_initramfs_append() {
+    if test "x${KERNEL_IMAGETYPE}" != "xuImage" ; then
+        if test -n "${KERNEL_DEVICETREE}"; then
+            # Add RPi bootloader trailer to kernel image to enable DeviceTree support
+            ${STAGING_LIBEXECDIR_NATIVE}/mkknlimg --dtok ${KERNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs
+        fi
+    fi
+}
+
 addtask rpiboot_mkimage before do_install after do_compile
Signature · 1 line
2.7.0