summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/deploy-conf.bbclass37
-rw-r--r--classes/image_types_sdcard.bbclass20
2 files changed, 53 insertions, 4 deletions
diff --git a/classes/deploy-conf.bbclass b/classes/deploy-conf.bbclass
new file mode 100644
index 0000000..c49c375
--- /dev/null
+++ b/classes/deploy-conf.bbclass
@@ -0,0 +1,37 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://www.qt.io/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23inherit image_types
24
25DEPLOY_CONF_NAME ?= "${MACHINE}"
26DEPLOY_CONF_TYPE ?= "Boot2Qt"
27
28IMAGE_CMD_conf() {
29 cat > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.conf <<EOF
30[${DEPLOY_CONF_TYPE} | ${DEPLOY_CONF_NAME}]
31platform=${MACHINE}
32os=linux
33board=
34imagefile=${IMAGE_LINK_NAME}.img
35asroot=true
36EOF
37}
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}