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.bbclass16
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
21python 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
21addtask hddimg after do_bootdirectdisk before do_build 37addtask hddimg after do_bootdirectdisk before do_build
22do_hddimg[nostamp] = "1" 38do_hddimg[nostamp] = "1"