Home
last modified time | relevance | path

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

1234

/build/soong/ui/build/
Dsoong.go37 cmd := Command(ctx, config, "blueprint bootstrap", "build/blueprint/bootstrap.bash", "-t")
38 cmd.Environment.Set("BLUEPRINTDIR", "./build/blueprint")
39 cmd.Environment.Set("BOOTSTRAP", "./build/blueprint/bootstrap.bash")
40 cmd.Environment.Set("BUILDDIR", config.SoongOutDir())
41 cmd.Environment.Set("GOROOT", "./"+filepath.Join("prebuilts/go", config.HostPrebuiltTag()))
42 cmd.Environment.Set("BLUEPRINT_LIST_FILE", filepath.Join(config.FileListDir(), "Android.bp.list"))
43 cmd.Environment.Set("NINJA_BUILDDIR", config.OutDir())
44 cmd.Environment.Set("SRCDIR", ".")
45 cmd.Environment.Set("TOPNAME", "Android.bp")
46 cmd.Sandbox = soongSandbox
[all …]
Dninja.go64 cmd := Command(ctx, config, "ninja", executable, args...)
65 cmd.Sandbox = ninjaSandbox
67 cmd.Environment.AppendFromKati(config.KatiEnvFile())
72 if extra, ok := cmd.Environment.Get("NINJA_ARGS"); ok {
73 cmd.Args = append(cmd.Args, strings.Fields(extra)...)
75 if extra, ok := cmd.Environment.Get("NINJA_EXTRA_ARGS"); ok {
76 cmd.Args = append(cmd.Args, strings.Fields(extra)...)
81 if overrideText, ok := cmd.Environment.Get("NINJA_HEARTBEAT_INTERVAL"); ok {
97 if cmd.Environment.IsEnvTrue("ALLOW_NINJA_ENV") {
100 cmd.Environment.Allow(append([]string{
[all …]
Dkati.go96 cmd := Command(ctx, config, "ckati", executable, args...)
97 cmd.Sandbox = katiSandbox
98 pipe, err := cmd.StdoutPipe()
102 cmd.Stderr = cmd.Stdout
104 envFunc(cmd.Environment)
106 if _, ok := cmd.Environment.Get("BUILD_USERNAME"); !ok {
111 cmd.Environment.Set("BUILD_USERNAME", u.Username)
114 if _, ok := cmd.Environment.Get("BUILD_HOSTNAME"); !ok {
119 cmd.Environment.Set("BUILD_HOSTNAME", hostname)
122 cmd.StartOrFatal()
[all …]
Ddumpvars.go87 cmd := Command(ctx, config, "dumpvars",
94 cmd.Environment.Set("CALLED_FROM_SETUP", "true")
96 cmd.Environment.Set("WRITE_SOONG_VARIABLES", "true")
98 cmd.Environment.Set("DUMP_MANY_VARS", strings.Join(vars, " "))
100 cmd.Environment.Set("TMPDIR", tmpDir)
102 cmd.Sandbox = dumpvarsSandbox
104 cmd.Stdout = &output
105 pipe, err := cmd.StderrPipe()
109 cmd.StartOrFatal()
112 cmd.WaitOrFatal()
Dgoma.go39 cmd := Command(ctx, config, commandText, "bash", "-c", commandText)
40 output := strings.TrimRight(string(cmd.CombinedOutputOrFatal()), "\n")
74 cmd := Command(ctx, config, "goma_ctl.py ensure_start", gomaCtl, "ensure_start")
75 cmd.Environment.Set("DIST_DIR", config.DistDir())
77 if output, err := cmd.CombinedOutput(); err != nil {
Denvironment.go152 cmd := strings.SplitN(text, " ", 2)
153 if len(cmd) != 2 {
157 if cmd[0] == "unset" {
158 str, ok := singleUnquote(cmd[1])
163 } else if cmd[0] == "export" {
164 key, value, ok := decodeKeyValue(cmd[1])
166 return fmt.Errorf("Failed to parse export: %v", cmd)
Dtest_build.go58 cmd := Command(ctx, config, "ninja", executable, args...)
59 stdout, err := cmd.StdoutPipe()
64 cmd.StartOrFatal()
87 cmd.WaitOrFatal()
/build/soong/genrule/
Dgenrule_test.go142 cmd: "$(location) > $(out)",
151 cmd: "$(location) > $(out)",
160 cmd: "$(location) > $(out)",
169 cmd: "$(location) > $(out)",
179 cmd: "$(location) > $(out)",
188 cmd: "$(location tool) > $(out)",
197 cmd: "$(location :tool) > $(out)",
206 cmd: "$(location tool_file1) > $(out)",
215 cmd: "$(location :1tool_file) > $(out)",
224 cmd: "$(locations :tool_files) > $(out)",
[all …]
/build/make/tools/releasetools/
Dbuild_super_image.py64 cmd = ["--partition",
67 cmd += ["--image", "{}={}".format(partition, image)]
69 return cmd
74 cmd = [info_dict["lpmake"],
86 cmd += ["--metadata-slots", "2"]
88 cmd += ["--metadata-slots", "3"]
90 cmd += ["--metadata-slots", "2"]
93 cmd.append("--auto-slot-suffixing")
95 cmd.append("--virtual-ab")
99 cmd += ["--device", "{}:{}".format(device, size)]
[all …]
Dcheck_ota_package_signature.py40 cmd = ['openssl', 'x509', '-text', '-noout', '-in', cert]
41 cert_dump = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
112 cmd = ['openssl', 'asn1parse', '-inform', 'DER', '-in', sig_file]
113 sig = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
123 cmd = ['openssl', 'rsautl', '-verify', '-certin', '-inkey', cert,
125 common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
128 cmd = ['openssl', 'asn1parse', '-inform', 'DER', '-in', decrypted_file]
129 decrypted_output = common.RunAndCheckOutput(cmd, stdout=subprocess.PIPE)
159 cmd = ['delta_generator',
162 common.RunAndCheckOutput(cmd)
Dedify_generator.py40 def WordWrap(cmd, linelen=80): argument
45 indent = cmd.index("(")+1
53 m = x.search(cmd)
55 parts = cmd.split("\0", 1)
60 cmd = parts[1]
63 cmd = cmd[m.end():]
84 cmd = ''
86 cmd += '%s == "%s" || ' % (get_prop_command, value)
87 cmd += (
94 self.script.append(cmd)
[all …]
Dverity_utils.py43 cmd = ["fec", "-s", str(image_size)]
44 output = common.RunAndCheckOutput(cmd, verbose=False)
49 cmd = ["build_verity_tree", "-s", str(image_size)]
50 output = common.RunAndCheckOutput(cmd, verbose=False)
55 cmd = ["build_verity_metadata", "size", str(image_size)]
56 output = common.RunAndCheckOutput(cmd, verbose=False)
84 cmd = ["fec", "-e", "-p", str(padding_size), sparse_image_path,
86 common.RunAndCheckOutput(cmd)
90 cmd = ["build_verity_tree", "-A", FIXED_SALT, sparse_image_path,
92 output = common.RunAndCheckOutput(cmd)
[all …]
Dtest_verity_utils.py61 cmd = ["img2simg", raw_image, output_file, '4096']
62 common.RunAndCheckOutput(cmd)
220 cmd = ['mkuserimg_mke2fs', input_dir, image, 'ext4', '/system',
222 common.RunAndCheckOutput(cmd)
226 cmd = ['verity_verifier', image, '-mincrypt', verify_key]
227 common.RunAndCheckOutput(cmd)
261 cmd = ['mksquashfsimage.sh', input_dir, image, '-s']
262 common.RunAndCheckOutput(cmd)
267 cmd = ["verity_verifier", image, '-mincrypt',
269 common.RunAndCheckOutput(cmd)
[all …]
Dcommon.py1006 def AppendAVBSigningArgs(cmd, partition): argument
1016 cmd.extend(["--key", key_path, "--algorithm", algorithm])
1020 cmd.extend(["--salt", avb_salt])
1105 cmd = [avbtool, "make_vbmeta_image", "--output", image_path]
1106 AppendAVBSigningArgs(cmd, name)
1120 cmd.extend(GetAvbPartitionArg(partition, path))
1144 cmd.extend(split_args)
1146 RunAndCheckOutput(cmd)
1159 cmd = ["mkbootfs", "-f", fs_config_file,
1162 cmd = ["mkbootfs", os.path.join(sourcedir, "RAMDISK")]
[all …]
/build/soong/cc/
Dproto_test.go34 if cmd := proto.RuleParams.Command; !strings.Contains(cmd, "--cpp_out=") {
35 t.Errorf("expected '--cpp_out' in %q", cmd)
59 cmd := proto.RuleParams.Command
60 if w := "--foobar_out="; !strings.Contains(cmd, w) {
61 t.Errorf("expected %q in %q", w, cmd)
66 if w := "--plugin=protoc-gen-foobar=" + foobarPath; !strings.Contains(cmd, w) {
67 t.Errorf("expected %q in %q", w, cmd)
/build/soong/python/tests/
Druntest.sh28 ( ! -f $ANDROID_HOST_OUT/bin/py2-cmd ) ||
29 ( ! -f $ANDROID_HOST_OUT/bin/py3-cmd )]]; then
52 PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py2-cmd py-cmd_test.py
53 PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py3-cmd py-cmd_test.py
55 ARGTEST=true PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py2-cmd py-cmd_test.py arg1 arg2
56 ARGTEST2=true PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py2-cmd py-cmd_test.py --arg1 arg2
58 ARGTEST=true PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py3-cmd py-cmd_test.py arg1 arg2
59 ARGTEST2=true PYTHONPATH=/extra $ANDROID_HOST_OUT/bin/py3-cmd py-cmd_test.py --arg1 arg2
/build/blueprint/microfactory/
Dmicrofactory.go78 cmd := exec.Command(filepath.Join(runtime.GOROOT(), "bin", "go"), "version")
79 if version, err := cmd.Output(); err == nil {
399 cmd := exec.Command(filepath.Join(goToolDir, "compile"),
404 cmd.Args = append(cmd.Args, "-c", fmt.Sprintf("%d", runtime.NumCPU()))
407 cmd.Args = append(cmd.Args, "-race")
411 cmd.Args = append(cmd.Args, "-trimpath", config.TrimPath)
415 cmd.Args = append(cmd.Args, "-I", dep.pkgDir)
419 cmd.Args = append(cmd.Args, filename)
473 cmd.Stdin = nil
474 cmd.Stdout = os.Stdout
[all …]
/build/make/tools/
Dextract_kernel.py103 def try_decompress_bytes(cmd, input_bytes): argument
104 sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
111 def try_decompress(cmd, search_bytes, input_bytes): argument
118 yield try_decompress_bytes(cmd, input_bytes[idx:])
130 for cmd, search_bytes in COMPRESSION_ALGO:
131 for decompressed in try_decompress(cmd, search_bytes, input_bytes):
137 decompressed = try_decompress_bytes(cmd, input_bytes)
177 for cmd, _ in COMPRESSION_ALGO:
178 if cmd[0] in tools:
179 cmd[0] = tools[cmd[0]]
/build/soong/java/
Ddroiddoc.go706 cmd := javadocSystemModulesCmd(ctx, rule, j.srcFiles, outDir, srcJarDir, srcJarList,
709 cmd.FlagWithArg("-source ", javaVersion.String()).
786 func (d *Droiddoc) doclavaDocsFlags(ctx android.ModuleContext, cmd *android.RuleBuilderCommand, doc…
791 cmd.FlagWithArg("-source ", "1.8").
807 cmd.FlagWithArg("-templatedir ", t.dir.String()).Implicits(t.deps)
815 cmd.FlagWithArg("-htmldir ", htmlDir.String()).
821 cmd.FlagWithArg("-htmldir2 ", htmlDir2.String()).
830 cmd.FlagForEachInput("-knowntags ", knownTags)
832 cmd.FlagForEachArg("-hdf ", d.properties.Hdf)
836 cmd.FlagWithOutput("-proofread ", proofreadFile)
[all …]
Dlint.go194 cmd := rule.Command().
201 cmd.Flag("--library")
204 cmd.Flag("--test")
208 cmd.FlagWithArg("--manifest ", l.manifest.String())
212 cmd.FlagWithArg("--merged_manifest ", l.mergedManifest.String())
217 cmd.FlagWithRspFileInputList("--srcs ", l.srcs)
220 cmd.FlagWithInput("--generated_srcs ", srcJarList)
224 cmd.FlagWithInput("--resources ", resourcesList)
229 cmd.FlagWithArg("--classes ", l.classes.String())
232 cmd.FlagForEachArg("--classpath ", l.classpath.Strings())
[all …]
/build/blueprint/gotestrunner/
Dgotestrunner.go63 cmd := exec.Command(test, flag.Args()[1:]...)
65 cmd.Dir = *chdir
76 cmd.Stderr = os.Stderr
77 stdout, err := cmd.StdoutPipe()
83 err = cmd.Start()
91 if err = cmd.Wait(); err != nil {
/build/soong/ui/logger/
Dlogger_test.go121 cmd := exec.Command(os.Args[0], "-test.run=TestPanic")
122 cmd.Env = append(os.Environ(), "ACTUALLY_PANIC=1")
123 err := cmd.Run()
143 cmd := exec.Command(os.Args[0], "-test.run=TestFatal")
144 cmd.Env = append(os.Environ(), "ACTUALLY_FATAL=1")
145 err := cmd.Run()
160 cmd := exec.Command(os.Args[0], "-test.run=TestNonFatal")
161 cmd.Env = append(os.Environ(), "ACTUAL_TEST=1")
162 err := cmd.Run()
/build/soong/dexpreopt/
Ddexpreopt.go134 cmd := rule.Command().
141 cmd.FlagWithInput("--create-profile-from=", module.ProfileClassListing.Path())
145 cmd.
150 cmd.
156 cmd.Text(fmt.Sprintf(`|| echo "Profile out of date for %s"`, module.DexPath))
173 cmd := rule.Command().
179 cmd.FlagWithInput("--create-profile-from=", module.ProfileBootListing.Path())
181 cmd.
188 cmd.Text(fmt.Sprintf(`|| echo "Profile out of date for %s"`, module.DexPath))
365 cmd := rule.Command().
[all …]
/build/make/tools/fs_config/
DAndroid.bp45cmd: "$(location fs_config_generator.py) oemaid --aid-header=$(location :android_filesystem_config…
66cmd: "$(location fs_config_generator.py) passwd --partition=system --aid-header=$(location :androi…
83cmd: "$(location fs_config_generator.py) passwd --partition=vendor --aid-header=$(location :androi…
101cmd: "$(location fs_config_generator.py) passwd --partition=odm --aid-header=$(location :android_f…
119cmd: "$(location fs_config_generator.py) passwd --partition=product --aid-header=$(location :andro…
137cmd: "$(location fs_config_generator.py) passwd --partition=system_ext --aid-header=$(location :an…
158cmd: "$(location fs_config_generator.py) group --partition=system --aid-header=$(location :android…
175cmd: "$(location fs_config_generator.py) group --partition=vendor --aid-header=$(location :android…
193cmd: "$(location fs_config_generator.py) group --partition=odm --aid-header=$(location :android_fi…
211cmd: "$(location fs_config_generator.py) group --partition=product --aid-header=$(location :androi…
[all …]
/build/soong/cmd/extract_apks/
DAndroid.bp7 "soong-cmd-extract_apks-proto",
13 name: "soong-cmd-extract_apks-proto",
14 pkgPath: "android/soong/cmd/extract_apks/bundle_proto",

1234