Lines Matching refs:constants
222 def __init__(self, constants, header): argument
223 self.constants = constants
321 def get_constant(constants, key, type_, log): argument
322 const = constants.get(key)
333 def get_string(manifest_dict, key, constants, log, optional=False, argument
348 const_value = get_constant(constants, value, type_, log)
365 def get_int(manifest_dict, key, constants, log, optional=False, argument
376 const_value = get_constant(constants, value, CONST_INT, log)
441 def get_boolean(manifest_dict, key, constants, log, optional=False, argument
452 const_value = get_constant(constants, value, CONST_BOOL, log)
469 def get_uuid(manifest_dict, key, constants, log, optional=False, default=None): argument
476 const_value = get_constant(constants, uuid, CONST_UUID, log)
483 def get_port(port, key, constants, log, optional=False, default=None): argument
484 return get_string(port, key, constants, log, optional, default)
573 def parse_mem_map(mem_maps, key, constants, log): argument
583 get_int(mem_map_entry, MEM_MAP_ID, constants, log),
584 get_int(mem_map_entry, MEM_MAP_ADDR, constants, log),
585 get_int(mem_map_entry, MEM_MAP_SIZE, constants, log),
587 get_string(mem_map_entry, MEM_MAP_TYPE, constants, log,
590 get_boolean(mem_map_entry, MEM_MAP_NON_SECURE, constants, log,
603 def parse_mgmt_flags(flags, constants, log): argument
608 get_boolean(flags, MGMT_FLAG_RESTART_ON_EXIT, constants, log,
610 get_boolean(flags, MGMT_FLAG_DEFERRED_START, constants, log,
612 get_boolean(flags, MGMT_FLAG_NON_CRITICAL_APP, constants, log,
623 def parse_apploader_flags(flags, constants, log): argument
628 get_boolean(flags, APPLOADER_FLAGS_REQUIRES_ENCRYPTION, constants, log,
639 def parse_app_start_ports(start_port_list, key, constants, log): argument
647 name = get_port(port_entry, START_PORT_NAME, constants, log)
656 get_boolean(flags, START_PORT_ALLOW_TA_CONNECT, constants,
658 get_boolean(flags, START_PORT_ALLOW_NS_CONNECT, constants,
684 def parse_manifest_config(manifest_dict, constants, default_app_name, log): argument
687 uuid = get_uuid(manifest_dict, UUID, constants, log)
690 min_heap = parse_memory_size(get_int(manifest_dict, MIN_HEAP, constants,
694 min_stack = parse_memory_size(get_int(manifest_dict, MIN_STACK, constants,
700 constants, log,
707 constants, log)
716 constants, log)
723 constants,
728 get_string(manifest_dict, APP_NAME, constants, log,
732 pinned_cpu = get_int(manifest_dict, PINNED_CPU, constants, log,
736 priority = get_int(manifest_dict, PRIORITY, constants, log, optional=True)
739 version = get_int(manifest_dict, VERSION, constants, log, optional=True)
743 manifest_dict, MIN_VERSION, constants, log, optional=True)
755 constants, log)
1177 for const in const_config.constants:
1220 constants = []
1225 constants.append(parse_constant(item, log))
1232 return ConfigConstants(constants, header_file)
1298 def process_manifest_files(manifest_files, constants, log): argument
1324 return parse_manifest_config(manifest_dict_merged, constants,
1329 constants = {}
1331 for const in const_config.constants:
1332 constants[const.name] = const
1334 return constants
1396 if args.constants and not args.header_dir:
1412 config_constants = process_config_constants(args.constants,
1420 constants = index_constants(config_constants)
1422 manifest = process_manifest_files(args.input_filenames, constants, log)