Lines Matching full:design
139 def merge_form_factor(design, name, device_form_factor): argument
142 logging.warning("Null form factor for '%s', skipping", design)
149 for design_config in design.configs:
161 # canonicalize design names to be compatible with the DLM database
163 canonical_name(design.name) for design in config_bundle.design_list
183 for design, name in zip(config_bundle.design_list, project_names):
197 merge_form_factor(design, name, rows[0].get('deviceFormFactor'))
428 def merge_device_brand(config_bundle, design, model, project_name): argument
429 """Merge brand information from model.yaml into specific Design instance.
431 The ConfigBundle and Design protos are updated in place with the information
434 In general we'll have a 1:1 mapping with Design to Brand information so we
439 design (Design): design in the config bundle to update
452 # find/create new brand entry for the design
460 if (brand.design_id == design.id and brand.brand_name == brand_name and
468 device_brand.design_id.MergeFrom(design.id)
509 """Merge model from model.yaml into a specific Design.Config instance.
511 The ConfigBundle, and Design.Config are updated in place with
516 design_config (Design.Config): design config in the config bundle to update
587 for design in input_bundle.design_list:
589 not safe_equal(design.program_id.value, program_id):
591 ensure_models.add(design.name.lower())
613 Either found Design for input parameters or new one created and placed
623 for design in config_bundle.design_list:
625 if not safe_equal(program.id.value, design.program_id.value):
628 if safe_equal(name_project, design.name):
629 return design
631 # no design found, create one
632 design = config_bundle.design_list.add()
633 design.id.value = name_project.lower()
634 design.name = name_project.lower()
635 design.program_id.MergeFrom(program.id)
636 return design
647 Either found Design and Design.Config for input parameters or new ones
651 design = find_design(name_program, name_project)
653 for config in design.configs:
656 return design, config
658 # Create new Design.Config, the board id is encoded according to CBI:
660 config = design.configs.add()
662 return design, config
691 # Lookup design config for this specific device
692 design, design_config = find_design_config(program_name, project, sku)
694 merge_device_brand(config_bundle, design, model, project_name)
699 design = find_design(program_name, project)