diff options
| author | Sébastien Mennetrier <s.mennetrier@innotis.org> | 2014-02-14 01:22:07 +0200 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2014-02-14 01:23:33 +0200 |
| commit | 5e62146ae34eef49ff8c4b52790e0ba6230377e5 (patch) | |
| tree | d1f549b7fd72eba16c6b2567828c7fda32eeca81 /classes/sdcard_image-rpi.bbclass | |
| parent | d6468b7f91b04be84aa89f7f959bb27cb4999db8 (diff) | |
| download | meta-raspberrypi-5e62146ae34eef49ff8c4b52790e0ba6230377e5.tar.gz | |
Add initramfs support
Permit to build an image with initramfs.
Add information in README to build with initramfs.
Change-Id: Icb812151a22771717805ec0a82feb7993f462b47
Signed-off-by: Sébastien Mennetrier <s.mennetrier@innotis.org>
Diffstat (limited to 'classes/sdcard_image-rpi.bbclass')
| -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 | ||
