linux-raspberry.inc: add initramfs support

append initramfs creation to install RPi bootloader trailer

Signed-off-by: Stéphane Cerveau <voxtok@voxtok.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
This commit is contained in:
Stéphane Cerveau 2016-02-10 11:26:34 +01:00 committed by Andrei Gherzan
parent 4d42a6efec
commit 9675f8f09a

View File

@ -64,4 +64,14 @@ do_rpiboot_mkimage() {
fi fi
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 addtask rpiboot_mkimage before do_install after do_compile