linux-raspberry.inc: add initramfs support
PATCH v3 1/1 linux-raspberry.inc: add initramfs support
From: Stéphane Cerveau <[email protected]>
append initramfs creation to install RPi bootloader trailer
Signed-off-by Stéphane Cerveau <[email protected]>
Signed-off-by Andrei Gherzan <[email protected]>
--- recipes-kernel/linux/linux-raspberrypi.inc | 10 ++++++++++ 1 file changed, 10 insertions(+)
recipes-kernel/linux/linux-raspberrypi.inc +10 -0
@@ -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