All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH] linux-raspberry.inc: add initramfs support
@ 2016-02-10  9:43 Stéphane Cerveau
  0 siblings, 0 replies; only message in thread
From: Stéphane Cerveau @ 2016-02-10  9:43 UTC (permalink / raw)
  To: yocto; +Cc: Stéphane Cerveau

in do_rpiboot_mkimage add rpi bootload trailer
for initramfs image.

Signed-off-by: Stéphane Cerveau <voxtok@voxtok.com>
---
 recipes-kernel/linux/linux-raspberrypi.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
index 70e8bfe..634bd5e 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -61,6 +61,9 @@ do_rpiboot_mkimage() {
         if test -n "${KERNEL_DEVICETREE}"; then
             # Add RPi bootloader trailer to kernel image to enable DeviceTree support
             ${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/mkknlimg --dtok ${KERNEL_OUTPUT} ${KERNEL_OUTPUT}
+            if [ ! -z "${INITRAMFS_IMAGE}" ]; then
+				 ${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/mkknlimg --dtok ${KERNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs
+            fi
         fi
     fi
 }
-- 
2.1.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-10  9:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-10  9:43 [meta-raspberrypi][PATCH] linux-raspberry.inc: add initramfs support Stéphane Cerveau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.