diff options
Diffstat (limited to 'classes/image_dd.bbclass')
-rw-r--r-- | classes/image_dd.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/image_dd.bbclass b/classes/image_dd.bbclass index 07cd58f..e0addf7 100644 --- a/classes/image_dd.bbclass +++ b/classes/image_dd.bbclass | |||
@@ -27,11 +27,11 @@ | |||
27 | ## | 27 | ## |
28 | ############################################################################ | 28 | ############################################################################ |
29 | 29 | ||
30 | # This class is based on meta-fsl-arm/classes/image_types_fsl.bbclass::generate_imx_sdcard() | 30 | # This class is based on meta-freescale/classes/image_types_fsl.bbclass::generate_imx_sdcard() |
31 | DESCRIPTION = "The base class for building images that can be deployed with GNU coreutils dd tool." | 31 | DESCRIPTION = "The base class for building images that can be deployed with GNU coreutils dd tool." |
32 | inherit image_types | 32 | inherit image_types |
33 | 33 | ||
34 | IMAGE="${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.img" | 34 | IMAGE="${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.img" |
35 | 35 | ||
36 | # Boot partition size [in KiB] | 36 | # Boot partition size [in KiB] |
37 | BOOT_SPACE ?= "8192" | 37 | BOOT_SPACE ?= "8192" |
@@ -53,7 +53,7 @@ EXPORT_FUNCTIONS do_populate_boot | |||
53 | 53 | ||
54 | IMAGE_CMD_dd() { | 54 | IMAGE_CMD_dd() { |
55 | 55 | ||
56 | ROOTFS="${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3" | 56 | ROOTFS="${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.ext3" |
57 | 57 | ||
58 | # Align boot partition and calculate total binary image size | 58 | # Align boot partition and calculate total binary image size |
59 | BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1) | 59 | BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1) |
@@ -80,7 +80,7 @@ IMAGE_CMD_dd() { | |||
80 | dd if=${WORKDIR}/boot.img of=${IMAGE} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | 80 | dd if=${WORKDIR}/boot.img of=${IMAGE} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync |
81 | dd if=${ROOTFS} of=${IMAGE} conv=notrunc seek=1 bs=$(expr ${BOOT_SPACE_ALIGNED} \* 1024 + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | 81 | dd if=${ROOTFS} of=${IMAGE} conv=notrunc seek=1 bs=$(expr ${BOOT_SPACE_ALIGNED} \* 1024 + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync |
82 | 82 | ||
83 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img | 83 | rm -f ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img |
84 | ln -s ${IMAGE_NAME}.rootfs.img ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img | 84 | ln -s ${IMAGE_NAME}.rootfs.img ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img |
85 | } | 85 | } |
86 | 86 | ||