diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sdcard_image-rpi.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index 179b7b7..eb337dc 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
@@ -26,6 +26,9 @@ inherit image_types | |||
26 | # Set kernel and boot loader | 26 | # Set kernel and boot loader |
27 | IMAGE_BOOTLOADER ?= "bcm2835-bootfiles" | 27 | IMAGE_BOOTLOADER ?= "bcm2835-bootfiles" |
28 | 28 | ||
29 | # Set initramfs extension | ||
30 | KERNEL_INITRAMFS ?= "" | ||
31 | |||
29 | # Boot partition volume id | 32 | # Boot partition volume id |
30 | BOOTDD_VOLUME_ID ?= "${MACHINE}" | 33 | BOOTDD_VOLUME_ID ?= "${MACHINE}" |
31 | 34 | ||
@@ -95,10 +98,10 @@ IMAGE_CMD_rpi-sdimg () { | |||
95 | case "${KERNEL_IMAGETYPE}" in | 98 | case "${KERNEL_IMAGETYPE}" in |
96 | "uImage") | 99 | "uImage") |
97 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/u-boot.img ::kernel.img | 100 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/u-boot.img ::kernel.img |
98 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::uImage | 101 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin ::uImage |
99 | ;; | 102 | ;; |
100 | *) | 103 | *) |
101 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img | 104 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin ::kernel.img |
102 | ;; | 105 | ;; |
103 | esac | 106 | esac |
104 | 107 | ||