diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2013-11-07 15:51:27 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2013-11-15 09:07:41 +0200 |
commit | 2ddb2aa8fe9ce32c9d52b639cdbf75939c6fb1b9 (patch) | |
tree | be57772620bcac92df50296b4755fbd53bcfa30a | |
parent | 713306041324f18fd546fbf99cd7d15ec1eeb6f2 (diff) | |
download | meta-boot2qt-2ddb2aa8fe9ce32c9d52b639cdbf75939c6fb1b9.tar.gz |
Move kernel console to ttyS0 for emulator
Change-Id: I881e4423d22e70ddd658d29b554c62c1fa4924fb
Reviewed-by: Rainer Keller <rainer.keller@digia.com>
-rw-r--r-- | classes/image-hdd.bbclass | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/classes/image-hdd.bbclass b/classes/image-hdd.bbclass index fc76234..25d0a55 100644 --- a/classes/image-hdd.bbclass +++ b/classes/image-hdd.bbclass | |||
@@ -18,5 +18,21 @@ python do_hddimg() { | |||
18 | bb.build.exec_func('create_hdd_image', d) | 18 | bb.build.exec_func('create_hdd_image', d) |
19 | } | 19 | } |
20 | 20 | ||
21 | python build_syslinux_cfg_append () { | ||
22 | import re | ||
23 | |||
24 | try: | ||
25 | cfgfile = file(cfile, 'r+') | ||
26 | except OSError: | ||
27 | raise bb.build.funcFailed('Unable to open %s' % (cfile)) | ||
28 | |||
29 | f_content = cfgfile.read() | ||
30 | f_content = re.sub('tty0', 'ttyS0,115200', f_content) | ||
31 | |||
32 | cfgfile.seek(0) | ||
33 | cfgfile.write(f_content) | ||
34 | cfgfile.close() | ||
35 | } | ||
36 | |||
21 | addtask hddimg after do_bootdirectdisk before do_build | 37 | addtask hddimg after do_bootdirectdisk before do_build |
22 | do_hddimg[nostamp] = "1" | 38 | do_hddimg[nostamp] = "1" |