Commit Graph

47652 Commits

Author SHA1 Message Date
Treehugger Robot
a5b9712117 Merge "add support for java stream protos in protoDeps" am: d107272436
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1972759

Change-Id: I00f9af3a3ff3430aa70bfa821c274d52f2b89d52
2022-02-11 01:49:20 +00:00
Treehugger Robot
d107272436 Merge "add support for java stream protos in protoDeps" 2022-02-11 01:19:32 +00:00
Treehugger Robot
7966092c95 Merge "Propagate runtime_libs from Soong to Make" am: b451101f6e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976466

Change-Id: I4c37eaa4a707db146ee46a064cbc283387a033ef
2022-02-11 01:01:14 +00:00
Treehugger Robot
9b983e5d8a Merge "Allow filter calls with a list as a pattern" am: 190e536e64
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976989

Change-Id: Iec69d8d8b460cc7af77bbdaa0acd5ed02edb76dc
2022-02-11 01:00:55 +00:00
Treehugger Robot
b451101f6e Merge "Propagate runtime_libs from Soong to Make" 2022-02-11 00:56:26 +00:00
Treehugger Robot
190e536e64 Merge "Allow filter calls with a list as a pattern" 2022-02-11 00:46:58 +00:00
Treehugger Robot
ac8b11b22e Merge "Update cqueries for bazel rules dir rename" am: c2cdd8ab73
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1979746

Change-Id: I5a58c99e89a2c6c5d45aa244b63d28ad3a57e3c5
2022-02-10 19:04:54 +00:00
Treehugger Robot
c2cdd8ab73 Merge "Update cqueries for bazel rules dir rename" 2022-02-10 18:41:27 +00:00
Gurpreet Singh
bdf5b8030e Merge "Manifest Fixer Params code refactor" am: 7761de5d4e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1979469

Change-Id: I9264bd97390c558ea728126bf16d0103f1f43949
2022-02-10 18:35:46 +00:00
Gurpreet Singh
7761de5d4e Merge "Manifest Fixer Params code refactor" 2022-02-10 18:22:30 +00:00
Treehugger Robot
1ceb58457f Merge "Update rustfmt.toml to 2021 edition" am: 187d283312
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1977994

Change-Id: I336967f3cfb906d15b005c623c2c3e7a18b8c2e8
2022-02-10 18:16:25 +00:00
Treehugger Robot
187d283312 Merge "Update rustfmt.toml to 2021 edition" 2022-02-10 17:56:47 +00:00
Treehugger Robot
fcb871ac39 Merge "Use Tiramisu instead of T in supported_build_releases" am: 52aad81d45
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1979466

Change-Id: I79d59754a0b65fbdc96b10fd521564dd3211bcae
2022-02-10 16:28:46 +00:00
Treehugger Robot
52aad81d45 Merge "Use Tiramisu instead of T in supported_build_releases" 2022-02-10 16:13:05 +00:00
Gurpreet Singh
82371b5ac2 Merge "Geneate AndroidManifest file if the apex_test module does not have one." am: 7fbe3c7f59
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971344

Change-Id: I53eee791a6be58e8cfa4a41c73979e312d5d04a2
2022-02-10 15:45:59 +00:00
Gurpreet Singh
7fbe3c7f59 Merge "Geneate AndroidManifest file if the apex_test module does not have one." 2022-02-10 15:33:38 +00:00
Liz Kammer
8c46bf96f5 Update cqueries for bazel rules dir rename
Test: USE_BAZEL_ANALYSIS=1 m updater
Change-Id: I1356828a00037c8ec42108438a2975d2ab44d1d7
2022-02-10 10:26:21 -05:00
Liz Kammer
4a223606eb Merge "Create subdir for cc rules." am: da0b38772d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1963459

Change-Id: I098efa931cce5c427a87a6e1f4f0cb5a29a41b11
2022-02-10 14:29:43 +00:00
Nicolas Geoffray
9bd52c7f71 Merge "Revert "Switch to clang-r445002"" am: 2b2d9392fc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976654

Change-Id: I3aff1a675977a96273992c6047d4bfa4a7575a68
2022-02-10 14:29:24 +00:00
Liz Kammer
da0b38772d Merge "Create subdir for cc rules." 2022-02-10 14:16:07 +00:00
Nicolas Geoffray
2b2d9392fc Merge "Revert "Switch to clang-r445002"" 2022-02-10 14:15:46 +00:00
Gurpreet Singh
7deabfacd0 Manifest Fixer Params code refactor
This CL refactors the code related to ManifestFixer parameters.
The required parameters android.ModuleContext, manifest android.Path are
passed separately as the parameters and the optional parameters are
kept as part of the ManifestFixerParams struct.

By default, the member variable of struct have the zero (nil, false,
empty string) values. Hence, it is only required to pass the
parameters of interest at the time of function call to
ManifestFixer.

Manual testing done to check the working of the code.

Test: m nothing && m test_com.android.sdkext
Test: manually tested the generation of AndroidManifest in the out
directory with the testOnly attribute
Test: atest manifest_fixer_test --host
To test the existing unittests are not breaking.

Change-Id: I20cb6c06c57f8fe7811050288bcb03945dc0425b
2022-02-10 13:37:50 +00:00
Paul Duffin
e7babdbfe1 Use Tiramisu instead of T in supported_build_releases
Make this consistent with how code names are used in the rest of Soong.

Bug: 204763318
Test: m nothing
Change-Id: I1f2f40310df9d619db6aaaad3ed7339bb5e79194
2022-02-10 13:06:54 +00:00
Nicolas Geoffray
83b2b326b7 Revert "Switch to clang-r445002"
This reverts commit d950ab8bb3.

Reason for revert: Breaks Java math tests
Test: atest libcore.java.math.RunCSVTestsStrict

Change-Id: Ief6d0422fda991616afa59f5ce419aee5ac26a58
2022-02-10 09:58:50 +00:00
yangbill
6db86e5f01 Propagate runtime_libs from Soong to Make
Write the list of a module's runtime-required libraries to the
`LOCAL_RUNTIME_LIBRARIES` Makefile variable defined for each module.
This enables downstream tools to correctly set up the runtime environment
for execution.


Bug: 215243373
Test: out/soong/Android-aosp_cf_x86_64_phone.mk

Change-Id: Ia64a75cfba27af0202973d749d02620b355ec802
2022-02-10 06:19:31 +00:00
Thiébaud Weksteen
8fae31138a Update rustfmt.toml to 2021 edition
Bug: 210475268
Test: $ cd system/security; find . -name \*.rs -exec rustfmt --check {} \;
Change-Id: I49044e19a17d3806570d04c3215ccd3554ce7903
2022-02-10 16:55:01 +11:00
Cole Faust
3d07523121 Merge "Update warning message" am: 3cb45a5f4a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976990

Change-Id: I2133f0ec5c15135a3fa33be0a76e7d28ebad4049
2022-02-10 02:29:08 +00:00
Cole Faust
3cb45a5f4a Merge "Update warning message" 2022-02-10 02:13:54 +00:00
Treehugger Robot
af351356ed Merge "In Soong, set max files soft limit to hard limit" am: 26cb965d2f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1978314

Change-Id: Ie6b4ed1c6873c1b96b3869c3bd68fbcc140c6db0
2022-02-09 23:23:30 +00:00
Treehugger Robot
e2f1b14961 Merge "Escape cc ldflags in bp2build conversion" am: 9deb87e8e2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1973479

Change-Id: Ibb5bcb6ae645c8c0d0e9b17a0eb47c6b5ac1e232
2022-02-09 23:23:18 +00:00
Treehugger Robot
26cb965d2f Merge "In Soong, set max files soft limit to hard limit" 2022-02-09 23:16:10 +00:00
Treehugger Robot
9deb87e8e2 Merge "Escape cc ldflags in bp2build conversion" 2022-02-09 23:05:01 +00:00
Cole Faust
9932f75151 Allow filter calls with a list as a pattern
This commit doesn't attempt to replace the filter
calls with anything more idomatic for now.

It also removes the case for filter-out, because
the actual function name is filter_out and wasn't
being used anyways. Even if I were to change it
to filter_out, that would produce buggy results:

ifneq (,$(filter $(TARGET_BUILD_VARIANT), userdebug eng))
endif
ifneq (,$(filter-out $(TARGET_BUILD_VARIANT), userdebug eng))
endif

Both of these would produce:

if g["TARGET_BUILD_VARIANT"] in ["userdebug", "eng"]:
  pass

Fixes: 218702402
Test: go test
Change-Id: I566079e5d3a364c42db14045aa1bab9d99eba05f
2022-02-09 14:15:47 -08:00
Pirama Arumuga Nainar
db6af1e8d3 Merge "Switch to clang-r445002" am: 111817435a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1961820

Change-Id: Ieef0252d56d9c4960a40ac91a6f2e349983394ac
2022-02-09 19:10:31 +00:00
Pirama Arumuga Nainar
111817435a Merge "Switch to clang-r445002" 2022-02-09 18:55:08 +00:00
Liz Kammer
4ae119c14c In Soong, set max files soft limit to hard limit
Test: m nothing
Change-Id: I4f45ebcf8c7b74315c371012603aeb7c541ae336
2022-02-09 13:16:23 -05:00
Treehugger Robot
b5c766109c Merge "enable auto_service_plugin bazel build" am: 948c340160
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971200

Change-Id: Ic580c5a5e53e3778bc084a18bfcdf6197a8b9152
2022-02-09 18:03:55 +00:00
Treehugger Robot
948c340160 Merge "enable auto_service_plugin bazel build" 2022-02-09 17:48:49 +00:00
Steven Moreland
584505e8d1 Merge "bpf: support installing to vendor" am: 0a8dd14614
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1188644

Change-Id: I1320a9c28b61f2f86e02977edebd103816e80be0
2022-02-09 17:45:41 +00:00
Steven Moreland
0a8dd14614 Merge "bpf: support installing to vendor" 2022-02-09 17:28:16 +00:00
Gurpreet Singh
a76f874d55 Geneate AndroidManifest file if the apex_test module does not have one.
If the build file contains the apex_test module, but the apex_test
module does not contain the AndroindManifest file, then create the
AndroidManifest file.

In such case, the apexer tool is already generating an AndroidManifest
file. In order to handle the testOnly attribute for apex_test modules, a
--test_only flag is appended to the opt flags.

The apexer tool reads the opt flags and if the --test_only flag is
present then it generate the AndroidManifest file with testOnly
attribute.

Bug: 213310150
Test: m nothing && m test_com.android.sdkext
Test: manually checked the generation of AndroidManifest file in the
unsigned zip file mentioned in the description.
This command allows to read the attribute of the binary xml file -
aapt2 dump xmltree test_com.android.sdkext.apex.unsigned --file
AndroidManifest.xml

Verified the presence of testOnly flag in the output.

Change-Id: Ic47378428b2dba51d73e75d912546c2374f68d57
2022-02-09 16:06:15 +00:00
Treehugger Robot
f768e9d92a Merge "Add package for printing starlark formatted data" am: 5974423b06
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971139

Change-Id: Icc65bc273c02d0994340de60791d7e5393eafbf6
2022-02-09 05:02:56 +00:00
Treehugger Robot
5974423b06 Merge "Add package for printing starlark formatted data" 2022-02-09 04:48:33 +00:00
Steven Moreland
606c5e9e99 bpf: support installing to vendor
Bug: 140330870
Test: use bpf{} to install bpf program to vendor and have it
  successfully loaded and installed by Android's bpfloader.

Change-Id: If0aac3098e39498f0238516ec839b6ac910cc61e
2022-02-09 00:45:02 +00:00
Liz Kammer
72beb34609 Add package for printing starlark formatted data
Bug: 216168792
Test: build/bazel/ci/bp2build.sh
Change-Id: I3a06b19396f7ffe1c638042cda7e731dd840f1d6
2022-02-08 17:32:28 -05:00
Chih-hung Hsieh
df8fe32206 Merge "Use only single dash for tidy flags" am: def9bf2c1c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1972547

Change-Id: Id1a690f952642b05a60b110bd6ab7908f90205ed
2022-02-08 22:29:36 +00:00
Chih-hung Hsieh
def9bf2c1c Merge "Use only single dash for tidy flags" 2022-02-08 22:13:47 +00:00
Cole Faust
f4e72cf642 Update warning message
As requested on aosp/1975486

Fixes: 217248902
Test: Presubmits
Change-Id: I14e65722d8ab96125827d34e8501b4a518a27b57
2022-02-08 13:10:26 -08:00
Treehugger Robot
8793c78b35 Merge "Use -fno-sanitize-link-runtime for bionic sanitizers" am: 3e7f5c411d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1975927

Change-Id: Ib3a130bfc330fdb93036a93c1cab08b7f136bb11
2022-02-08 20:45:03 +00:00
Treehugger Robot
3e7f5c411d Merge "Use -fno-sanitize-link-runtime for bionic sanitizers" 2022-02-08 20:33:43 +00:00