Lines Matching full:module
40 # The zephyr/module.yml file is a simple list of key value pairs to be used by
179 MODULE_YML_PATH = PurePath('zephyr/module.yml')
200 def process_module(module): argument
201 module_path = PurePath(module)
203 # The input is a module if zephyr/module.{yml,yaml} is a valid yaml file
232 def process_cmake(module, meta): argument
234 module_path = PurePath(module)
235 module_yml = module_path.joinpath('zephyr/module.yml')
245 if not validate_setting(cmake_setting, module, 'CMakeLists.txt'):
250 cmake_path = os.path.join(module, cmake_setting or 'zephyr')
263 def process_sysbuildcmake(module, meta): argument
265 module_path = PurePath(module)
266 module_yml = module_path.joinpath('zephyr/module.yml')
276 if not validate_setting(cmake_setting, module, 'CMakeLists.txt'):
284 cmake_path = os.path.join(module, cmake_setting or 'zephyr')
297 def process_settings(module, meta): argument
306 root_path = PurePath(module) / setting
325 def process_blobs(module, meta): argument
331 blobs_path = Path(module) / MODULE_BLOBS_PATH
333 blob['module'] = meta.get('name', None)
375 def process_kconfig(module, meta): argument
376 blobs = process_blobs(module, meta)
379 module_path = PurePath(module)
380 module_yml = module_path.joinpath('zephyr/module.yml')
386 if not validate_setting(kconfig_setting, module):
391 kconfig_file = os.path.join(module, kconfig_setting or 'zephyr/Kconfig')
401 def process_sysbuildkconfig(module, meta): argument
403 module_path = PurePath(module)
404 module_yml = module_path.joinpath('zephyr/module.yml')
410 if not validate_setting(kconfig_setting, module):
416 kconfig_file = os.path.join(module, kconfig_setting)
426 def process_twister(module, meta): argument
435 dir = os.path.join(module, pth)
441 dir = os.path.join(module, pth)
639 for module in modules:
642 meta_module = _get_meta_project(meta_projects, module.project)
645 meta_module, dirty = _create_meta_project(module.project)
648 meta_module['name'] = module.meta.get('name')
650 if module.meta.get('security'):
651 meta_module['security'] = module.meta.get('security')
738 Module = namedtuple('Module', ['project', 'meta', 'depends'])
749 # Avoid including Zephyr base project as module.
756 all_modules_by_name[meta['name']] = Module(project, meta, depends)
760 'is not a valid zephyr module')
762 for module in all_modules_by_name.values():
763 if not module.depends:
764 start_modules.append(module)
766 dep_modules.append(module)
775 for module in dep_modules:
776 if node_name in module.depends:
777 module.depends.remove(node_name)
778 if not module.depends:
779 start_modules.append(module)
780 to_remove.append(module)
781 for module in to_remove:
782 dep_modules.remove(module)
788 for module in dep_modules:
789 error += f'{module.project} depends on: {module.depends}\n'
798 projects which are also a Zephyr module''', allow_abbrev=False)
818 If a module or project is also a git repository
847 for module in modules:
848 kconfig += process_kconfig(module.project, module.meta)
849 cmake += process_cmake(module.project, module.meta)
851 module.project, module.meta)
852 sysbuild_cmake += process_sysbuildcmake(module.project, module.meta)
853 settings += process_settings(module.project, module.meta)
854 twister += process_twister(module.project, module.meta)