Lines Matching +full:- +full:- +full:modules

5 # SPDX-License-Identifier: Apache-2.0
11 Include file is generated for Kconfig using --kconfig-out.
12 A <name>:<path> text file is generated for use with CMake using --cmake-out.
14 Using --twister-out <filename> an argument file for twister script will
15 be generated which would point to test and sample roots available in modules
17 maintained in modules in addition to what is available in the main Zephyr tree.
57 cmake-ext:
61 kconfig-ext:
65 sysbuild-cmake:
68 sysbuild-kconfig:
71 sysbuild-cmake-ext:
75 sysbuild-kconfig-ext:
83 - type: str
113 - type: str
118 - type: str
123 - type: str
128 - type: map
143 license-path:
152 doc-url:
159 external-references:
163 - type: str
164 package-managers:
172 requirement-files:
176 - type: str
209 with Path(module_yml).open('r', encoding='utf-8') as f:
220 meta['name-sanitized'] = re.sub('[^a-zA-Z0-9]', '_', meta['name'])
226 'name-sanitized': re.sub('[^a-zA-Z0-9]', '_', module_path.name),
237 cmake_extern = section.get('cmake-ext', False)
242 "${ZEPHYR_" + meta['name-sanitized'].upper() + "_CMAKE_DIR}"))
268 cmake_extern = section.get('sysbuild-cmake-ext', False)
273 "${SYSBUILD_" + meta['name-sanitized'].upper() + "_CMAKE_DIR}"))
275 cmake_setting = section.get('sysbuild-cmake', None)
360 name_sanitized = meta['name-sanitized']
381 kconfig_extern = section.get('kconfig-ext', False)
396 name_sanitized = meta['name-sanitized']
405 kconfig_extern = section.get('sysbuild-kconfig-ext', False)
409 kconfig_setting = section.get('sysbuild-kconfig', None)
420 name_sanitized = meta['name-sanitized']
436 out += '-T\n{}\n'.format(PurePath(os.path.abspath(dir))
442 out += '--board-root\n{}\n'.format(PurePath(os.path.abspath(dir))
450 rc = subprocess.Popen(['git', 'rev-parse', '--is-inside-work-tree'],
456 popen = subprocess.Popen(['git', 'rev-parse', 'HEAD'],
461 stdout = stdout.decode('utf-8')
466 rc = subprocess.Popen(['git', 'diff-index', '--quiet', 'HEAD',
467 '--'],
472 return revision + '-dirty', True
482 stdout = stdout.decode('utf-8')
493 popen = subprocess.Popen(['git', 'remote', 'get-url', remote],
498 stdout = stdout.decode('utf-8')
509 popen = subprocess.Popen(['git', '-P', 'tag', '--points-at', revision],
514 stdout = stdout.decode('utf-8')
548 def process_meta(zephyr_base, west_projs, modules, extra_modules=None, argument
550 # Process zephyr_base, projects, and modules and create a dictionary
554 # - zephyr: path and revision
555 # - modules: name, path, and revision
556 # - west-projects: path and revision
560 meta = {'zephyr': None, 'modules': None, 'workspace': None}
570 zephyr_project['revision'] += '-off'
602 manifest_project["revision"] += "-off"
616 …t("remote") or project.sha(MANIFEST_REV_BRANCH) != meta_project['revision'].removesuffix("-dirty"):
624 meta_project['revision'] += '-off'
637 # Iterates on all modules
639 for module in modules:
640 # Check if modules is not in projects
641 # It allows to have the "-off" flag since `modules` variable` does not provide URL/remote
654 meta['modules'] = meta_modules
662 zephyr_revision += '-dirty'
664 zephyr_revision += '-extra'
666 zephyr_revision += '-off'
672 manifest_revision += '-dirty'
674 manifest_revision += '-extra'
676 manifest_revision += '-off'
687 # if user is providing a specific modules list.
727 def parse_modules(zephyr_base, manifest=None, west_projs=None, modules=None, argument
730 if modules is None:
732 modules = ([p.posixpath for p in west_projs['projects']]
741 # dep_modules is a list of all modules that has an unresolved dependency
743 # start_modules is a list modules with no depends left (no incoming edge)
745 # sorted_modules is a topological sorted list of the modules
748 for project in modules + extra_modules:
768 # This will do a topological sort to ensure the modules are ordered
785 # If there are any modules with unresolved dependencies, then the
786 # modules contains unmet or cyclic dependencies. Error out.
787 error = 'Unmet or cyclic dependencies in modules:\n'
800 parser.add_argument('--kconfig-out',
803 parser.add_argument('--twister-out',
806 parser.add_argument('--cmake-out',
809 parser.add_argument('--sysbuild-kconfig-out',
812 parser.add_argument('--sysbuild-cmake-out',
815 parser.add_argument('--meta-out',
817 of Zephyr modules and west projects.
820 parser.add_argument('--meta-state-propagate', action='store_true',
821 help="""Propagate state of modules and west projects
824 parser.add_argument('--settings-out',
827 parser.add_argument('-m', '--modules', nargs='+',
828 help="""List of modules to parse instead of using `west
830 parser.add_argument('-x', '--extra-modules', nargs='+',
831 help='List of extra modules to parse')
832 parser.add_argument('-z', '--zephyr-base',
844 modules = parse_modules(args.zephyr_base, None, west_projs,
845 args.modules, args.extra_modules)
847 for module in modules:
857 with open(args.kconfig_out, 'w', encoding="utf-8") as fp:
861 with open(args.cmake_out, 'w', encoding="utf-8") as fp:
865 with open(args.sysbuild_kconfig_out, 'w', encoding="utf-8") as fp:
869 with open(args.sysbuild_cmake_out, 'w', encoding="utf-8") as fp:
873 with open(args.settings_out, 'w', encoding="utf-8") as fp:
875 # WARNING. THIS FILE IS AUTO-GENERATED. DO NOT MODIFY!
877 # This file contains build system settings derived from your modules.
879 # Modules may be set via ZEPHYR_MODULES, ZEPHYR_EXTRA_MODULES,
882 # See the Modules guide for more information.
887 with open(args.twister_out, 'w', encoding="utf-8") as fp:
891 meta = process_meta(args.zephyr_base, west_projs, modules,
894 with open(args.meta_out, 'w', encoding="utf-8") as fp: