summaryrefslogtreecommitdiffstats
path: root/classes/image-hdd.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/image-hdd.bbclass')
-rw-r--r--classes/image-hdd.bbclass38
1 files changed, 38 insertions, 0 deletions
diff --git a/classes/image-hdd.bbclass b/classes/image-hdd.bbclass
index fc76234..123c417 100644
--- a/classes/image-hdd.bbclass
+++ b/classes/image-hdd.bbclass
@@ -1,3 +1,25 @@
1#############################################################################
2##
3## Copyright (C) 2013 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://qt.digia.com/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
1# need to define the dependency and the ROOTFS for directdisk 23# need to define the dependency and the ROOTFS for directdisk
2do_bootdirectdisk[depends] += "${PN}:do_rootfs" 24do_bootdirectdisk[depends] += "${PN}:do_rootfs"
3ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" 25ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3"
@@ -18,5 +40,21 @@ python do_hddimg() {
18 bb.build.exec_func('create_hdd_image', d) 40 bb.build.exec_func('create_hdd_image', d)
19} 41}
20 42
43python build_syslinux_cfg_append () {
44 import re
45
46 try:
47 cfgfile = file(cfile, 'r+')
48 except OSError:
49 raise bb.build.funcFailed('Unable to open %s' % (cfile))
50
51 f_content = cfgfile.read()
52 f_content = re.sub('tty0', 'ttyS0,115200', f_content)
53
54 cfgfile.seek(0)
55 cfgfile.write(f_content)
56 cfgfile.close()
57}
58
21addtask hddimg after do_bootdirectdisk before do_build 59addtask hddimg after do_bootdirectdisk before do_build
22do_hddimg[nostamp] = "1" 60do_hddimg[nostamp] = "1"