Changes in tools/ew.py [01552e3:ecf0a04b] in mainline
- File:
-
- 1 edited
-
tools/ew.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r01552e3 recf0a04b 33 33 """ 34 34 35 import inspect36 35 import os 36 import sys 37 import subprocess 38 import autotool 37 39 import platform 38 import re39 import subprocess40 import sys41 40 import thread 42 41 import time 43 42 44 43 overrides = {} 45 46 CONFIG = 'Makefile.config'47 48 TOOLS_DIR = os.path.dirname(inspect.getabsfile(inspect.currentframe()))49 50 def read_config():51 "Read HelenOS build configuration"52 53 inf = open(CONFIG, 'r')54 config = {}55 56 for line in inf:57 res = re.match(r'^(?:#!# )?([^#]\w*)\s*=\s*(.*?)\s*$', line)58 if (res):59 config[res.group(1)] = res.group(2)60 61 inf.close()62 return config63 44 64 45 def is_override(str): … … 183 164 def hdisk_mk(): 184 165 if not os.path.exists('hdisk.img'): 185 subprocess.call( TOOLS_DIR + '/mkfat.py 1048576dist/data hdisk.img', shell = True)166 subprocess.call('tools/mkfat.py 1048576 uspace/dist/data hdisk.img', shell = True) 186 167 187 168 def qemu_bd_options(): … … 317 298 318 299 def ski_run(platform, machine, processor): 319 run_in_console('ski -i ' + TOOLS_DIR + '/conf/ski.conf', 'HelenOS/ia64 on ski')300 run_in_console('ski -i tools/conf/ski.conf', 'HelenOS/ia64 on ski') 320 301 321 302 def msim_run(platform, machine, processor): 322 303 hdisk_mk() 323 run_in_console('msim -c ' + TOOLS_DIR + '/conf/msim.conf', 'HelenOS/mips32 on msim')304 run_in_console('msim -c tools/conf/msim.conf', 'HelenOS/mips32 on msim') 324 305 325 306 def spike_run(platform, machine, processor): … … 514 495 exit() 515 496 516 config = read_config() 497 config = {} 498 autotool.read_config(autotool.CONFIG, config) 517 499 518 500 if 'PLATFORM' in config.keys():
Note:
See TracChangeset
for help on using the changeset viewer.
