diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-11-14 23:48:13 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-11-27 22:42:43 +0200 |
commit | cf62711b7cb045ea118c86b42e2d099ea8999047 (patch) | |
tree | b23211fe0f594feb912cc4759914929572544774 /classes | |
parent | ed0cd949143cd34a6bd74521ac04a545b939586c (diff) | |
download | meta-raspberrypi-cf62711b7cb045ea118c86b42e2d099ea8999047.tar.gz |
sdcard_image-rpi: Remove RPI_GPU_FIRMWARE and add/remove files to boot partition
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sdcard_image-rpi.bbclass | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index 00d9cc4..421f561 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
@@ -39,8 +39,6 @@ IMAGE_ROOTFS_ALIGNMENT = "4096" | |||
39 | SDIMG_ROOTFS_TYPE ?= "ext3" | 39 | SDIMG_ROOTFS_TYPE ?= "ext3" |
40 | SDIMG_ROOTFS = "${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" | 40 | SDIMG_ROOTFS = "${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" |
41 | 41 | ||
42 | RPI_GPU_FIRMWARE ?= "arm192" | ||
43 | |||
44 | IMAGE_DEPENDS_rpi-sdimg = " \ | 42 | IMAGE_DEPENDS_rpi-sdimg = " \ |
45 | parted-native \ | 43 | parted-native \ |
46 | mtools-native \ | 44 | mtools-native \ |
@@ -79,20 +77,11 @@ IMAGE_CMD_rpi-sdimg () { | |||
79 | # Create a vfat image with boot files | 77 | # Create a vfat image with boot files |
80 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') | 78 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') |
81 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 79 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
82 | case "${RPI_GPU_FIRMWARE}" in | 80 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/start.elf :: |
83 | "arm128" | "arm192" | "arm224" | "arm240") | 81 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/fixup.dat :: |
84 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${RPI_GPU_FIRMWARE}_start.elf ::start.elf | ||
85 | ;; | ||
86 | *) | ||
87 | bberror "RPI_GPU_FIRMWARE is undefined or value not recognised. Possible values: arm128, arm192, arm224 or arm240." | ||
88 | exit 1 | ||
89 | ;; | ||
90 | esac | ||
91 | |||
92 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt :: | 82 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt :: |
93 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/cmdline.txt :: | 83 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/cmdline.txt :: |
94 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/bootcode.bin :: | 84 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/bootcode.bin :: |
95 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/loader.bin :: | ||
96 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img | 85 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img |
97 | 86 | ||
98 | if [ -n ${FATPAYLOAD} ] ; then | 87 | if [ -n ${FATPAYLOAD} ] ; then |