Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 43) sorted by relevance

12

/build/tools/releasetools/
Dedify_generator.py48 def WordWrap(cmd, linelen=80): argument
53 indent = cmd.index("(")+1
61 m = x.search(cmd)
63 parts = cmd.split("\0", 1)
68 cmd = parts[1]
71 cmd = cmd[m.end():]
87 cmd = ('getprop("{name}") == "{value}" || '
94 cmd = ('file_getprop("/oem/oem.prop", "{name}") == "{value}" || '
100 self.script.append(cmd)
106 cmd = (' ||\n '.join([('getprop("ro.build.fingerprint") == "%s"') % i
[all …]
Dbuild_image.py39 def RunCommand(cmd): argument
47 print "Running: ", " ".join(cmd)
48 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
54 cmd = "fec -s %d" % partition_size
55 status, output = commands.getstatusoutput(cmd)
62 cmd = "build_verity_tree -s %d"
63 cmd %= partition_size
64 status, output = commands.getstatusoutput(cmd)
71 cmd = "system/extras/verity/build_verity_metadata.py -s %d"
72 cmd %= partition_size
[all …]
Dcommon.py408 cmd = ["mkbootfs", "-f", fs_config_file,
411 cmd = ["mkbootfs", os.path.join(sourcedir, "RAMDISK")]
412 p1 = Run(cmd, stdout=subprocess.PIPE)
439 cmd = [mkbootimg, "--kernel", os.path.join(sourcedir, "kernel")]
443 cmd.append("--second")
444 cmd.append(fn)
448 cmd.append("--cmdline")
449 cmd.append(open(fn).read().rstrip("\n"))
453 cmd.append("--base")
454 cmd.append(open(fn).read().rstrip("\n"))
[all …]
/build/kati/
Druntest.rb212 cmd = 'make'
214 cmd += ' -s'
216 cmd += " #{tc} 2>&1"
227 cmd = "../../kati -save_json=#{json}.json -log_dir=. --use_find_emulator"
229 cmd = "../../ckati --use_find_emulator"
232 cmd += ' --ninja'
238 cmd += ' --gen_all_targets'
241 cmd += ' -s'
244 cmd += " #{tc}"
246 cmd += " 2>&1"
[all …]
Dninja.cc49 static size_t FindCommandLineFlag(StringPiece cmd, StringPiece name) { in FindCommandLineFlag() argument
50 const size_t found = cmd.find(name); in FindCommandLineFlag()
56 static StringPiece FindCommandLineFlagWithArg(StringPiece cmd, in FindCommandLineFlagWithArg() argument
58 size_t index = FindCommandLineFlag(cmd, name); in FindCommandLineFlagWithArg()
62 StringPiece val = TrimLeftSpace(cmd.substr(index + name.size())); in FindCommandLineFlagWithArg()
84 StringPiece cmd = cmdline.substr(0, index); in GetGomaccPosForAndroidCompileCommand() local
85 if (HasSuffix(cmd, "ccache")) { in GetGomaccPosForAndroidCompileCommand()
90 if (!StripPrefix("prebuilts/", &cmd)) in GetGomaccPosForAndroidCompileCommand()
92 if (!StripPrefix("gcc/", &cmd) && !StripPrefix("clang/", &cmd)) in GetGomaccPosForAndroidCompileCommand()
94 if (!HasSuffix(cmd, "gcc") && !HasSuffix(cmd, "g++") && in GetGomaccPosForAndroidCompileCommand()
[all …]
Devalcmd.go194 cmd string member
201 cmd := r.cmd
203 cmd = "@" + cmd
206 cmd = "-" + cmd
208 return cmd
231 r.cmd = s
237 if strings.IndexByte(r.cmd, '$') < 0 {
242 expr, _, err := parseExpr([]byte(r.cmd), nil, parseOp{})
244 return nil, ev.errorf("parse cmd %q: %v", r.cmd, err)
253 glog.V(1).Infof("evalcmd: %q => %q", r.cmd, cmds)
[all …]
Dninja.go248 func gomaCmdForAndroidCompileCmd(cmd string) (string, bool) {
249 i := strings.Index(cmd, " ")
251 return cmd, false
253 driver := cmd[:i]
255 return gomaCmdForAndroidCompileCmd(cmd[i+1:])
257 return cmd, ccRE.MatchString(cmd)
260 func descriptionFromCmd(cmd string) (string, bool) {
261 if !strings.HasPrefix(cmd, "echo") || !isWhitespace(rune(cmd[4])) {
264 echoarg := cmd[5:]
301 func (n *NinjaGenerator) genShellScript(runners []runner) (cmd string, desc string, useLocalPool bo…
[all …]
Dfind_test.cc30 string cmd; in main() local
33 cmd += ' '; in main()
34 cmd += argv[i]; in main()
37 if (!fc.Parse(cmd)) { in main()
42 if (!FindEmulator::Get()->HandleFind(cmd, fc, &out)) { in main()
Dpathutil_test.go151 cmd string
155 cmd: "find testdir",
163 cmd: "find .",
171 cmd: "find ",
179 cmd: "find testdir/../testdir",
187 cmd: "find testdir -print",
195 cmd: "find testdir -name foo",
203 cmd: `find testdir -name "file1"`,
211 cmd: `find testdir -name "*1"`,
219 cmd: `find testdir -name "*1" -and -name "file*"`,
[all …]
Dfunc.cc45 void StripShellComment(string* cmd) { in StripShellComment() argument
46 if (cmd->find('#') == string::npos) in StripShellComment()
56 const char* in = cmd->c_str(); in StripShellComment()
94 cmd->swap(res); in StripShellComment()
486 static bool HasNoIoInShellScript(const string& cmd) { in HasNoIoInShellScript() argument
487 if (cmd.empty()) in HasNoIoInShellScript()
489 if (HasPrefix(cmd, "echo $((") && cmd[cmd.size()-1] == ')') in HasNoIoInShellScript()
494 static void ShellFuncImpl(const string& shell, const string& cmd, in ShellFuncImpl() argument
496 LOG("ShellFunc: %s", cmd.c_str()); in ShellFuncImpl()
504 if ((*fc)->Parse(cmd)) { in ShellFuncImpl()
[all …]
DMakefile.kati25 … "-X github.com/google/kati.gitVersion $(shell git rev-parse HEAD)" github.com/google/kati/cmd/kati
28 go_src_stamp: $(GO_SRCS) $(wildcard cmd/*/*.go)
31 cp -a $(GO_SRCS) cmd out/src/github.com/google/kati
32 GOPATH=${KATI_GOPATH} go get github.com/google/kati/cmd/kati
Dcommand.cc208 StringPiece cmd = TrimLeftSpace(cmds.substr(0, index)); in Eval() local
213 ParseCommandPrefixes(&cmd, &echo, &ignore_error); in Eval()
215 if (!cmd.empty()) { in Eval()
217 command->cmd = cmd.as_string(); in Eval()
230 for (const string& cmd : ev_->delayed_output_commands()) { in Eval() local
232 c->cmd = cmd; in Eval()
Dregen.cc55 string cmd; member
233 LOAD_STRING(fp, &sr->cmd); in CheckStep1()
328 printf("shell %s: clean (no rerun)\n", sr->cmd.c_str()); in CheckShellResult()
333 if (fc.Parse(sr->cmd) && in CheckShellResult()
336 printf("shell %s: ignored\n", sr->cmd.c_str()); in CheckShellResult()
340 COLLECT_STATS_WITH_SLOW_REPORT("shell time (regen)", sr->cmd.c_str()); in CheckShellResult()
342 RunCommand("/bin/sh", sr->cmd, RedirectStderr::DEV_NULL, &result); in CheckShellResult()
346 printf("shell %s: dirty\n", sr->cmd.c_str()); in CheckShellResult()
349 sr->cmd.c_str()); in CheckShellResult()
354 printf("shell %s: clean (rerun)\n", sr->cmd.c_str()); in CheckShellResult()
Dninja_test.cc25 string GetDepfile(string cmd, string* new_cmd) { in GetDepfile() argument
28 if (GetDepfileFromCommand(&cmd, &r)) { in GetDepfile()
29 *new_cmd = cmd; in GetDepfile()
Dfind.h39 bool Parse(const string& cmd);
63 virtual bool HandleFind(const string& cmd, const FindCommand& fc,
Dfind.cc361 FindCommandParser(StringPiece cmd, FindCommand* fc) in FindCommandParser() argument
362 : cmd_(cmd), fc_(fc), has_if_(false) { in FindCommandParser()
721 virtual bool HandleFind(const string& cmd UNUSED, const FindCommand& fc, in HandleFind()
725 SPF(fc.chdir), cmd.c_str()); in HandleFind()
740 SPF(fc.testdir), cmd.c_str()); in HandleFind()
746 SPF(fc.testdir), cmd.c_str()); in HandleFind()
754 SPF(fc.chdir), cmd.c_str()); in HandleFind()
776 dir.c_str(), cmd.c_str()); in HandleFind()
799 LOG("FindEmulator: RunFind failed: %s", cmd.c_str()); in HandleFind()
954 bool FindCommand::Parse(const string& cmd) { in Parse() argument
[all …]
Dninja_test.go75 cmd string
92 cmd: `g++ -c fat.cc -MD -o fat.o && cp fat.d fat.d.tmp`,
97 cmd: `g++ -c fat.cc -MD -o fat && cp fat.d fat.d.tmp`,
102 cmd: `g++ -c fat.cc -MD -MF foo.d -o fat.o && cp foo.d foo.d.tmp`,
107 cmd: `g++ -c fat.cc -MD -o fat.o -MF foo.d && cp foo.d foo.d.tmp`,
113cmd: `g++ -g -Iinclude -Wall -MMD -fno-omit-frame-pointer -O -m64 -W -Werror -c -o fat.o fat…
119cmd: `mkdir -p out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/ && echo "host C++:…
132cmd: `(echo "bc: libclcore.bc <= frameworks/rs/driver/runtime/arch/generic.c") && (mkdir -p ou…
141cmd: `(/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src -I./src …
146cmd: `(g++ -DHAVE_CONFIG_H -I. -I./src -I./src -pthread -Wall -Wwrite-strings -Woverload…
[all …]
/build/kati/testcase/
Dparse_benchcmp.go30 cmd := exec.Command(prog, args...)
31 cmd.Stdout = os.Stdout
32 cmd.Stderr = os.Stderr
33 err := cmd.Run()
40 cmd := exec.Command(prog, args...)
41 out, err := cmd.CombinedOutput()
60 cmd := exec.Command("go", "test", "-run", "NONE", "-bench", ".")
61 cmd.Stdout = f
62 err = cmd.Run()
Dsilent_multiline.mk1 define cmd
8 @$(call cmd)
12 $(call cmd)
13 @$(call cmd)
/build/kati/make-c/
Dmain.go28 cmd := exec.Command("make", "-n")
29 r, err := cmd.StdoutPipe()
48 err = cmd.Start()
56 cmd.Process.Kill()
57 cmd.Wait()
/build/blueprint/gotestrunner/
Dgotestrunner.go62 cmd := exec.Command(test, flag.Args()[1:]...)
64 cmd.Dir = *chdir
67 cmd.Stderr = os.Stderr
68 stdout, err := cmd.StdoutPipe()
74 err = cmd.Start()
82 if err = cmd.Wait(); err != nil {
/build/soong/
DAndroid.bp23 "cmd/soong_build/main.go",
34 "cmd/soong_env/soong_env.go",
53 "cmd/soong_glob/soong_glob.go",
166 "cmd/soong_jar/soong_jar.go",
199 "androidmk/cmd/androidmk/android.go",
200 "androidmk/cmd/androidmk/androidmk.go",
201 "androidmk/cmd/androidmk/values.go",
/build/core/
Dgoma.mk63 …z | grep GOMA_HERMETIC=error ); then cmd=ensure_start; else cmd=restart; fi; GOMA_HERMETIC=error $…
/build/tools/
Dparsedeps.py115 cmd = split[0]
116 if len(split) == 2 and cmd == "dep":
122 elif len(split) == 3 and cmd == "trace":
/build/tools/atree/
Dfs.cpp179 char* cmd = strdup(strip_cmd); in strip_file() local
183 char* s = cmd; in strip_file()
202 free(cmd); in strip_file()

12