meta-digi-arm: set BOARD_BOOTIMAGE_PARTITION_SIZE in KiB

This will allow in following commit to use the same VFAT boot image for
EMMC and SD. Until now we were creating different boot images for EMMC
and SD card images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 13e9ec7608d42430c2a01a728d030752a71f7948)
This commit is contained in:
Javier Viguera 2015-06-25 18:43:36 +02:00
parent 2765fc195c
commit d9b4d0731e
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ IMAGE_CMD_boot.vfat() {
# 1KB blocks for mkfs.vfat # 1KB blocks for mkfs.vfat
BOOTIMG_BLOCKS="$(expr ${BOOTIMG_FILES_SIZE} / 1024)" BOOTIMG_BLOCKS="$(expr ${BOOTIMG_FILES_SIZE} / 1024)"
if [ -n "${BOARD_BOOTIMAGE_PARTITION_SIZE}" ]; then if [ -n "${BOARD_BOOTIMAGE_PARTITION_SIZE}" ]; then
BOOTIMG_BLOCKS="$(expr ${BOARD_BOOTIMAGE_PARTITION_SIZE} / 1024)" BOOTIMG_BLOCKS="${BOARD_BOOTIMAGE_PARTITION_SIZE}"
fi fi
# POKY: Ensure total sectors is a multiple of sectors per track or mcopy will # POKY: Ensure total sectors is a multiple of sectors per track or mcopy will

View File

@ -33,8 +33,8 @@ BT_TTY ?= "ttymxc1"
# U-Boot script to be copied to the SD image # U-Boot script to be copied to the SD image
BOOT_SCRIPTS = "boot-sd.scr:boot.scr" BOOT_SCRIPTS = "boot-sd.scr:boot.scr"
# Boot partition size for FAT image generation, 64MiB # Boot partition size in KiB, (default 64MiB)
BOARD_BOOTIMAGE_PARTITION_SIZE ?= "67108864" BOARD_BOOTIMAGE_PARTITION_SIZE ?= "65536"
# Flash image types # Flash image types
SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4" SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4"