Changes in tools/config.py [c01f8e6:1f5c9c96] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config.py
rc01f8e6 r1f5c9c96 85 85 if ctype == 'cnf': 86 86 return True 87 87 88 return False 88 89 … … 242 243 243 244 default = get_default_rule(rule) 244 245 245 246 # 246 247 # If we don't have a value but we do have … … 344 345 return True 345 346 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 346 363 def create_output(mkname, mcname, config, rules): 347 364 "Create output configuration" … … 504 521 if (len(sys.argv) >= 3) and (sys.argv[2] == 'default'): 505 522 if (infer_verify_choices(config, rules)): 523 preprocess_config(config, rules) 506 524 create_output(MAKEFILE, MACROS, config, rules) 507 525 return 0 … … 517 535 518 536 if (infer_verify_choices(config, rules)): 537 preprocess_config(config, rules) 519 538 create_output(MAKEFILE, MACROS, config, rules) 520 539 return 0 … … 564 583 565 584 default = get_default_rule(rule) 566 585 567 586 # 568 587 # If we don't have a value but we do have … … 626 645 xtui.screen_done(screen) 627 646 647 preprocess_config(config, rules) 628 648 create_output(MAKEFILE, MACROS, config, rules) 629 649 return 0
Note:
See TracChangeset
for help on using the changeset viewer.