Commit graph

48303 commits

Author SHA1 Message Date
Gurpreet Singh
5f93fb0f44 Merge "Manifest Fixer Params code refactor" am: 7761de5d4e am: bdf5b8030e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1979469

Change-Id: I86654c0f5ba939b7c8addb9dfc28596754f8e826
2022-02-10 18:39:26 +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
Treehugger Robot
1e8401a799 Merge "Update rustfmt.toml to 2021 edition" am: 187d283312 am: 1ceb58457f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1977994

Change-Id: I9498c6aea44516fbaeed84e87ef44e636aa7274b
2022-02-10 18:33: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
5bf9b0691e Merge "Use Tiramisu instead of T in supported_build_releases" am: 52aad81d45 am: fcb871ac39
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1979466

Change-Id: I57d015db9976afaf5ca725e86807822c30614a23
2022-02-10 16:46:32 +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
4971051525 Merge "Geneate AndroidManifest file if the apex_test module does not have one." am: 7fbe3c7f59 am: 82371b5ac2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971344

Change-Id: I56e402015b2d5d53cb6f491694cb20df916984fc
2022-02-10 16:03:57 +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
ccb7a63768 Merge "Create subdir for cc rules." am: da0b38772d am: 4a223606eb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1963459

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

Change-Id: Ie815962320006987a6912deaed6309be1a960e05
2022-02-10 14:40:14 +00: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
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
c96415edcd Merge "Update warning message" am: 3cb45a5f4a am: 3d07523121
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976990

Change-Id: Ia2f28259ae270d2d1252f31382b914656561b926
2022-02-10 02:56:17 +00: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
21b694316a Merge "In Soong, set max files soft limit to hard limit" am: 26cb965d2f am: af351356ed
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1978314

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

Change-Id: I8e48f7da545c1ad61dde8e80dbb49cc94923488d
2022-02-09 23:41:19 +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
Pirama Arumuga Nainar
5f83a7f3bc Merge "Switch to clang-r445002" am: 111817435a am: db6af1e8d3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1961820

Change-Id: I0e236fe10abc36e0f27c468ce8b6a8ab631df64e
2022-02-09 19:27:26 +00: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
d221668347 Merge "enable auto_service_plugin bazel build" am: 948c340160 am: b5c766109c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971200

Change-Id: If3074b520448ce458e7770e7000ef728e503a924
2022-02-09 18:04:28 +00:00
Steven Moreland
2b3babe99e Merge "bpf: support installing to vendor" am: 0a8dd14614 am: 584505e8d1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1188644

Change-Id: I0f768c945b150fc74b44bd7a5c89a990497d0b74
2022-02-09 18:04:05 +00: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
39c446e760 Merge "Add package for printing starlark formatted data" am: 5974423b06 am: f768e9d92a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971139

Change-Id: I34fb91afe6cecd32c054bca632b12534a895ca70
2022-02-09 05:19:56 +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
Chih-hung Hsieh
31989351ac Merge "Use only single dash for tidy flags" am: def9bf2c1c am: df8fe32206
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1972547

Change-Id: I12f4c1acbfc61dd1d0f70cf4c9871a028182f3a2
2022-02-08 22:47:59 +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