summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@theqtcompany.com>2015-11-30 15:15:33 +0200
committerSamuli Piippo <samuli.piippo@theqtcompany.com>2015-12-01 13:32:11 +0000
commit4c29f9a6fbe37a7f8bcda64a0694bd2ac1334340 (patch)
treebf5aa65d9257255a97e82c3a4f241e18cf6baf77 /classes
parent9b853950e8f87ae2e6c8b9f9f4316e2ec88a8701 (diff)
downloadmeta-boot2qt-4c29f9a6fbe37a7f8bcda64a0694bd2ac1334340.tar.gz
Create .img binary image for all devices
Use the sdcard bbclass from meta-fsl-arm to build binary image for TI hardware. Append all other image creation functions to create the .img symlink. Change-Id: I1bb0b5ea893789831d6fae27ece93ce238bfcb49 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_sdcard.bbclass20
1 files changed, 16 insertions, 4 deletions
diff --git a/classes/image_types_sdcard.bbclass b/classes/image_types_sdcard.bbclass
index d9c8a77..6065cf0 100644
--- a/classes/image_types_sdcard.bbclass
+++ b/classes/image_types_sdcard.bbclass
@@ -20,11 +20,23 @@
20## 20##
21############################################################################# 21#############################################################################
22 22
23inherit image_types_fsl 23IMAGE_ROOTFS_EXTRA_SPACE = "100000"
24
25IMAGE_ROOTFS_EXTRA_SPACE = "300000"
26SDCARD_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3" 24SDCARD_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
25SDCARD_GENERATION_COMMAND_ti33x = "generate_imx_sdcard"
27 26
28IMAGE_CMD_sdcard_append () { 27IMAGE_CMD_sdcard_append() {
29 parted -s ${SDCARD} set 1 boot on 28 parted -s ${SDCARD} set 1 boot on
29
30 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img
31 ln -s ${IMAGE_NAME}.rootfs.sdcard ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img
32}
33
34IMAGE_CMD_rpi-sdimg_append() {
35 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img
36 ln -s ${IMAGE_NAME}.rootfs.rpi-sdimg ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img
37}
38
39build_hddimg_append() {
40 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img
41 ln -s ${IMAGE_NAME}.hddimg ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img
30} 42}