diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image-hdd.bbclass | 38 | ||||
-rw-r--r-- | classes/image_types_sdcard.bbclass | 22 |
2 files changed, 60 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 |
2 | do_bootdirectdisk[depends] += "${PN}:do_rootfs" | 24 | do_bootdirectdisk[depends] += "${PN}:do_rootfs" |
3 | ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" | 25 | ROOTFS ?= "${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 | ||
43 | python 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 | |||
21 | addtask hddimg after do_bootdirectdisk before do_build | 59 | addtask hddimg after do_bootdirectdisk before do_build |
22 | do_hddimg[nostamp] = "1" | 60 | do_hddimg[nostamp] = "1" |
diff --git a/classes/image_types_sdcard.bbclass b/classes/image_types_sdcard.bbclass index 7b11482..221ccd4 100644 --- a/classes/image_types_sdcard.bbclass +++ b/classes/image_types_sdcard.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 | inherit image_types_fsl | 23 | inherit image_types_fsl |
2 | 24 | ||
3 | IMAGE_ROOTFS_EXTRA_SPACE = "300000" | 25 | IMAGE_ROOTFS_EXTRA_SPACE = "300000" |