Lines Matching +full:kconfig +full:- +full:ext

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
54 kconfig:
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
204 # or if both zephyr/CMakeLists.txt and zephyr/Kconfig are present.
209 with Path(module_yml).open('r', encoding='utf-8') as f:
220 meta['name-sanitized'] = re.sub('[^a-zA-Z0-9]', '_', meta['name'])
224 Path(module_path.joinpath('zephyr/Kconfig')).is_file():
226 'name-sanitized': re.sub('[^a-zA-Z0-9]', '_', module_path.name),
227 'build': {'cmake': 'zephyr', 'kconfig': 'zephyr/Kconfig'}}
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)
385 kconfig_setting = section.get('kconfig', None)
387 sys.exit('ERROR: "kconfig" key in {} has value "{}" which does '
388 'not point to a valid Kconfig file.'
391 kconfig_file = os.path.join(module, kconfig_setting or 'zephyr/Kconfig')
396 name_sanitized = meta['name-sanitized']
405 kconfig_extern = section.get('sysbuild-kconfig-ext', False)
409 kconfig_setting = section.get('sysbuild-kconfig', None)
411 sys.exit('ERROR: "kconfig" key in {} has value "{}" which does '
412 'not point to a valid Kconfig file.'
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')
554 # - zephyr: path and revision
555 # - modules: name, path, and revision
556 # - west-projects: path and revision
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'
641 # It allows to have the "-off" flag since `modules` variable` does not provide URL/remote
662 zephyr_revision += '-dirty'
664 zephyr_revision += '-extra'
666 zephyr_revision += '-off'
672 manifest_revision += '-dirty'
674 manifest_revision += '-extra'
676 manifest_revision += '-off'
797 Process a list of projects and create Kconfig / CMake include files for
800 parser.add_argument('--kconfig-out',
801 help="""File to write with resulting KConfig import
803 parser.add_argument('--twister-out',
806 parser.add_argument('--cmake-out',
809 parser.add_argument('--sysbuild-kconfig-out',
810 help="""File to write with resulting KConfig import
812 parser.add_argument('--sysbuild-cmake-out',
815 parser.add_argument('--meta-out',
820 parser.add_argument('--meta-state-propagate', action='store_true',
824 parser.add_argument('--settings-out',
827 parser.add_argument('-m', '--modules', nargs='+',
830 parser.add_argument('-x', '--extra-modules', nargs='+',
832 parser.add_argument('-z', '--zephyr-base',
836 kconfig = ""
848 kconfig += process_kconfig(module.project, module.meta)
857 with open(args.kconfig_out, 'w', encoding="utf-8") as fp:
858 fp.write(kconfig)
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!
887 with open(args.twister_out, 'w', encoding="utf-8") as fp:
894 with open(args.meta_out, 'w', encoding="utf-8") as fp: