Changeset 1783f75 in mainline for tools/ew.py
- Timestamp:
- 2019-08-17T12:49:43Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e503cea9
- Parents:
- b3ff685
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-29 14:08:34)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
rb3ff685 r1783f75 34 34 35 35 import os 36 import platform 37 import re 38 import subprocess 36 39 import sys 37 import subprocess38 import autotool39 import platform40 40 import thread 41 41 import time 42 42 43 43 overrides = {} 44 45 CONFIG = 'Makefile.config' 46 47 def read_config(): 48 "Read HelenOS build configuration" 49 50 inf = open(CONFIG, 'r') 51 config = {} 52 53 for line in inf: 54 res = re.match(r'^(?:#!# )?([^#]\w*)\s*=\s*(.*?)\s*$', line) 55 if (res): 56 config[res.group(1)] = res.group(2) 57 58 inf.close() 59 return config 44 60 45 61 def is_override(str): … … 494 510 exit() 495 511 496 config = {} 497 autotool.read_config(autotool.CONFIG, config) 512 config = read_config() 498 513 499 514 if 'PLATFORM' in config.keys():
Note:
See TracChangeset
for help on using the changeset viewer.