Home
last modified time | relevance | path

Searched refs:cwd (Results 1 – 25 of 154) sorted by relevance

1234567

/OK3568_Linux_fs/buildroot/support/testing/tests/utils/
H A Dtest_check_package.py16 def call_script(args, env, cwd): argument
18 out, err = subprocess.Popen(args, cwd=cwd, stdout=subprocess.PIPE,
86 cwd = infra.basepath(rel_cwd)
89 self.WITH_EMPTY_PATH, cwd)
93 self.WITH_EMPTY_PATH, cwd)
97 self.WITH_UTILS_IN_PATH, cwd)
101 self.WITH_EMPTY_PATH, cwd)
105 self.WITH_EMPTY_PATH, cwd)
109 self.WITH_UTILS_IN_PATH, cwd)
126 cwd = infra.basepath(rel_cwd)
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/tests/
H A Dfetch.py397 def git(self, cmd, cwd=None): argument
402 if cwd is None:
403 cwd = self.gitdir
404 return bb.process.run(cmd, cwd=cwd)[0]
406 def git_init(self, cwd=None): argument
407 self.git('init', cwd=cwd)
408 if not self.git(['config', 'user.email'], cwd=cwd):
409 self.git(['config', 'user.email', 'you@example.com'], cwd=cwd)
410 if not self.git(['config', 'user.name'], cwd=cwd):
411 self.git(['config', 'user.name', 'Your Name'], cwd=cwd)
[all …]
/OK3568_Linux_fs/kernel/tools/lib/subcmd/
H A Dexec-cmd.c38 static char cwd[PATH_MAX + 1]; in get_pwd_cwd() local
41 if (getcwd(cwd, PATH_MAX) == NULL) in get_pwd_cwd()
44 if (pwd && strcmp(pwd, cwd)) { in get_pwd_cwd()
45 stat(cwd, &cwd_stat); in get_pwd_cwd()
49 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd()
52 return cwd; in get_pwd_cwd()
63 const char *cwd = get_pwd_cwd(); in make_nonrelative_path() local
64 if (!cwd) in make_nonrelative_path()
66 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path()
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/selftest/cases/
H A Ddevtool.py41 result = runCmd('git rev-parse --show-toplevel', cwd=canonical_layerpath)
44 runCmd('git clone %s %s' % (oldreporoot, corecopydir), cwd=templayerdir)
51 result = runCmd('git status --porcelain', cwd=oldreporoot)
97 result = runCmd('git status --porcelain', cwd=repo_dir)
100 result = runCmd('git symbolic-ref HEAD', cwd=repo_dir)
107 cwd=repo_dir)
170 result = runCmd('bitbake-layers show-appends', cwd=self.builddir)
196 result = runCmd('bitbake-layers add-layer %s' % templayerdir, cwd=self.builddir)
309 result = runCmd('wget %s' % url, cwd=tempdir)
310 result = runCmd('tar xfv %s' % os.path.basename(url), cwd=tempdir)
[all …]
H A Dexternalsrc.py38 runCmd('git checkout .gitmodules', cwd=externalsrc_dir)
39 runCmd('git submodule update --init --recursive', cwd=externalsrc_dir)
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/sdkext/cases/
H A Ddevtool.py23 subprocess.check_output(['git', 'init', '.'], cwd=cls.myapp_dst)
24 subprocess.check_output(['git', 'add', '.'], cwd=cls.myapp_dst)
25 subprocess.check_output(['git', 'commit', '-m', "'test commit'"], cwd=cls.myapp_dst)
30 subprocess.check_output(['git', 'init', '.'], cwd=cls.myapp_cmake_dst)
31 subprocess.check_output(['git', 'add', '.'], cwd=cls.myapp_cmake_dst)
32 subprocess.check_output(['git', 'commit', '-m', "'test commit'"], cwd=cls.myapp_cmake_dst)
/OK3568_Linux_fs/kernel/arch/x86/kernel/fpu/
H A Dcore.c189 fp->cwd = 0xffff037fu; in fpstate_init_fstate()
447 unsigned short cwd, swd; in fpu__exception_code() local
459 cwd = fpu->state.fxsave.cwd; in fpu__exception_code()
462 cwd = (unsigned short)fpu->state.fsave.cwd; in fpu__exception_code()
466 err = swd & ~cwd; in fpu__exception_code()
/OK3568_Linux_fs/yocto/poky/scripts/lib/devtool/
H A D__init__.py197 bb.process.run('git init', cwd=repodir)
198 bb.process.run('git config --local gc.autodetach 0', cwd=repodir)
199 bb.process.run('git add -f -A .', cwd=repodir)
203 stdout, _ = bb.process.run('git status --porcelain', cwd=repodir)
212 bb.process.run(commit_cmd, cwd=repodir)
233 bb.process.run('git checkout -b %s' % devbranch, cwd=repodir)
234 bb.process.run('git tag -f %s' % basetag, cwd=repodir)
366 stdout, _ = bb.process.run('git status --porcelain', cwd=repodir)
371 stdout, _ = bb.process.run('git rev-parse --show-toplevel', cwd=srctree)
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/gnu-config/gnu-config/
H A Dgnu-configize.in221 my $cwd = cwd;
234 chdir $cwd
235 or error "cannot chdir to $cwd: $!";
/OK3568_Linux_fs/buildroot/package/xml-security-c/
H A D0001-autoconf-variable-cache-option-for-getcwd-test.patch27 -[char *cwd = getcwd(NULL, 0);
28 -return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE;])],
36 + char *cwd = getcwd(NULL, 0);
37 + return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE;]])],
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/utils/
H A Dgit.py35 def _run_git_cmd_at(git_args, cwd, **kwargs): argument
39 ret = runCmd(git_cmd, ignore_status=True, cwd=cwd, **kwargs)
53 GitRepo._run_git_cmd_at(cmd, cwd=path)
H A Dmetadata.py68 …'] = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"], cwd=path).decode('utf-8…
72 …info['commit'] = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=path).decode('utf-8').s…
76 …nt'] = int(subprocess.check_output(["git", "rev-list", "--count", "HEAD"], cwd=path).decode('utf-8…
/OK3568_Linux_fs/u-boot/tools/buildman/
H A Dbuilderthread.py91 def Make(self, commit, brd, stage, cwd, *args, **kwargs): argument
110 return self.builder.do_make(commit, brd, stage, cwd, *args,
196 cwd = work_dir
209 cwd = None
227 result = self.Make(commit, brd, 'mrproper', cwd,
230 result = self.Make(commit, brd, 'config', cwd,
237 result = self.Make(commit, brd, 'build', cwd, *args,
318 capture_stderr=True, cwd=result.out_dir,
328 capture_stderr=True, cwd=result.out_dir,
343 capture_stderr=True, cwd=result.out_dir,
/OK3568_Linux_fs/yocto/poky/meta/classes/
H A Ddevtool-source.bbclass152 (stdout, _) = bb.process.run('git rev-parse HEAD', cwd=srcsubdir)
180 bb.process.run('git checkout -- patches', cwd=srcsubdir)
198 bb.process.run('git checkout %s -b devtool-no-overrides' % initial_rev, cwd=srcsubdir)
207 bb.process.run('git checkout %s' % devbranch, cwd=srcsubdir)
208 bb.process.run('git rebase devtool-no-overrides', cwd=srcsubdir)
210 bb.process.run('git checkout %s -b devtool-no-overrides' % devbranch, cwd=srcsubdir)
215 … bb.process.run('git branch devtool-override-%s %s' % (override, devbranch), cwd=srcsubdir)
218 … bb.process.run('git checkout %s -b devtool-override-%s' % (initial_rev, override), cwd=srcsubdir)
226 bb.process.run('git rebase devtool-no-overrides', cwd=srcsubdir)
227 bb.process.run('git checkout %s' % devbranch, cwd=srcsubdir)
[all …]
/OK3568_Linux_fs/kernel/fs/
H A Dd_path.c444 char *cwd = page + PATH_MAX; in SYSCALL_DEFINE2() local
447 prepend(&cwd, &buflen, "\0", 1); in SYSCALL_DEFINE2()
448 error = prepend_path(&pwd, &root, &cwd, &buflen); in SYSCALL_DEFINE2()
456 error = prepend_unreachable(&cwd, &buflen); in SYSCALL_DEFINE2()
462 len = PATH_MAX + page - cwd; in SYSCALL_DEFINE2()
465 if (copy_to_user(buf, cwd, len)) in SYSCALL_DEFINE2()
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0002-linux-syslinux-implement-open_ext2_fs.patch51 +ext2_ino_t root, cwd; /* The root and cwd of e2fs */
113 + root = cwd = EXT2_ROOT_INO;
116 + retval = ext2fs_namei(e2fs, root, cwd, subdir, &dirino);
128 + cwd = dirino;
/OK3568_Linux_fs/kernel/tools/testing/selftests/exec/
H A Dexecveat.c162 char *cwd = getcwd(NULL, 0); in check_execveat_pathmax() local
164 if (!cwd) { in check_execveat_pathmax()
169 strcpy(longpath, cwd); in check_execveat_pathmax()
174 count = (PATH_MAX - 3 - strlen(cwd)) / XX_DIR_LEN; in check_execveat_pathmax()
179 len = (PATH_MAX - 3 - strlen(cwd)) - (count * XX_DIR_LEN); in check_execveat_pathmax()
185 free(cwd); in check_execveat_pathmax()
/OK3568_Linux_fs/u-boot/tools/patman/
H A Dcommand.py45 raise_on_error=True, cwd=None, **kwargs): argument
87 last_pipe = cros_subprocess.Popen(cmd, cwd=cwd, **kwargs)
/OK3568_Linux_fs/kernel/tools/testing/selftests/capabilities/
H A Dtest_execve.c141 char cwd[PATH_MAX]; in chdir_to_tmpfs() local
142 if (getcwd(cwd, sizeof(cwd)) != cwd) in chdir_to_tmpfs()
149 if (chdir(cwd) != 0) in chdir_to_tmpfs()
/OK3568_Linux_fs/u-boot/tools/
H A Dmoveconfig.py1162 cwd=self.current_src_dir)
1183 cwd=self.current_src_dir)
1390 cwd=self.src_dir)
1394 stderr=subprocess.STDOUT, cwd=self.src_dir)
1505 cwd = os.getcwd()
1506 if cwd and fname.startswith(cwd):
1507 fname = fname[len(cwd) + 1:]
1698 cwd = os.getcwd()
1718 if cwd and fname.startswith(cwd):
1719 fname = fname[len(cwd) + 1:]
[all …]
/OK3568_Linux_fs/u-boot/test/py/
H A Du_boot_spawn.py26 def __init__(self, args, cwd=None): argument
58 if cwd:
59 os.chdir(cwd)
/OK3568_Linux_fs/kernel/arch/x86/include/asm/fpu/
H A Dtypes.h13 u32 cwd; /* FPU Control Word */ member
35 u16 cwd; /* Control Word */ member
80 u32 cwd; member
/OK3568_Linux_fs/kernel/arch/x86/include/asm/
H A Duser_32.h46 long cwd; member
57 unsigned short cwd; member
H A Duser32.h9 u32 cwd; member
21 unsigned short cwd; member
/OK3568_Linux_fs/yocto/poky/meta/lib/oe/
H A Dcopy_buildsystem.py274 def check_sstate_task_list(d, targets, filteroutfile, cmdprefix='', cwd=None, logfile=None): argument
279 if not cwd:
280 cwd = os.getcwd()
291 bb.process.run(cmd, stderr=subprocess.STDOUT, env=env, cwd=cwd, executable='/bin/bash')

1234567