[yocto] [meta-raspberrypi][PATCH v4 1/2] linux-raspberry.inc: add initramfs support

Andrei Gherzan andrei at gherzan.ro
Mon Feb 29 13:16:10 PST 2016


On Sun, Feb 28, 2016 at 12:48:35PM +0100, Andrei Gherzan wrote:
> From: Stéphane Cerveau <scerveau at voxtok.com>
>
> append initramfs creation to install RPi bootloader trailer
>
> Signed-off-by: Stéphane Cerveau <voxtok at voxtok.com>
> Signed-off-by: Andrei Gherzan <andrei at gherzan.ro>
> ---
>  recipes-kernel/linux/linux-raspberrypi.inc | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
> index 8c7c46c..1befee4 100644
> --- a/recipes-kernel/linux/linux-raspberrypi.inc
> +++ b/recipes-kernel/linux/linux-raspberrypi.inc
> @@ -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
> --
> 2.7.0
>

Merged both patches to master.

--
Andrei Gherzan



More information about the yocto mailing list