Changeset 7aaed09 in mainline for tools/config.py


Ignore:
Timestamp:
2011-12-18T14:02:30Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c868e2d
Parents:
3b71e84d (diff), 1761268 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config.py

    r3b71e84d r7aaed09  
    8585        if ctype == 'cnf':
    8686                return True
     87       
    8788        return False
    8889
     
    242243               
    243244                default = get_default_rule(rule)
    244 
     245               
    245246                #
    246247                # If we don't have a value but we do have
     
    344345        return True
    345346
     347def 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
    346363def create_output(mkname, mcname, config, rules):
    347364        "Create output configuration"
     
    504521        if (len(sys.argv) >= 3) and (sys.argv[2] == 'default'):
    505522                if (infer_verify_choices(config, rules)):
     523                        preprocess_config(config, rules)
    506524                        create_output(MAKEFILE, MACROS, config, rules)
    507525                        return 0
     
    517535               
    518536                if (infer_verify_choices(config, rules)):
     537                        preprocess_config(config, rules)
    519538                        create_output(MAKEFILE, MACROS, config, rules)
    520539                        return 0
     
    564583                               
    565584                                default = get_default_rule(rule)
    566 
     585                               
    567586                                #
    568587                                # If we don't have a value but we do have
     
    626645                xtui.screen_done(screen)
    627646       
     647        preprocess_config(config, rules)
    628648        create_output(MAKEFILE, MACROS, config, rules)
    629649        return 0
Note: See TracChangeset for help on using the changeset viewer.