Changes in tools/config.py [476ac3b:f857e8b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config.py
r476ac3b rf857e8b 445 445 def create_output(mkname, mcname, config, rules): 446 446 "Create output configuration" 447 448 varname_strip = 'CONFIG_STRIP_REVISION_INFO' 449 strip_rev_info = (varname_strip in config) and (config[varname_strip] == 'y') 450 451 if strip_rev_info: 452 timestamp_unix = int(0) 453 else: 454 # TODO: Use commit timestamp instead of build time. 455 timestamp_unix = int(time.time()) 456 447 448 timestamp_unix = int(time.time()) 457 449 timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(timestamp_unix)) 458 450 … … 466 458 sys.stderr.write("failed\n") 467 459 468 if (not strip_rev_info) and (len(version) == 3):460 if len(version) == 3: 469 461 revision = version[1] 470 462 if version[0] != 1:
Note:
See TracChangeset
for help on using the changeset viewer.