Changes in tools/config.py [1f5c9c96:c01f8e6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config.py
r1f5c9c96 rc01f8e6 85 85 if ctype == 'cnf': 86 86 return True 87 88 87 return False 89 88 … … 243 242 244 243 default = get_default_rule(rule) 245 244 246 245 # 247 246 # If we don't have a value but we do have … … 345 344 return True 346 345 347 def preprocess_config(config, rules):348 "Preprocess configuration"349 350 varname_mode = 'CONFIG_BFB_MODE'351 varname_width = 'CONFIG_BFB_WIDTH'352 varname_height = 'CONFIG_BFB_HEIGHT'353 354 if varname_mode in config:355 mode = config[varname_mode].partition('x')356 357 config[varname_width] = mode[0]358 rules.append((varname_width, 'choice', 'Default framebuffer width', None, None))359 360 config[varname_height] = mode[2]361 rules.append((varname_height, 'choice', 'Default framebuffer height', None, None))362 363 346 def create_output(mkname, mcname, config, rules): 364 347 "Create output configuration" … … 521 504 if (len(sys.argv) >= 3) and (sys.argv[2] == 'default'): 522 505 if (infer_verify_choices(config, rules)): 523 preprocess_config(config, rules)524 506 create_output(MAKEFILE, MACROS, config, rules) 525 507 return 0 … … 535 517 536 518 if (infer_verify_choices(config, rules)): 537 preprocess_config(config, rules)538 519 create_output(MAKEFILE, MACROS, config, rules) 539 520 return 0 … … 583 564 584 565 default = get_default_rule(rule) 585 566 586 567 # 587 568 # If we don't have a value but we do have … … 645 626 xtui.screen_done(screen) 646 627 647 preprocess_config(config, rules)648 628 create_output(MAKEFILE, MACROS, config, rules) 649 629 return 0
Note:
See TracChangeset
for help on using the changeset viewer.