diff options
author | Sander van Grieken <sander@outrightsolutions.nl> | 2012-08-24 13:54:19 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-08-29 00:01:23 +0300 |
commit | 32d2d1bcde24fa95d0771d5a7ae8b64c293083e0 (patch) | |
tree | d99abe726823fb3dcb8130ab39f967cb367d8e52 /classes | |
parent | 12b0f2db3794b25c976b037650670caca77a7293 (diff) | |
download | meta-raspberrypi-32d2d1bcde24fa95d0771d5a7ae8b64c293083e0.tar.gz |
sdcard_image-rpi.bbclass: Add support for 240M/16M GPU memory split
Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sdcard_image-rpi.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index e3c12d7..9bce5af 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
@@ -28,6 +28,7 @@ SDIMG_ROOTFS = "${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" | |||
28 | # arm128 : 128M ARM, 128M GPU split | 28 | # arm128 : 128M ARM, 128M GPU split |
29 | # arm192 : 192M ARM, 64M GPU split | 29 | # arm192 : 192M ARM, 64M GPU split |
30 | # arm224 : 224M ARM, 32M GPU split | 30 | # arm224 : 224M ARM, 32M GPU split |
31 | # arm240 : 240M ARM, 16M GPU split | ||
31 | RPI_GPU_FIRMWARE ?= "arm192" | 32 | RPI_GPU_FIRMWARE ?= "arm192" |
32 | 33 | ||
33 | IMAGE_DEPENDS_rpi-sdimg = " \ | 34 | IMAGE_DEPENDS_rpi-sdimg = " \ |
@@ -63,11 +64,11 @@ IMAGE_CMD_rpi-sdimg () { | |||
63 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') | 64 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') |
64 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 65 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
65 | case "${RPI_GPU_FIRMWARE}" in | 66 | case "${RPI_GPU_FIRMWARE}" in |
66 | "arm128" | "arm192" | "arm224") | 67 | "arm128" | "arm192" | "arm224" | "arm240") |
67 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${RPI_GPU_FIRMWARE}_start.elf ::start.elf | 68 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${RPI_GPU_FIRMWARE}_start.elf ::start.elf |
68 | ;; | 69 | ;; |
69 | *) | 70 | *) |
70 | bberror "RPI_GPU_FIRMWARE is undefined or value not recongnised. Possible values: arm128, arm192 or arm224." | 71 | bberror "RPI_GPU_FIRMWARE is undefined or value not recognised. Possible values: arm128, arm192, arm224 or arm240." |
71 | exit 1 | 72 | exit 1 |
72 | ;; | 73 | ;; |
73 | esac | 74 | esac |