/hal_espressif-2.7.6/tools/ci/python_packages/ttfw_idf/ |
D | IDFApp.py | 53 def parse_flash_settings(path, default_encryption=False): argument 54 file_name = os.path.basename(path) 64 with open(path, 'r') as f: 78 app_name = os.path.splitext(args['app']['file'])[0] 81 with open(path, 'r') as f: 96 if not os.path.dirname(p[1]) and 'partition' not in p[1]: 98 app_name = os.path.splitext(p[1])[0] 110 assert os.path.exists(artifact_index_file) 138 return os.path.join(self.artifact_info['work_dir'], self.artifact_info['build_dir']) 144 flash_arg_file = os.path.join(base_path, 'flasher_args.json') [all …]
|
D | CIScanTests.py | 59 output_path = os.path.join(output_dir, 'scan_{}_{}.json'.format(target.lower(), build_system)) 90 if not os.path.exists(args.output_path): 104 …paths = set([os.path.join(os.getenv('IDF_PATH'), path) if not os.path.isabs(path) else path for pa… 107 for path in paths: 109 assign = ExampleAssignTest(path, args.ci_config_file) 111 assign = TestAppsAssignTest(path, args.ci_config_file) 152 for path in paths: 154 find_apps(build_system_class, path, True, exclude_apps, target.lower())) 175 …output_path = os.path.join(args.output_path, 'scan_{}_{}.json'.format(target.lower(), build_system…
|
/hal_espressif-2.7.6/tools/idf_py_actions/ |
D | create_ext.py | 22 def is_empty_and_create(path, action): argument 23 abspath = os.path.abspath(path) 24 if not os.path.exists(abspath): 26 elif not os.path.isdir(abspath): 27 print('Your target path is not a directory. Please remove the', os.path.abspath(abspath), 30 elif len(os.listdir(path)) > 0: 37 …copy_tree(os.path.join(os.environ['IDF_PATH'], 'examples', 'get-started', 'sample_project'), targe… 38 main_folder = os.path.join(target_path, 'main') 39 os.rename(os.path.join(main_folder, 'main.c'), os.path.join(main_folder, '.'.join((name, 'c')))) 40 replace_in_file(os.path.join(main_folder, 'CMakeLists.txt'), 'main', name) [all …]
|
D | tools.py | 22 def realpath(path): argument 29 return os.path.normcase(os.path.realpath(path)) 33 version_path = os.path.join(os.environ['IDF_PATH'], 'tools/cmake/version.cmake') 57 '--git-dir=%s' % os.path.join(os.environ['IDF_PATH'], '.git'), 114 def _parse_cmakecache(path): argument 123 with open(path, encoding='utf-8') as f: 134 if not os.path.exists(cache_path): 171 if not os.path.isdir(project_dir): 172 if not os.path.exists(project_dir): 176 if not os.path.exists(os.path.join(project_dir, 'CMakeLists.txt')): [all …]
|
/hal_espressif-2.7.6/tools/find_build_apps/ |
D | common.py | 23 IDF_SIZE_PY = os.path.join(os.environ['IDF_PATH'], 'tools', 'idf_size.py') 63 def find_first_match(pattern, path): argument 64 for root, _, files in os.walk(path): 67 return os.path.join(root, res[0]) 71 def rmdir(path, exclude_file_pattern=None): argument 73 shutil.rmtree(path, ignore_errors=True) 76 for root, dirs, files in os.walk(path, topdown=False): 79 os.remove(os.path.join(root, f)) 82 os.rmdir(os.path.join(root, d)) 119 self._app_name = os.path.basename(os.path.normpath(app_path)) [all …]
|
/hal_espressif-2.7.6/tools/unit-test-app/ |
D | idf_ext.py | 4 import os.path 18 CONFIG_NAMES = os.listdir(os.path.join(project_path, 'configs')) 21 BUILDS_DIR = os.path.join(project_path, 'builds') 22 BINARIES_DIR = os.path.join(project_path, 'output') 24 def parse_file_to_dict(path, regex): argument 32 with open(path) as f: 39 def parse_config(path): argument 44 return parse_file_to_dict(path, r'^([^=]+)=(.+)$') 52 sdkconfig_path = os.path.join(args.project_dir, 'sdkconfig') 56 sdkconfig_path = os.path.abspath(sdkconfig_path) [all …]
|
/hal_espressif-2.7.6/tools/ci/ |
D | ci_fetch_submodule.py | 27 def __init__(self, gitlab_inst, path, url): argument 28 self.path = path 31 self.commit_id = self._get_commit_id(path) 33 def _get_commit_id(self, path): argument 34 output = subprocess.check_output(['git', 'ls-tree', 'HEAD', path]) 41 base_name = os.path.basename(url) 42 project_id = self.gitlab_inst.get_project_id(os.path.splitext(base_name)[0], # remove .git 47 print('Update submodule: {}: {}'.format(self.path, self.commit_id)) 50 renamed_path = os.path.join(os.path.dirname(path_name), os.path.basename(self.path)) 52 shutil.rmtree(self.path, ignore_errors=True) [all …]
|
D | deploy_docs.py | 22 import os.path 34 … return os.path.expandvars(os.environ.get(variable, default) if default else os.environ[variable]) 38 sys.path.append(os.path.join(env('IDF_PATH'), 'docs')) 112 tarball_name = os.path.basename(tarball_path) 156 target_dirname = os.path.dirname(os.path.dirname(html_dir)) 157 target = os.path.basename(target_dirname) 158 language = os.path.basename(os.path.dirname(target_dirname)) 168 latex_dirname = os.path.dirname(pdf_path) 169 pdf_filename = os.path.basename(pdf_path) 170 target_dirname = os.path.dirname(os.path.dirname(latex_dirname)) [all …]
|
D | idf_ci_utils.py | 24 IDF_PATH = os.getenv('IDF_PATH', os.path.join(os.path.dirname(__file__), '..', '..')) 36 ['git', 'config', '--file', os.path.realpath(os.path.join(IDF_PATH, '.gitmodules')), 39 _, path = line.split(' ') 41 dirs.append(os.path.join(IDF_PATH, path)) 43 dirs.append(path)
|
D | check_deprecated_kconfigs.py | 37 def _parse_path(path, sep=None): argument 39 with open(path, 'r', encoding='utf-8') as f: 47 def _valid_directory(path): argument 48 if not os.path.isdir(path): 49 raise argparse.ArgumentTypeError('{} is not a valid directory!'.format(path)) 50 return path 75 files = [os.path.abspath(file_path) for file_path in args.files] 81 full_path = os.path.join(root, filename)
|
/hal_espressif-2.7.6/tools/cmake/ |
D | convert_to_cmake.py | 8 import os.path 15 def get_make_variables(path, makefile='Makefile', expected_failure=False, variables={}): argument 25 cmdline = ['make', '-rpn', '-C', path, '-f', makefile] + variable_setters 60 os.path.join(os.environ['IDF_PATH'], 65 … 'COMPONENT_MAKEFILE': os.path.join(component_path, 'component.mk'), 66 'COMPONENT_NAME': os.path.basename(component_path), 73 obj = os.path.splitext(obj)[0] 75 if os.path.exists(os.path.join(component_path, obj) + '.' + ext): 89 component_srcdir_path = os.path.abspath(os.path.join(component_path, component_srcdir)) 92 srcs += glob.glob(os.path.join(component_srcdir_path, '*.[cS]')) [all …]
|
/hal_espressif-2.7.6/docs/idf_extensions/build_system/ |
D | __init__.py | 10 import os.path 16 project_path = os.path.abspath(os.path.dirname(__file__)) 28 build_dir = os.path.dirname(app.doctreedir.rstrip(os.sep)) 36 os.mkdir(os.path.join(build_dir, 'inc')) 44 idf_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..')) 46 app.add_config_value('docs_root', os.path.join(idf_path, 'docs'), 'env') 59 build_dir = os.path.dirname(app.doctreedir.rstrip(os.sep)) 60 cmake_build_dir = os.path.join(build_dir, 'build_dummy_project') 61 idf_py_path = os.path.join(app.config.idf_path, 'tools', 'idf.py') 70 'SDKCONFIG={}'.format(os.path.join(build_dir, 'dummy_project_sdkconfig')) [all …]
|
/hal_espressif-2.7.6/tools/ci/python_packages/tiny_test_fw/Utility/ |
D | __init__.py | 3 import os.path 28 file_name = os.path.join(Env.Env.CURRENT_LOG_FOLDER, 'console.log') 73 def load_source(path): argument 81 path = os.path.realpath(path) 85 return __LOADED_MODULES[path] 88 dir = os.path.dirname(path) 89 sys.path.append(dir) 91 ret = SourceFileLoader(load_name, path).load_module() 95 ret = imp.load_source(load_name, path) 97 sys.path.remove(dir) [all …]
|
/hal_espressif-2.7.6/tools/windows/ |
D | eclipse_make.py | 7 import os.path 17 def check_path(path): argument 19 return paths[path] 22 paths[path] = path # cache as failed, replace with success if it works 24 winpath = subprocess.check_output(['cygpath', '-w', path]).decode('utf-8').strip() 26 return path # something went wrong running cygpath, assume this is not a path! 27 if not os.path.exists(winpath): 28 return path # not actually a valid path 30 paths[path] = winpath
|
/hal_espressif-2.7.6/components/vfs/test/ |
D | test_vfs_fd.c | 34 const char *path; member 38 static int collision_test_vfs_open(void* ctx, const char * path, int flags, int mode) in collision_test_vfs_open() argument 41 if (strcmp(param->path, path) == 0) { in collision_test_vfs_open() 61 .path = FILE1, 96 const char *path; member 101 const char *path; member 106 { .path = FILE1, .local_fd = 1 }, 107 { .path = FILE2, .local_fd = 2 }, 108 { .path = FILE3, .local_fd = 3 }, 109 { .path = FILE4, .local_fd = 4 }, [all …]
|
D | test_vfs_access.c | 101 const char *path = "/spiflash/access.txt"; variable 106 int ret = access(path, F_OK); 111 test_fatfs_delete_file(path); 118 test_fatfs_create_file(path); 119 TEST_ASSERT_EQUAL(access(path, F_OK), 0); 121 TEST_ASSERT_EQUAL(access(path, R_OK), 0); 122 TEST_ASSERT_EQUAL(access(path, W_OK), 0); 123 TEST_ASSERT_EQUAL(access(path, X_OK), 0); 124 TEST_ASSERT_EQUAL(access(path, R_OK | W_OK), 0); 125 TEST_ASSERT_EQUAL(access(path, R_OK | X_OK), 0); [all …]
|
D | test_vfs_paths.c | 33 static int dummy_open(void* ctx, const char * path, int flags, int mode) in dummy_open() argument 37 if (strcmp(dummy->match_path, path) == 0) { in dummy_open() 55 static DIR* dummy_opendir(void* ctx, const char* path) in dummy_opendir() argument 59 if (strcmp(dummy->match_path, path) == 0) { in dummy_opendir() 90 static void test_open(dummy_vfs_t* instance, const char* path, in test_open() argument 95 int fd = esp_vfs_open(__getreent(), path, flags, 0); in test_open() 108 static void test_opendir(dummy_vfs_t* instance, const char* path, in test_opendir() argument 112 DIR* dir = opendir(path); in test_opendir() 131 #define test_opened(instance, path) test_open(instance, path, true, true, __LINE__) argument 132 #define test_not_opened(instance, path) test_open(instance, path, true, false, __LINE__) argument [all …]
|
/hal_espressif-2.7.6/docs/test/ |
D | test_docs.py | 8 CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) 17 build_docs_py_path = os.path.join(CURRENT_DIR, '..', 'build_docs.py') 24 self.html_out_dir = os.path.join(CURRENT_DIR, build_dir, language, target, 'html') 44 with open(os.path.join(self.builder.html_out_dir, doc_name)) as f: 49 with open(os.path.join(self.builder.html_out_dir, doc_name)) as f: 65 esp32_doc = os.path.join(self.builder.html_out_dir, ESP32_DOC + '.html') 66 self.assertFalse(os.path.isfile(esp32_doc), 'Found {}'.format(esp32_doc)) 69 esp32s2_doc = os.path.join(self.builder.html_out_dir, ESP32_S2_DOC + '.html') 70 self.assertTrue(os.path.isfile(esp32s2_doc), '{} not found'.format(esp32s2_doc)) 74 bt_doc = os.path.join(self.builder.html_out_dir, BT_DOC + '.html') [all …]
|
/hal_espressif-2.7.6/docs/idf_extensions/ |
D | format_idf_target.py | 2 import os.path 154 source_dir = os.path.dirname(os.path.abspath(source)) 159 path = directives.path(self.arguments[0]) 161 if path.startswith('<') and path.endswith('>'): 162 path = os.path.join(self.standard_include_path, path[1:-1]) 163 path = os.path.normpath(os.path.join(source_dir, path)) 165 path = utils.relative_path(None, path) 166 path = nodes.reprunicode(path) 174 self.state.document.settings.record_dependencies.add(path) 175 include_file = io.FileInput(source_path=path, [all …]
|
D | util.py | 34 if not os.path.exists(path_1) or not os.path.exists(path_2): 47 dst_dir_name = os.path.dirname(dst_file_path) 48 if not os.path.isdir(dst_dir_name): 54 if os.path.isfile(src_path): 61 src_file_path = os.path.join(root, src_file_name) 62 dst_file_path = os.path.join(dst_path + root[src_path_len:], src_file_name) 67 filename_with_path = to_path + '/' + os.path.basename(from_url) 68 exists = os.path.isfile(filename_with_path)
|
D | link_roles.py | 18 gitmodules_file = os.path.join(git_root, '.gitmodules') 29 path = sub_info[1].lstrip('./') 31 config_key_arg = 'submodule.{}.url'.format(path) 34 submodule_dict[path] = Submodule(rel_url, rev) 59 def redirect_submodule(path, submods, rev): argument 62 if path.lstrip('/').startswith(os.path.join(key, '')): 63 … return value.url.replace('.git', ''), value.rev, re.sub('^/{}/'.format(key), '', path) 65 return IDF_REPO, rev, path 77 abs_path = os.path.join(app_config.idf_path, rel_path.lstrip('/')) 98 if not os.path.exists(abs_path): [all …]
|
/hal_espressif-2.7.6/tools/test_mkdfu/ |
D | test_mkdfu.py | 30 current_dir = os.path.dirname(os.path.realpath(__file__)) 31 mkdfu_path = os.path.join(current_dir, '..', 'mkdfu.py') 59 …self.assertTrue(filecmp.cmp(f.name, os.path.join(current_dir, '1','dfu.bin')), 'Output files are d… 62 self.common_test(' '.join(['--json', os.path.join(current_dir, '1', 'flasher_args.json')])) 66 self.common_test(' '.join(['0x1000', os.path.join(current_dir, '1', '1.bin'), 67 '0x8000', os.path.join(current_dir, '1', '2.bin'), 68 '0x10000', os.path.join(current_dir, '1', '3.bin') 83 shutil.copyfile(os.path.join(current_dir, '1', '1.bin'), bootloader) 89 '0x8000', os.path.join(current_dir, '1', '2.bin'), 90 '0x10000', os.path.join(current_dir, '1', '3.bin')
|
/hal_espressif-2.7.6/docs/ |
D | build_docs.py | 33 import os.path 46 SPHINX_KNOWN_WARNINGS = os.path.join(os.environ['IDF_PATH'], 'docs', 'sphinx-known-warnings.txt') 50 DXG_KNOWN_WARNINGS = os.path.join(os.environ['IDF_PATH'], 'docs', 'doxygen-known-warnings.txt') 63 os.path.join(os.environ['IDF_PATH'], 166 build_dir = os.path.realpath(os.path.join(args.build_dir, language, target)) 167 … source_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), args.source_dir, language) 213 '-d', os.path.join(build_dir, 'doctrees'), 219 os.path.join(build_dir, buildername) # build directory 272 log_file=os.path.join(build_dir, DXG_WARN_LOG), 274 out_sanitized_log_file=os.path.join(build_dir, DXG_SANITIZED_LOG)) [all …]
|
/hal_espressif-2.7.6/tools/unit-test-app/tools/ |
D | UnitTestParser.py | 44 TAG_DEF_FILE = os.path.join('tools', 'unit-test-app', 'tools', 'TagDefinition.yml') 45 MODULE_DEF_FILE = os.path.join('tools', 'unit-test-app', 'tools', 'ModuleDefinition.yml') 46 CONFIG_DEPENDENCY_FILE = os.path.join('tools', 'unit-test-app', 'tools', 'ConfigDependency.yml') 47 MODULE_ARTIFACT_FILE = os.path.join('components', 'idf_test', 'ModuleDefinition.yml') 48 TEST_CASE_FILE_DIR = os.path.join('components', 'idf_test', 'unit_test') 49 UT_CONFIG_FOLDER = os.path.join('tools', 'unit-test-app', 'configs') 68 … self.tag_def = yaml.load(open(os.path.join(idf_path, self.TAG_DEF_FILE), 'r'), Loader=Loader) 69 …self.module_map = yaml.load(open(os.path.join(idf_path, self.MODULE_DEF_FILE), 'r'), Loader=Loader) 70 …self.config_dependencies = yaml.load(open(os.path.join(idf_path, self.CONFIG_DEPENDENCY_FILE), 'r'… 83 tags = self.parse_tags(os.path.join(config_output_folder, self.SDKCONFIG_FILE)) [all …]
|
/hal_espressif-2.7.6/components/tinyusb/additions/src/ |
D | vfs_tinyusb.c | 78 static esp_err_t apply_path(char const *path) in apply_path() argument 80 if (path != NULL) { in apply_path() 81 size_t path_len = strlen(path) + 1; in apply_path() 86 strncpy(s_vfstusb.vfs_path, path, (VFS_TUSB_MAX_PATH - 1)); in apply_path() 103 static esp_err_t vfstusb_init(int cdc_intf, char const *path) in vfstusb_init() argument 109 return apply_path(path); in vfstusb_init() 121 static int tusb_open(const char *path, int flags, int mode) in tusb_open() argument 124 (void) path; in tusb_open() 234 esp_err_t esp_vfs_tusb_cdc_unregister(char const *path) in esp_vfs_tusb_cdc_unregister() argument 239 … if (path == NULL) { // NULL means using the default path for unregistering: VFS_TUSB_PATH_DEFAULT in esp_vfs_tusb_cdc_unregister() [all …]
|