summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@theqtcompany.com>2015-12-01 08:55:18 +0200
committerSamuli Piippo <samuli.piippo@theqtcompany.com>2015-12-02 11:08:20 +0000
commitd2a64c24c0701e72094ad6fad7c629c6e8776fd0 (patch)
treeadcaf7a49906a89595d9551908303878b0cdd054 /classes
parent4c29f9a6fbe37a7f8bcda64a0694bd2ac1334340 (diff)
downloadmeta-boot2qt-d2a64c24c0701e72094ad6fad7c629c6e8776fd0.tar.gz
Generate deploy conf for flashing wizard
Change-Id: I23cc54e51b7d10db0fd64d6676bd86cdf029beda Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com> Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/deploy-conf.bbclass37
1 files changed, 37 insertions, 0 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}