Commit Graph

34084 Commits

Author SHA1 Message Date
Thiébaud Weksteen 9997ea73a3 Setup ANDROID_RUST_VERSION env variable
Some crates (i.e. rustversion) probe at build time the version of Rust
to enable features or tests. Pass the version via an environment
variable so it can be used by a patched crate.

Bug: 178357400
Test: m librustversion
Change-Id: If57a6339b71d2188c56e7dc6709075e4537403b4
2021-02-22 10:56:43 +01:00
Treehugger Robot 4b5c5f9283 Merge "Add phony target for depsinfo." 2021-02-22 09:32:21 +00:00
Jingwen Chen 2789ba7d90 Merge "bp2build: add a simple UI to report migration progress." am: 2391d08872
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1595678

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic82236128dd783244312e02fe52d9e4fc07281a0
2021-02-22 03:50:36 +00:00
Jingwen Chen 2391d08872 Merge "bp2build: add a simple UI to report migration progress." 2021-02-22 03:23:13 +00:00
Xin Li 982c52b034 Merge ab/7061308 into stage.
Bug: 180401296
Merged-In: I4638ba660a8cc1748693224ac15e6aa6cad33646
Change-Id: I24dd13b52b3f3a007d79753e32cb64e7f36df47c
2021-02-21 09:24:23 -08:00
Justin Yun efb6015365 Merge "Update test_min_api_level for cc_test" am: b4697b8125
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581288

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2fb48996e24f3e2077f24d2cd315f90408c5f29b
2021-02-21 06:15:11 +00:00
Justin Yun b4697b8125 Merge "Update test_min_api_level for cc_test" 2021-02-21 05:36:37 +00:00
Jeongik Cha 79f4ab21db update apex/allowed_deps.txt
Bug: 150820813
Test: m

Change-Id: Ib8ada6607b628a120103b64ea83132b3f3e6492e
Merged-In: Ib8ada6607b628a120103b64ea83132b3f3e6492e
2021-02-21 00:11:59 +09:00
Jeffrey Vander Stoep 5d74189766 Merge "Disable unnecessary_wraps clippy lint" am: 8348e09173
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1595277

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If201dbc06c358a1a8efb09877cec12c96f9d516a
2021-02-20 08:01:58 +00:00
Jeffrey Vander Stoep 0c9997fa96 Merge "Update Rust toolchain to 1.50.0" am: 92c674dc32
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1593172

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I196245cc33e47c3379889a7d138e2df84f8dd692
2021-02-20 07:59:33 +00:00
Jeffrey Vander Stoep 8348e09173 Merge "Disable unnecessary_wraps clippy lint" 2021-02-20 07:06:41 +00:00
Jeffrey Vander Stoep 92c674dc32 Merge "Update Rust toolchain to 1.50.0" 2021-02-20 07:06:41 +00:00
Treehugger Robot 7a7c1491c4 Merge "Remove EnforceRROExemptedTargets" am: f0a869847a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1596231

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If42cf3890310274bed9fd9b9e2679c9abb59a82b
2021-02-20 03:06:04 +00:00
Treehugger Robot f0a869847a Merge "Remove EnforceRROExemptedTargets" 2021-02-20 01:47:43 +00:00
Justin Yun 107a4cb56c Update test_min_api_level for cc_test
By replacing MinApiLevelModuleController with
ShippingApiLevelModuleController, we don't need to define
api-level-prop option. The property name must not be a parameter but
be defined in the module controller.

test_min_sdk_version is removed as it is not used.

Bug: 178990561
Test: atest vts_core_liblp_test
Change-Id: Ib4660b91c7adb2ec8b970197dc6f65b8e6952a66
2021-02-20 00:46:21 +00:00
Elliott Hughes 8198c438ca Merge "__ANDROID_UNGUARDED_AVAILABILITY__ is gone now." am: 272649ceb5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1596932

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I875ed4c6f9557776f5a699f492d534bca618bf1d
2021-02-19 23:19:51 +00:00
Colin Cross aa2555387d Add ctx to AndroidMkExtraEntriesFunc
Add a ctx parameter to AndroidMkExtraEntriesFunc to allow them to
access providers.

Test: m checkbuild
Change-Id: Id6becc1e425c3c3d8519248f8c0ce80777fac7cc
Merged-In: Id6becc1e425c3c3d8519248f8c0ce80777fac7cc
2021-02-19 23:05:40 +00:00
Elliott Hughes 272649ceb5 Merge "__ANDROID_UNGUARDED_AVAILABILITY__ is gone now." 2021-02-19 22:27:11 +00:00
Evan Severson 5149805dcc Add modules-utils-build_system to allowed deps
Test: Treehugger
Bug: 178426097

Change-Id: I4c485b32c3479e08077206d497185b21aad45631
2021-02-19 10:59:54 -08:00
Elliott Hughes 5a8c9531e4 __ANDROID_UNGUARDED_AVAILABILITY__ is gone now.
So no need to keep `-D`ing it.

Bug: http://b/179067538
Test: treehugger
Change-Id: If5bcead40d3bb355c241e363a8f1a956cb144438
2021-02-19 10:43:19 -08:00
Julien Desprez fb7470923a Merge "Switch cc_test host_supported: true to unit tests" am: 251261d01b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1576042

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I36b3a8637e0f44de1f8372dc3b59419eba4933fa
2021-02-19 17:36:32 +00:00
Paul Duffin 3cb603eb51 Add tests for exported generated headers
Improves the test coverage for exporting of generated headers. These
tests highlight the bug described in b/180712399.

Follow up changes will refactor and fix bugs in this code. Adding the
tests separately help ensure that those changes do not inadvertantly
change the behavior.

Test: m nothing
Bug: 180712399
Change-Id: I0225b0cf53259071edb99a94be5014ed0e019bde
2021-02-19 17:12:01 +00:00
Julien Desprez 251261d01b Merge "Switch cc_test host_supported: true to unit tests" 2021-02-19 16:55:04 +00:00
Jeff Vander Stoep 41f8157ba7 Disable unnecessary_wraps clippy lint
Bug: 180268112
Test: build
Fixes: 180703142
Change-Id: I13f3de49318a6a9d2141042836a08ba7e300648f
2021-02-19 17:19:39 +01:00
Anton Hansson e4e5a57555 Merge "Disallow using error-prone merge strategies" am: a6bf4a189c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1594292

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I25ddfb53e80e5c0e3391fe23971e599f9588b4a6
2021-02-19 16:11:31 +00:00
Anton Hansson 9c848735cb Disallow using error-prone merge strategies am: 771fd524f2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1594292

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8837c9ed5c9d436af2d14fa77424c62cffcc348f
2021-02-19 16:11:26 +00:00
Thiébaud Weksteen bfa4484ef1 Merge "Enable size measurement for Rust binaries" am: 052398b1ce
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581730

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1518e521f81c95bfab53fe9a8178303588d2bddb
2021-02-19 16:10:07 +00:00
Anton Hansson a6bf4a189c Merge "Disallow using error-prone merge strategies" 2021-02-19 15:27:29 +00:00
Thiébaud Weksteen 052398b1ce Merge "Enable size measurement for Rust binaries" 2021-02-19 14:32:01 +00:00
Jingwen Chen 164e0867fc bp2build: add a simple UI to report migration progress.
Sample output:

[bp2build] cc_library_headers: 5 targets
[bp2build] cc_object: 5 targets
[bp2build] filegroup: 4 targets
[bp2build] genrule: 4 targets
[bp2build] sh_binary: 1 targets
[bp2build] Generated 19 total BUILD targets from 39270 Android.bp modules.

This CL adds an additional CodegenMetrics return value to
GenerateBazelTargets calls, which are called from bp2build, queryview,
and their tests. For this UI, we only want to use it for bp2build, and
not queryview or tests, since it's not useful for the former, and can
pollute the CLI for the latter.

Test: build/bazel/scripts/milestone-2/demo.sh
Change-Id: Ic84307a1ed1a25e360c9b23459e5449d932bc2e7
2021-02-19 09:30:11 -05:00
Anton Hansson 771fd524f2 Disallow using error-prone merge strategies
DO NOT MERGE / RESTRICT AUTOMERGE and its cousin DO NOT MERGE
ANYWHERE are almost always misused. Make it an error to upload
commits with those merge strategies.

Bug: 156896646
Test: repo upload -n (with DNM and RM commits)
Change-Id: Iae3540fa35dbd7b87a14b53a20be0cd23a206f3a
2021-02-19 13:05:54 +00:00
Treehugger Robot 2174c5efd6 Merge "Add bloaty package" am: f4dd965933
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581729

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a52209bedb15180ea1f7c882aef73633a2d9482
2021-02-19 11:27:26 +00:00
Treehugger Robot 7a3ed6bf0c Merge "Add bloaty_merger" am: 999314fd98
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581728

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4e1274090bd735b60a5ddbf8645f6c78b795b3a7
2021-02-19 10:52:35 +00:00
Treehugger Robot f4dd965933 Merge "Add bloaty package" 2021-02-19 09:54:28 +00:00
Treehugger Robot 999314fd98 Merge "Add bloaty_merger" 2021-02-19 09:45:39 +00:00
Jiyong Park 4bbd6cfcaf bootimg supports building (non-vendor) boot.img
Bug: 178562516
Test: m microdroid_boot-5.10
Change-Id: I120fc954eb00362bdd2c02e3f3ef147670c69d8f
2021-02-19 18:26:32 +09:00
Jingwen Chen d178288566 Merge "bp2build: cc_object converter." am: 4e86b6ae43
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1580344

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie53cc9a82cf0287b2c3d5779d204e1bbf4c66b16
2021-02-19 04:53:42 +00:00
Inseob Kim c278ebe5b5 Merge "Allow uninstallable prebuilt_etc to be packaged" am: 525fdd57b5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1591732

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia6b3cf62a0c06d00a2390216f98c83f2edc5c5dd
2021-02-19 04:19:13 +00:00
Jingwen Chen 4e86b6ae43 Merge "bp2build: cc_object converter." 2021-02-19 03:54:43 +00:00
Inseob Kim 525fdd57b5 Merge "Allow uninstallable prebuilt_etc to be packaged" 2021-02-19 03:49:33 +00:00
Jeongik Cha cee5ba973d Remove EnforceRROExemptedTargets
There is no more target relying on EnforceRROExemptedTargets

Bug: 150820813
Test: m
Change-Id: If50d22c0e4f99e8c50d6a30cb94a0c3a5646b6fa
2021-02-19 12:16:12 +09:00
Eric Holk a55351cee1 Make statsd apex available as a prebuilt am: 277b0e7f41
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1593234

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iedf194625d8e1f624dc0193d23a6c8f646a416cd
2021-02-18 23:14:44 +00:00
Eric Holk 277b0e7f41 Make statsd apex available as a prebuilt
Bug: 178236337
Test: build-mainline-modules.sh
Change-Id: I807eca7c5296227f4b593fc9f52d29bd20e78645
2021-02-18 17:39:51 +00:00
Martijn Coenen 80b0721fd9 Merge "Add MediaProvider dependencies to allowed_deps.txt" am: 15679b7b27
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1591312

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifd2caf926838d63c2891032ad4deaac5604bef54
2021-02-18 17:10:29 +00:00
Martijn Coenen 15679b7b27 Merge "Add MediaProvider dependencies to allowed_deps.txt" 2021-02-18 16:55:38 +00:00
Pedro Loureiro 85c97f861a Merge "Add support for lint baseline files" am: 8a75058d3f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1589498

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I21ef2a8cae02ac715e2dd3bf2c6b0ee1ffcc48d0
2021-02-18 16:19:53 +00:00
Pedro Loureiro 8a75058d3f Merge "Add support for lint baseline files" 2021-02-18 15:53:13 +00:00
Treehugger Robot 48d587d67a Merge "Further simplify the link type check routine" am: ca52bfcf0f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1593592

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6103df3aecd5c0e23d171959e00fe52999c43503
2021-02-18 15:18:33 +00:00
Jiyong Park 4de1a5651f Merge "Linktype check error message becomes more correct" am: 4941e4b9d1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1593811

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic8bca635d70f59e5d847d4cc26b72fde6ddcd867
2021-02-18 15:15:32 +00:00
Thiébaud Weksteen df229cb00a Enable size measurement for Rust binaries
Bug: 172339742
Test: m out/soong/binary_sizes.pb
Change-Id: Ibc9feaa1c806b888d8850303ab7eeaf5e5337e35
2021-02-18 15:46:19 +01:00