Commit Graph

21331 Commits

Author SHA1 Message Date
Colin Cross
094956cf00 Merge changes I02fb745a,Iccc96c0d am: a24b9deb5f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1378536

Change-Id: I109e5814ae04de65667962a3299989e0ca160d11
2020-08-13 22:10:01 +00:00
Colin Cross
a24b9deb5f Merge changes I02fb745a,Iccc96c0d
* changes:
  Follow all shared library dependencies when collecting JNI libraries
  Handle static unwinder in ltoDepsMutator
2020-08-13 21:55:53 +00:00
Matthew Maurer
a01fc72094 Merge "Add Rust Binder crate to allowed list" am: 61ca6a39cc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1304853

Change-Id: I4bd8b03ec13dd300498e0876f96739d20a654235
2020-08-13 21:22:15 +00:00
Matthew Maurer
61ca6a39cc Merge "Add Rust Binder crate to allowed list" 2020-08-13 21:13:57 +00:00
Colin Cross
beae6ecbd4 Shorten missing module panic message
Only print the list of variants of the matching module when
ctx.ModuleForTesting finds the module but not the variant.

Test: all soong tests
Change-Id: I51ffdde4645db39ec1d37ec018e0dea11d74280e
2020-08-13 11:52:21 -07:00
Andrei Onea
23fea04e27 Rename class2greylist
Use a more inclusive name (go/hiddenapi-list-renaming).
Bug: 163797539
Test: atest class2nonsdklisttest

Change-Id: I1b72c243746dde9926a11d5a559b84e753e8fd4f
2020-08-13 17:33:14 +01:00
Ramy Medhat
2889166b6c Make the default exec strategy for javac/r8/d8 remote local fallback.
Test: presubmits
Change-Id: Ia67c2a1e13638db1fb9c93755ce72159767d46b4
2020-08-13 11:41:35 -04:00
Thiébaud Weksteen
9e8451e524 rust: modify linting properties
Move the linting properties to an enum with 4 possible options:
"default", "android", "vendor" or "none". The previous logic for
default, based on the module's location, is kept. It is now possible to
force the upgrade to a certain lint level for some modules (e.g.
external/[...]/android). Update the unit tests and documentation.

Bug: 163400111
Test: m
Change-Id: I8e464b04401158ed2d3c518a9b72f145a9835c99
2020-08-13 15:58:09 +02:00
Treehugger Robot
0c8d7c6958 Merge "Improve abidump generating logic for non-REL build" am: 29737cfc94
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1374297

Change-Id: Id2d8ba83012f795cf7a36e83b6e9799527295e07
2020-08-13 12:11:42 +00:00
Treehugger Robot
29737cfc94 Merge "Improve abidump generating logic for non-REL build" 2020-08-13 11:53:05 +00:00
Treehugger Robot
8acd131453 Merge changes I514b90ae,Ie477de70 am: d59540234c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1378334

Change-Id: I9b0bef22ba3486be3d4e329b716a62fd2ab30629
2020-08-13 05:14:58 +00:00
Treehugger Robot
d59540234c Merge changes I514b90ae,Ie477de70
* changes:
  Fix DepsInSameApex for some dependencies of static libraries
  Expose all shared and header libraries to Make
2020-08-13 05:01:17 +00:00
Ramy Medhat
811c68d7a6 Merge "Add reasonable defaults to RBE configuration parameters." am: 5d942d05b1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1397907

Change-Id: Iae17ca2130428cae6bfe158db966bb8aae164b39
2020-08-12 22:54:41 +00:00
Ramy Medhat
5d942d05b1 Merge "Add reasonable defaults to RBE configuration parameters." 2020-08-12 22:41:43 +00:00
Treehugger Robot
4cb7543396 Merge "Increase heap size for lint tool" am: fd5978a473
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1362698

Change-Id: I2bef400d8824987a0a7afe7e16104f8a4df55f29
2020-08-12 22:16:41 +00:00
Treehugger Robot
52b4132004 Merge "Stop using prebuilt NDK CRT objects." am: 50a58067e6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1363344

Change-Id: Iab2e31cd03c36d489c57aa34938c49e112c11df2
2020-08-12 22:16:11 +00:00
Treehugger Robot
fd5978a473 Merge "Increase heap size for lint tool" 2020-08-12 22:07:18 +00:00
Treehugger Robot
50a58067e6 Merge "Stop using prebuilt NDK CRT objects." 2020-08-12 22:01:27 +00:00
Treehugger Robot
0311cb6359 Merge "Start collecting build configuration metrics." am: 3a9141df29
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1397028

Change-Id: I748a681d2b788bdb0b7a11d17f43bd691093f1e9
2020-08-12 17:27:32 +00:00
Andrei-Valentin Onea
ed7377cc19 Merge "Rename hiddenapi csv artifact" am: d89374c5a7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1394869

Change-Id: I2156da1f1c7ca3a1f92d924ba55109b8ca4f0d8a
2020-08-12 17:27:00 +00:00
Treehugger Robot
3a9141df29 Merge "Start collecting build configuration metrics." 2020-08-12 17:17:31 +00:00
Andrei-Valentin Onea
d89374c5a7 Merge "Rename hiddenapi csv artifact" 2020-08-12 17:08:10 +00:00
Ramy Medhat
0fc67eb5e9 Add reasonable defaults to RBE configuration parameters.
Test: simple one action build
Change-Id: Ic66ad2b89866a67008950035bc3b559dae4e3a3e
2020-08-12 12:30:05 -04:00
Dan Willemsen
50e7c7f0c6 Merge "Remove M4 export to Make" am: a6ba0d2a4c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1393489

Change-Id: I0678c3399a99c127048801175bd9f40c771c8e9a
2020-08-12 15:01:32 +00:00
Dan Willemsen
a6ba0d2a4c Merge "Remove M4 export to Make" 2020-08-12 14:48:08 +00:00
Patrice Arruda
9685036e6e Start collecting build configuration metrics.
This is an initial CL that collects the environment variables
USE_GOMA and USE_RBE. This is a needed metric to determine how
many users are currently using GOMA so we can help them migrate
to RBE.

Bug: b/163598127
Test: m nothing and checked soong_metrics
Change-Id: I39536eabad01aafbb3bd7182515d72230b36f658
2020-08-12 14:25:37 +00:00
Kousik Kumar
deab08e664 Merge "Add remote execution support for clang-tidy actions" am: 20cccd2e95
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1343716

Change-Id: I38233bbeb4ddbbcd79eb480cadfafe29b3b03f32
2020-08-12 14:05:26 +00:00
Kousik Kumar
20cccd2e95 Merge "Add remote execution support for clang-tidy actions" 2020-08-12 13:46:10 +00:00
Ivan Lozano
1200e780fd Merge "Only return the source files of a Rust module with a SourceProvider if the internal compiler has been disabled" am: 4c698f3ff2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1393632

Change-Id: I06243ab4506fd46e760da0b45d97bdda79698196
2020-08-12 13:28:53 +00:00
Ivan Lozano
4c698f3ff2 Merge "Only return the source files of a Rust module with a SourceProvider if the internal compiler has been disabled" 2020-08-12 13:11:50 +00:00
Treehugger Robot
a2e8000dce Merge "HostToolPath should return install path" am: 65c74d9f89
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1396128

Change-Id: I628ebb49b3315bed63c3c6d9174d9b96ccd38ba9
2020-08-12 03:03:28 +00:00
Treehugger Robot
65c74d9f89 Merge "HostToolPath should return install path" 2020-08-12 02:45:40 +00:00
Chih-Hung Hsieh
a756270ec2 HostToolPath should return install path
Bug: 163154468
Test: make; find dependencies of 'Module:  sqlite3_bindgen_x86_64'
Change-Id: Id9fc4f1937983bdf7eb1732ed6a8afd5aa3eb24c
2020-08-11 16:38:52 -07:00
Dan Albert
92fe740677 Stop using prebuilt NDK CRT objects.
We don't need the prebuilt versions. The NDK CRT objects are (now)
built from the platform sources and the only difference is that the
NDK CRT objects also include an ELF note that identifies the NDK
version, which isn't helpful for anything built by the platform.

Add a `crt` property to cc_object that allows CRT objects to identify
themselves. CRT objects, unlike other modules, will have a variant
built per-API level they support, rather than just an SDK variant and
a platform variant. This is needed because new CRT objects will rely
on APIs not available in old libcs and old CRT objects will not
support all the features of a modern one.

Test: treehugger
Bug: http://b/159925977
Change-Id: I6595485fa1bfe0ad4945193d344b863f64eec654
2020-08-11 15:06:55 -07:00
Pirama Arumuga Nainar
eb037766bb Merge "[cc/sanitize] Deprecate blacklist sub-property of sanitize" am: 84ce8d8d89
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1383562

Change-Id: I76d482938f8f7515a6a36a27f9f162852cfa12ec
2020-08-11 21:42:46 +00:00
Pirama Arumuga Nainar
84ce8d8d89 Merge "[cc/sanitize] Deprecate blacklist sub-property of sanitize" 2020-08-11 21:24:16 +00:00
Andrei Homescu
5db69cc896 Only return the source files of a Rust module with a SourceProvider if the internal compiler has been disabled
Test: mmma system/tools/aidl with assertOutput FIXMEs re-enabled
Change-Id: I84598ae2d1181656b7d68088f86ab016563e5d80
2020-08-11 13:25:25 -07:00
Anton Hansson
6e9ac52bdd Merge "Update neverallows path for sdkextensions" am: 3d02e1f3c5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1318995

Change-Id: I593988dac966a2b85c0916b0918680701427d23e
2020-08-11 12:09:04 +00:00
Anton Hansson
3d02e1f3c5 Merge "Update neverallows path for sdkextensions" 2020-08-11 11:55:39 +00:00
Dan Willemsen
ee8cd06a2f Remove obsolete PDK build functionality am: 9f43597ff7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1319667

Change-Id: I44b7f0a54a3bf7016d948747e881c4c3b8db7fc9
2020-08-11 09:41:59 +00:00
Anton Hansson
4b8e64b1ce Update neverallows path for sdkextensions
The modules sources have been moved, update the sdk variant whitelist.

Bug: 156286599
Test: m
Exempt-From-Owner-Approval: cherry-pick from internal
Change-Id: Idbd02b17b1c741f1dc20a3742ff57e8469a846c0
Merged-In: Idbd02b17b1c741f1dc20a3742ff57e8469a846c0
2020-08-11 10:32:21 +01:00
Jeongik Cha
839fc6659c Update ApexAvailableBaseline
Remove ipmemorystore-aidl-interfaces-java in allowlist for
com.android.tethering

Bug: 146436251
Test: m nothing
Change-Id: I8b7f97d59c2fd191f467ad50a8fd66d9a5d37704
2020-08-11 13:07:18 +09:00
Dan Willemsen
9f43597ff7 Remove obsolete PDK build functionality
This hasn't worked for a couple years, and continues to bitrot. Just
remove it.

Adds a bpfix rule so that we can eventually remove the
product_variables.pdk definition, which is now always a no-op.

Test: treehugger
Change-Id: I830b54d419b59f6db1d4617b45e61a78234f57a7
Merged-In: I830b54d419b59f6db1d4617b45e61a78234f57a7
2020-08-11 01:11:44 +00:00
Martin Stjernholm
2829f6c09c Propagate settings for building in an unbundled tree.
Test: build/soong/scripts/build-aml-prebuilts.sh art-module-sdk
  on master-art
Change-Id: Iaff7f590d67fdd6f533f2831475deb7b92090ea2
2020-08-11 01:41:20 +01:00
Stephen Crane
fb67ab5152 Add Rust Binder crate to allowed list
Test: m libbinder_rs
Change-Id: I5c6b6216376a8b68c4fc7a30490c035c4fae54ff
2020-08-10 19:41:24 +00:00
Andrei Onea
47841973b2 Rename hiddenapi csv artifact
Use a more inclusive terminology (go/hiddenapi-list-renaming).

Bug: 162844296
Test: m
Change-Id: I9feea8f9d8e88977d949dfe4dcbd7e72bf77a451
2020-08-10 17:23:52 +01:00
Ivan Lozano
5197acb50d Merge "Export Rust SourceProvider types and methods" am: a57e56a684
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1391156

Change-Id: Ia805d2355c4d66e5c7ddef793d614d2a0b8c0611
2020-08-10 12:27:00 +00:00
Ivan Lozano
a57e56a684 Merge "Export Rust SourceProvider types and methods" 2020-08-10 12:11:16 +00:00
Thiébaud Weksteen
b3c97e2a83 Merge "rust: fully disable all lints when no_lint is set" am: 95647739aa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1393998

Change-Id: Ibec9e18f34bf08b31cf08d2ed8a140e5336186ee
2020-08-10 08:11:00 +00:00
Thiébaud Weksteen
95647739aa Merge "rust: fully disable all lints when no_lint is set" 2020-08-10 07:56:19 +00:00