Commit Graph

22013 Commits

Author SHA1 Message Date
Ivan Lozano f900f4b848 Test for rust install path regressions.
Bug: 153423714
Test: Soong tests pass.
Change-Id: Ica4d2c7e47f1c325fa387a91f6c476dfa4f93710
2020-04-29 15:31:42 -04:00
Ivan Lozano 9d1df10e2a Provide 32-bit and 64-bit Rust libs by default.
CC libraries which depend on Rust libraries get missing dependency
errors when building 32-bit variants dependent on Rust modules which
don't explicitly have "multilib: both" declared.

Because CC libraries use MultilibBoth by default, Rust should do the
same.

This also fixes a bug where the ARM32 toolchain incorrectly embedded
toolchain64Bit instead of toolchain32Bit.

Bug: 154730212
Test: Rust libraries provide both variants by default.
Change-Id: Ia545fe069d3c6b77c3d18f4f10267e2c72ee0bab
2020-04-29 15:31:34 -04:00
Treehugger Robot 2205616710 [automerger skipped] Merge "soong: Add support for override_runtime_resource_overlay" am: 6e2fb5c0cd am: bfeacb9894 -s ours
am skip reason: Change-Id I8ca9d173b6ab7f9306c83c2b434107111aa2ca88 with SHA-1 b830796ca4 is in history

Change-Id: I16cf86ad3ee46ccae4a0188621b823545e682b01
2020-04-29 18:34:27 +00:00
Paul Duffin 7b78b4d404 java_sdk_library: Correct stubs source generation classpath
The stubs source should be generated using the same classpath that is
used to compile the implementation library, i.e. sdk_version,
system_modules and libs/static_libs.

Previously, the sdk_version used to generate the stubs was different.
It provided access to a wider API surface than was necessary. This
change fixes that.

Test: m checkapi
Bug: 155164730
Change-Id: I7bc54dc4ad12a7d6c7503111d1322ee35c56d713
2020-04-29 19:03:45 +01:00
Paul Duffin 260bd316bf Fix definition of android_stubs_current in sdk tests
This change fixes an issue with the definition of the
android_stubs_current (and similar) modules in the sdk tests. They were
incorrectly defined as java_sdk_library_import and not java_import.

Test: m nothing
Bug: 155164730
Change-Id: I4e9bfebdd2ff0a374e12284ccdf5ee5518968969
2020-04-29 18:59:56 +01:00
Treehugger Robot bfeacb9894 Merge "soong: Add support for override_runtime_resource_overlay" am: 6e2fb5c0cd
Change-Id: I083a058aa53f8473ddfbdf1abb18b8ee0f09ccb2
2020-04-29 17:48:24 +00:00
Treehugger Robot 6e2fb5c0cd Merge "soong: Add support for override_runtime_resource_overlay" 2020-04-29 17:30:00 +00:00
Liz Kammer 9c11f7fba5 Merge "Document Instrumentation_for android app tests." am: 8e25bcb895 am: 189f6704c1
Change-Id: Idfb4f575e84eb865545e06e355efff4c425d7331
2020-04-29 16:39:47 +00:00
Liz Kammer 189f6704c1 Merge "Document Instrumentation_for android app tests." am: 8e25bcb895
Change-Id: I7974f1ca9090b54042313246225561a643a07bcf
2020-04-29 16:22:53 +00:00
Liz Kammer 8e25bcb895 Merge "Document Instrumentation_for android app tests." 2020-04-29 16:06:49 +00:00
Roshan Pius 4df2bc76d5 soong: Add support for override_runtime_resource_overlay
Bug: 154960712
Test: go test ./... -test.v -run TestOverrideAndroidApp
(cherry-picked from ag/11270710)

Change-Id: I8ca9d173b6ab7f9306c83c2b434107111aa2ca88
Merged-In: I8ca9d173b6ab7f9306c83c2b434107111aa2ca88
2020-04-29 09:01:51 -07:00
Nicolas Geoffray 101a7622fe Fix dex2oat symlink now that we generate dex2oat32/dex2oat64.
Test: m
Bug: 155257660
Change-Id: I466feabc64c0fb77fcf652be81bc0c4944b84ac0
2020-04-29 12:00:41 +01:00
Nicolas Geoffray 069b3eb78e Merge "Use FORCE_BUILD_LLVM_COMPONENTS." am: 71d105ce41 am: 280b65e931
Change-Id: I5228ae3d490df8403c918204438208525ef24c8c
2020-04-29 09:56:58 +00:00
Nicolas Geoffray 280b65e931 Merge "Use FORCE_BUILD_LLVM_COMPONENTS." am: 71d105ce41
Change-Id: I7d1243fad1a48fe2e370fe33532500ee9d9b7c50
2020-04-29 09:42:14 +00:00
Nicolas Geoffray 71d105ce41 Merge "Use FORCE_BUILD_LLVM_COMPONENTS." 2020-04-29 09:22:25 +00:00
Anton Hansson 2ee9dd0f19 Remove obsolete var apiFileMakeVariableSuffix am: 6affb1f4fe am: 33dffe15d0
Change-Id: I03ad40b340dc0350e909e9f4986a0f661dde977f
2020-04-29 08:50:07 +00:00
Paul Duffin ede72e3ee7 Merge "Remove obsolete var apiFileMakeVariableSuffix" into rvc-dev am: cceb7f2c10
Change-Id: Ia613f0da5fcfa16bfa06c4ee3dcb28c66b32d2c6
2020-04-29 08:45:06 +00:00
Anton Hansson 33dffe15d0 Remove obsolete var apiFileMakeVariableSuffix am: 6affb1f4fe
Change-Id: Ib11dc4b3cc511f11f6954d1b86b71be14bf7a7c4
2020-04-29 08:28:33 +00:00
Paul Duffin cceb7f2c10 Merge "Remove obsolete var apiFileMakeVariableSuffix" into rvc-dev 2020-04-29 08:22:35 +00:00
Liz Kammer 6b0c55263c Document Instrumentation_for android app tests.
Test: m soong_docs

Change-Id: I84fd20ea563fc75dc04ac41f44f2f53df994925f
2020-04-28 16:45:51 -07:00
Roshan Pius db48e6b051 Merge "soong: Add support for override_runtime_resource_overlay" into rvc-dev am: 016159dfe4
Change-Id: Ie6a180887eab39fbf46a583a2629c2924add4c5b
2020-04-28 22:11:40 +00:00
Roshan Pius 016159dfe4 Merge "soong: Add support for override_runtime_resource_overlay" into rvc-dev 2020-04-28 22:09:15 +00:00
TreeHugger Robot 3eb0aa5454 [automerger skipped] Merge "Allow remote execution of link actions." into rvc-dev am: 70a42b405f -s ours
am skip reason: Change-Id Ica920c3d7f79f2996210b9cbd448126451c1707c with SHA-1 9a90fe5e23 is in history

Change-Id: I47128e4cc54e801af5384825ce279da37aac19cb
2020-04-28 22:05:22 +00:00
TreeHugger Robot 70a42b405f Merge "Allow remote execution of link actions." into rvc-dev 2020-04-28 21:46:39 +00:00
Jaewoong Jung bf13546f54 Add defaults support to runtime_resource_overlay.
(This is a cherry-pick change.)

Bug: 154956723
Test: app_test.go
Change-Id: Ida29035ef45ec188c95a07a8bccaaa77eea486d7
Merged-In: Ida29035ef45ec188c95a07a8bccaaa77eea486d7
2020-04-28 20:49:17 +00:00
TreeHugger Robot 7845149267 [automerger skipped] Merge "Fix RuleBuilder remoteable actions running in the local pool." into rvc-dev am: 99899b3582 -s ours
am skip reason: Change-Id I29452f6fc7a161b94189731e3e3cc1f34907b80c with SHA-1 944839a88a is in history

Change-Id: I1966259fc71e27d9f5876a094773b0542337d792
2020-04-28 20:14:18 +00:00
Roshan Pius b830796ca4 soong: Add support for override_runtime_resource_overlay
Bug: 154960712
Test: go test ./... -test.v -run TestOverrideAndroidApp
Change-Id: I8ca9d173b6ab7f9306c83c2b434107111aa2ca88
2020-04-28 13:08:55 -07:00
TreeHugger Robot 99899b3582 Merge "Fix RuleBuilder remoteable actions running in the local pool." into rvc-dev 2020-04-28 19:54:47 +00:00
Anton Hansson 6affb1f4fe Remove obsolete var apiFileMakeVariableSuffix
Not used anymore, as the make variables have been deleted.

Test: m
Change-Id: I1b29ec33951588ab479fc3e14f85e9aa189b971b
2020-04-28 20:30:25 +01:00
Treehugger Robot fb1add1fd6 Merge "Refactor RBE support for Javac/R8/D8 to use the remoteexec package." am: 0b3b3db525 am: ebbe86fdb7
Change-Id: I1e1e35955cefcd26cfe58e9cd9f02c9465865442
2020-04-28 18:33:59 +00:00
Anton Hansson e366fffa51 Remove obsolete var apiFileMakeVariableSuffix
Not used anymore, as the make variables have been deleted.

Bug: 152479829
Test: m
Change-Id: I1b29ec33951588ab479fc3e14f85e9aa189b971b
Merged-In: I1b29ec33951588ab479fc3e14f85e9aa189b971b
2020-04-28 19:30:04 +01:00
Treehugger Robot ebbe86fdb7 Merge "Refactor RBE support for Javac/R8/D8 to use the remoteexec package." am: 0b3b3db525
Change-Id: I1b75e631018deea923b036d4cd92ebe8e13fd59d
2020-04-28 18:12:27 +00:00
Treehugger Robot 0b3b3db525 Merge "Refactor RBE support for Javac/R8/D8 to use the remoteexec package." 2020-04-28 17:53:50 +00:00
Treehugger Robot a65a304368 Merge "runtime_resource_overlay can be included in APEXes" am: c869812b04 am: 765dbb0b83
Change-Id: Ia5f4e186891206912ae5cac5a7b29896a57ce1c6
2020-04-28 17:51:21 +00:00
Treehugger Robot 765dbb0b83 Merge "runtime_resource_overlay can be included in APEXes" am: c869812b04
Change-Id: I8af221f4a6b4d1c5fde2ba25a9e3c9cfd4271246
2020-04-28 17:29:47 +00:00
Treehugger Robot c869812b04 Merge "runtime_resource_overlay can be included in APEXes" 2020-04-28 17:13:26 +00:00
Ramy Medhat 1dcc27e47c Refactor RBE support for Javac/R8/D8 to use the remoteexec package.
Test: build with and without RBE_JAVAC/RBE_R8/RBE_D8 set.
Change-Id: I1607f8cfb4d2c3cbb3672152bbeb561d9968bc60
2020-04-28 11:37:20 -04:00
Nicolas Geoffray 7cad0f860b Use FORCE_BUILD_LLVM_COMPONENTS.
And remove the allow missing dependencies flag.

Test: build-mainline-modules.sh
Change-Id: I6ba8892ef66eeb42c7bd3abc989a80ad4b6a1cf9
2020-04-28 15:54:59 +01:00
Jiyong Park e59e78530a [automerger skipped] Merge "Add test_for property" into rvc-dev am: 23ba7cc000 -s ours
am skip reason: Change-Id I45ed0d7a15540b0d69b2a3b8d9c4cb202adff6f2 with SHA-1 62304bbeec is in history

Change-Id: I1cca5861da19cfbf911ad734148665af8e95efc5
2020-04-28 14:42:17 +00:00
Jiyong Park 23ba7cc000 Merge "Add test_for property" into rvc-dev 2020-04-28 14:27:07 +00:00
Jiyong Park 9c09b63e40 [automerger skipped] Merge "Set apex_available property" into rvc-dev am: e86c771cd0 -s ours
am skip reason: Change-Id I11a4e877ee27f7c55e2f00371c6fa58daedb1a9f with SHA-1 71f42846a3 is in history

Change-Id: I0373f5441245daafbd1ce7af5e7e0d2a9dffa267
2020-04-28 14:14:38 +00:00
Jiyong Park e86c771cd0 Merge "Set apex_available property" into rvc-dev 2020-04-28 13:57:02 +00:00
Jiyong Park 69aeba9982 runtime_resource_overlay can be included in APEXes
runtime_resource_overlay is put to an APEX via 'apps' property. It is
placed under ./overlay directory in it.

Bug: 154822536
Test: m
Change-Id: I8edf4a26c26368c52fb7b327b2ecc829f21ea148
2020-04-28 22:55:54 +09:00
Treehugger Robot f653a91daf Merge "Do not propagate dynamic dependencies for stub libs." am: a6c19f792d am: 04fd1b2605
Change-Id: I59d7c20357cfc8f5da42d3a7b94305c5ff27a9b6
2020-04-28 12:54:11 +00:00
Jiyong Park f0d01b7c98 Add test_for property
This change adds 'test_for' property to cc_test_* types. The property is
used to mark a module as a test for one or more APEXes, in which case
the module has accecss to the private part of the listed APEXes. For
example, the module is linked with the actrual shared library in the
APEX instead of the stub of the shared library.

Exempt-From-Owner-Approval: cherry-pick from AOSP

Bug: 129539670
Bug: 153046163
Test: m
Merged-In: I45ed0d7a15540b0d69b2a3b8d9c4cb202adff6f2
(cherry picked from commit 62304bbeec)
Change-Id: I45ed0d7a15540b0d69b2a3b8d9c4cb202adff6f2
2020-04-28 21:35:40 +09:00
Treehugger Robot 04fd1b2605 Merge "Do not propagate dynamic dependencies for stub libs." am: a6c19f792d
Change-Id: Ie795c38dbb9cba08838e2792998f04b5aa3e42e5
2020-04-28 12:28:31 +00:00
Artur Satayev 8f1221385c [automerger skipped] Merge "Do not allow updatable apps without min_sdk_version." into rvc-dev am: 785afdb04c -s ours
am skip reason: Change-Id I6243d276e5ab25a1007187ad34789ca1b4cc87bf with SHA-1 f40fc858a2 is in history

Change-Id: I3ed12cd151f270d6d98467749e33ddb1ccf0e45c
2020-04-28 12:14:01 +00:00
Ulyana Trafimovich a171a7ca16 [automerger skipped] Merge "Fix host path for dexpreopted system server modules defined in Make." into rvc-dev am: 0f4c868616 -s ours
am skip reason: Change-Id Ia7ea8ac383e32042c31d64971cdc8101ea3068cd with SHA-1 6cf2c0c197 is in history

Change-Id: Ie5b65f41cc4807768cf9b3595bf3cb5da5a7b458
2020-04-28 12:13:51 +00:00
Treehugger Robot a6c19f792d Merge "Do not propagate dynamic dependencies for stub libs." 2020-04-28 12:10:26 +00:00
Jiyong Park 5088a2cbd5 Set apex_available property
The marked library(ies) were available to the APEXes via the
hand-written whitelist in build/soong/apex/apex.go. Trying to remove the
whitelist by adding apex_available property to the Android.bp of the
libraries.

Exempt-From-Owner-Approval: cherry-pick from AOSP

Bug: 150999716
Test: m
Merged-In: I11a4e877ee27f7c55e2f00371c6fa58daedb1a9f
(cherry picked from commit 601d31c234)
Change-Id: I11a4e877ee27f7c55e2f00371c6fa58daedb1a9f
2020-04-28 21:08:58 +09:00