[yocto] [meta-raspberrypi][PATCH V2] linux-raspberry.inc: add initramfs support
append initramfs creation to install RPi bootloader trailer Signed-off-by: Stéphane Cerveau <vox...@voxtok.com> --- recipes-kernel/linux/linux-raspberrypi.inc | 9 + 1 file changed, 9 insertions(+) diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 70e8bfe..74dbf19 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -64,4 +64,13 @@ 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_DIR_NATIVE}/usr/lib/rpi-mkimage/mkknlimg --dtok ${KERNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs +fi +fi +} + addtask rpiboot_mkimage before do_install after do_compile -- 2.1.4 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-raspberrypi][PATCH] linux-raspberry.inc: add initramfs support
in do_rpiboot_mkimage add rpi bootload trailer for initramfs image. Signed-off-by: Stéphane Cerveau <vox...@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 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto