diff options
author | Stéphane Cerveau <scerveau@voxtok.com> | 2016-02-10 11:26:34 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-02-28 12:48:20 +0100 |
commit | 9675f8f09ad23270050ebb4db2b62657fac4fdc2 (patch) | |
tree | 41732c1a5beeeecf3b63a39db9c901dbb46363b5 | |
parent | 4d42a6efec71b46df0cfb6e7bca1f90af8f61422 (diff) | |
download | meta-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.inc | 10 |
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 | |||
68 | do_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 | |||
67 | addtask rpiboot_mkimage before do_install after do_compile | 77 | addtask rpiboot_mkimage before do_install after do_compile |