summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
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}