diff options
| author | Andrei Gherzan <andrei@gherzan.ro> | 2016-02-28 12:47:32 +0100 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-02-28 12:48:20 +0100 |
| commit | e9de6d816de88b92a0134735a64e280c99772dba (patch) | |
| tree | 6371d7b359cb895f5372666b56f88b40ed9e1326 | |
| parent | 9675f8f09ad23270050ebb4db2b62657fac4fdc2 (diff) | |
| download | meta-raspberrypi-e9de6d816de88b92a0134735a64e280c99772dba.tar.gz | |
linux-raspberrypi: Make sure we have initramfs image before running mkknlimg
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 1befee4..5a8a175 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
| @@ -66,10 +66,12 @@ do_rpiboot_mkimage() { | |||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | do_bundle_initramfs_append() { | 68 | do_bundle_initramfs_append() { |
| 69 | if test "x${KERNEL_IMAGETYPE}" != "xuImage" ; then | 69 | if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1 ]; then |
| 70 | if test -n "${KERNEL_DEVICETREE}"; then | 70 | if test "x${KERNEL_IMAGETYPE}" != "xuImage" ; then |
| 71 | # Add RPi bootloader trailer to kernel image to enable DeviceTree support | 71 | if test -n "${KERNEL_DEVICETREE}"; then |
| 72 | ${STAGING_LIBEXECDIR_NATIVE}/mkknlimg --dtok ${KERNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs | 72 | # Add RPi bootloader trailer to kernel image to enable DeviceTree support |
| 73 | ${STAGING_LIBEXECDIR_NATIVE}/mkknlimg --dtok ${KERNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs | ||
| 74 | fi | ||
| 73 | fi | 75 | fi |
| 74 | fi | 76 | fi |
| 75 | } | 77 | } |
