summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@voxtok.com>2016-02-10 11:26:34 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2016-02-28 12:48:20 +0100
commit9675f8f09ad23270050ebb4db2b62657fac4fdc2 (patch)
tree41732c1a5beeeecf3b63a39db9c901dbb46363b5
parent4d42a6efec71b46df0cfb6e7bca1f90af8f61422 (diff)
downloadmeta-raspberrypi-9675f8f09ad23270050ebb4db2b62657fac4fdc2.tar.gz
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>
-rw-r--r--recipes-kernel/linux/linux-raspberrypi.inc10
1 files changed, 10 insertions, 0 deletions
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() {
64 fi 64 fi
65 fi 65 fi
66} 66}
67
68do_bundle_initramfs_append() {
69 if test "x${KERNEL_IMAGETYPE}" != "xuImage" ; then
70 if test -n "${KERNEL_DEVICETREE}"; then
71 # Add RPi bootloader trailer to kernel image to enable DeviceTree support
72 ${STAGING_LIBEXECDIR_NATIVE}/mkknlimg --dtok ${KERNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs
73 fi
74 fi
75}
76
67addtask rpiboot_mkimage before do_install after do_compile 77addtask rpiboot_mkimage before do_install after do_compile