Commit Graph

32766 Commits

Author SHA1 Message Date
Nikita Ioffe
4e36d71632 Turn apex compression from opt-out into opt-in am: 82aab58aea
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1563633

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I77afe618e9517d6b2a6a7dd8bf786af211c1bd0f
2021-01-29 20:47:16 +00:00
Nikita Ioffe
82aab58aea Turn apex compression from opt-out into opt-in
Compression is useful only for big enough apexes. We can manually opt-in
them, instead of trying to find list of apexes that should be opted-out.

Test: m
Bug: 178713634
Change-Id: Ice86fabb7c1db4a1e21e4c983d595cfd3a1c0b7a
2021-01-28 20:25:23 +00:00
Anton Hansson
ebf442153d Merge "Fix prebuilt_apis creating of "latest" incompatibilities" am: b0d0710f67
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1558554

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id3b42313c6890dc57c4c27123889c89bc0a783eb
2021-01-28 16:52:09 +00:00
Anton Hansson
b0d0710f67 Merge "Fix prebuilt_apis creating of "latest" incompatibilities" 2021-01-28 16:48:16 +00:00
Paul Duffin
70b8c656c6 Merge "Add boot_image module type" am: b9d731c8a9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1556240

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I29f2ed721092ab23f56baaa0777e8960971f5856
2021-01-28 16:06:35 +00:00
Paul Duffin
b9d731c8a9 Merge "Add boot_image module type" 2021-01-28 15:39:57 +00:00
Treehugger Robot
3f4cc86f15 Merge "apex: checks min_sdk_version for preview/current" am: 99afe0d442
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1557545

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If08666fb01725897410c6dad94f2c7cc087d90c4
2021-01-28 13:38:41 +00:00
Treehugger Robot
99afe0d442 Merge "apex: checks min_sdk_version for preview/current" 2021-01-28 13:04:52 +00:00
Jingwen Chen
8179ddae36 Merge changes Ie5f793a0,I9b9674ba am: 3b171f4013
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1561259

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I58ceeced944218393cdeffff08e03d21d80e4345
2021-01-28 03:59:22 +00:00
Bob Badour
0bea56b5a9 Add APSL reciprocal licenses. am: 304fe7f197
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1562556

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5afb3347a9e34198cbc5d891daa0dc192ea73fb1
2021-01-28 03:58:21 +00:00
Jingwen Chen
3b171f4013 Merge changes Ie5f793a0,I9b9674ba
* changes:
  bp2build: support Starlark rules and load statements.
  Make bp2buildMutators registration local to TestContext.
2021-01-28 03:35:48 +00:00
Bob Badour
304fe7f197 Add APSL reciprocal licenses.
Test: m all

Bug: 151953481
Bug: 151177513
Bug: 67772237
Change-Id: Ia719741cb0dd3e5f8230f637c321c82377f022dc
2021-01-27 16:51:36 -08:00
Treehugger Robot
a1df4dd3a2 Merge "Add system/extras/simpleperf to Rust allowed paths" am: 8a0f212bfa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1561616

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie99e010b017030a8753a6db56ce462c49df84c10
2021-01-27 13:32:50 +00:00
Treehugger Robot
8a0f212bfa Merge "Add system/extras/simpleperf to Rust allowed paths" 2021-01-27 12:13:55 +00:00
Paul Duffin
65964a6a90 Merge "Make com.android.art related tests more realistic" am: 57eec1007e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560277

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I52e76fb5c2b3f38a99129b2bc33f49f6ddac330a
2021-01-27 10:25:51 +00:00
Paul Duffin
57eec1007e Merge "Make com.android.art related tests more realistic" 2021-01-27 10:03:42 +00:00
Yi Kong
2c9b3e0e25 Add system/extras/simpleperf to Rust allowed paths
This is to allow simpleperf to export rust bindings for use by
profcollect.

Test: build
Change-Id: I187139d6133c144e86cbdb05d20c2515c189718e
2021-01-27 15:48:31 +08:00
Jingwen Chen
40067de675 bp2build: support Starlark rules and load statements.
This CL adds support to bp2build for declaring the location of the
Starlark rule definition when creating BazelTargetModules. This is
needed for non-native rules that needs to be loaded from .bzl files
somewhere in the tree.

Since load statements are aggregated at the top of the BUILD file, away
from the targets that actually use them, this CL also introduces an
abstraction to group BazelTargets together and compute their load
statements and target string representations separately, allowing load
statements to be decoupled and written into a BUILD file before the
targets themselves.

Test: soong tests
Test: TH
Test: GENERATE_BAZEL_FILES=true m nothing && build/bazel/scripts/bp2build-sync.sh write && bazel cquery //bionic/...
Fixes: 178531760

Test: TH
Change-Id: Ie5f793a00006eb024eaef07ddd9fde7aaefc054e
2021-01-26 22:46:20 -05:00
Jingwen Chen
a42d6417b3 Make bp2buildMutators registration local to TestContext.
The previous implementation relied on the implicit registration of Bp2Build mutators, resulting in test non-hermeticity. Refactor bp2build tests to explicitly specify the bp2build mutators under test.

Test: Soong tests

Test: TH
Change-Id: I9b9674bad1ea533b3bd31b07077a9e02c99b4c1d
2021-01-26 21:57:27 -05:00
Treehugger Robot
9a2a87f6e2 Merge "update apex allowed deps-2" am: fcf2da0b29
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560310

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic5f89115eaa928b0c7e68cf690de0eec72b12e17
2021-01-27 01:15:55 +00:00
Treehugger Robot
fcf2da0b29 Merge "update apex allowed deps-2" 2021-01-27 01:06:48 +00:00
Treehugger Robot
134c52fd0f Merge "multiproduct_kati: increase ram per job to 25GB" am: fb7c675ecf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1561076

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie46f29e6413d27bcc21c6b75194f87a14fa816d3
2021-01-27 01:01:37 +00:00
Treehugger Robot
fb7c675ecf Merge "multiproduct_kati: increase ram per job to 25GB" 2021-01-27 01:00:51 +00:00
Treehugger Robot
13bb117f3b Merge "Add FAILED: prefix to RBE Fatal error message" am: 2e0598ddc3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560871

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic50a38f89cd212452db5caa642eaa8c40559b8ff
2021-01-27 01:00:45 +00:00
Treehugger Robot
2e0598ddc3 Merge "Add FAILED: prefix to RBE Fatal error message" 2021-01-27 00:50:53 +00:00
Treehugger Robot
113baac21e Merge "Don't use "echo -e" when creating prop file" am: 6c1eb446eb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1557546

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6be5bd026229f05f9a7ae298c12410afa3beb6b6
2021-01-27 00:47:27 +00:00
Treehugger Robot
6c1eb446eb Merge "Don't use "echo -e" when creating prop file" 2021-01-26 23:47:46 +00:00
Jingwen Chen
6d385260fd Merge "bp2build: support genrule $(location) and $(locations)" am: 801a669566
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560231

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4407dd444c66e5adcd44ac081b28991f35d997bf
2021-01-26 22:54:21 +00:00
Jingwen Chen
801a669566 Merge "bp2build: support genrule $(location) and $(locations)" 2021-01-26 22:30:48 +00:00
Bob Badour
b22e224035 Merge "Add license_kinds for CDDL" am: 398ba4fcb7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560129

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ea6b63908a010d4e65bc7c67ff9cb0d4f562b5d
2021-01-26 22:26:03 +00:00
Colin Cross
f04fe9abca multiproduct_kati: increase ram per job to 25GB
multiproduct_kati sometimes passes 20GB per soong_build process,
increase required ram per job to 25GB.

Bug: 178376498
Test: none
Change-Id: I446f52ea7419bc3015d940511af1f03b15eb651e
2021-01-26 22:09:44 +00:00
Bob Badour
398ba4fcb7 Merge "Add license_kinds for CDDL" 2021-01-26 21:57:35 +00:00
Liz Kammer
9f6be6b766 Merge "Refactor android/paths.go to allow reuse" am: bd52e94cbc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1496657

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I05aedc7dc65d4bbae07c8c10ff44f8383ff306cb
2021-01-26 21:27:53 +00:00
Liz Kammer
bd52e94cbc Merge "Refactor android/paths.go to allow reuse" 2021-01-26 20:35:06 +00:00
Ivan Lozano
16f751c248 Merge "Rust: abort on panic" am: 0e737626fc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie34f96d628c77119fcb1c050f063aefd599cab6a
2021-01-26 20:16:53 +00:00
Ivan Lozano
0e737626fc Merge "Rust: abort on panic" 2021-01-26 19:54:33 +00:00
Kousik Kumar
1e4d5f3e67 Add FAILED: prefix to RBE Fatal error message
This error message it currently being
logged to stdout which goes to build.log file . We want it to be logged to
build_error.log file instead so that downstream systems that need to run
based on the error message will continue to work.

Test: Tested by running `m toybox` and ensuring that FAILED: prefix is
at the beginning of the line.

Bug: b/177221705
Change-Id: Ie0c9acee2739acf149384e33804b5fca3273c24f
2021-01-26 14:34:30 -05:00
Paul Duffin
fba1b458a0 Merge "Fix problems with TestPrebuiltExportDexImplementationJars" am: 24907d115a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560276

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iae19ab19cdeb8421e2ac1307ced4399da87cf431
2021-01-26 18:27:37 +00:00
Paul Duffin
24907d115a Merge "Fix problems with TestPrebuiltExportDexImplementationJars" 2021-01-26 18:15:09 +00:00
Anton Hansson
20ce41d0b9 Fix prebuilt_apis creating of "latest" incompatibilities
Incompatibilities are a bit special in that we only ever want to use
the "latest" if it is for a non-finalized SDK.

Add a new argument, next_api_dir, and use only those files to create
"latest incompatibilities". Create empty incompatibilities for all
modules not in next_api_dir.

Bug: 178171189
Test: m
Change-Id: I727a52e3a45a5e607c6176d481b40fbf495c6eb0
2021-01-26 18:08:19 +00:00
Treehugger Robot
b133ff3243 Merge "Implement String() method for CodegenMode." am: 3b9234301c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560230

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I719a8d91208b14f6609af749b59927eacf0a5077
2021-01-26 18:02:42 +00:00
Liz Kammer
a830f3abc2 Refactor android/paths.go to allow reuse
Extracts out the relevant pieces of ModuleContext into a minimal
interfaces necessary for path handling for Modules. This will allow
reuse in queryview by allowing it to implement only the parts of the
module interface necessary for path expansion in order to properly
handle path properties.

Test: go test soong tests
Change-Id: Iea39a365e5a2ff55071e435fb64f9e6464bbcafd
2021-01-26 12:51:02 -05:00
Treehugger Robot
3b9234301c Merge "Implement String() method for CodegenMode." 2021-01-26 17:45:45 +00:00
Treehugger Robot
54eddb09c0 Merge "Migrate Rust to LLVM coverage." am: 2a3094c70f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1551576

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7d3319714128a673aff90233c5113bae215fb8c9
2021-01-26 15:56:30 +00:00
Treehugger Robot
2a3094c70f Merge "Migrate Rust to LLVM coverage." 2021-01-26 15:28:36 +00:00
Jingwen Chen
885ee7ad86 bp2build: support genrule $(location) and $(locations)
Soong genrules support $(location) and $(locations) cmd variable
shortcuts without labels. The shortcut is for the location of the first
tool module from the concatenation of the tools and tool_files
properties.

Bazel doesn't support this shortcut, so the bp2build mapping needs to
support it.

Documentation:
https://cs.android.com/android/platform/superproject/+/master:build/soong/genrule/genrule.go;l=95-96;drc=316e07c593ab66599c74725cf482dedbb32b2875
Code: https://cs.android.com/android/platform/superproject/+/master:build/soong/genrule/genrule.go;l=236-246;drc=316e07c593ab66599c74725cf482dedbb32b2875

Test: build_conversion_test.go
Test: TH

Change-Id: I8aa98ae460af3a3fbb0a7835572518680dc7ade1
2021-01-26 09:15:01 -05:00
Jingwen Chen
dcc329af9f Implement String() method for CodegenMode.
Test: build_conversion_test.go
Change-Id: I17bf5c9b366b0e7bda59f0b1e18f6272153a6ed7
2021-01-26 09:14:55 -05:00
Jeff Vander Stoep
bf7a902951 Rust: abort on panic
Test: build (test included in build)
Bug: 162266455
Change-Id: I7f53956d3a35f923d0282d511d6360051f945a88
2021-01-26 09:09:06 -05:00
Jeongik Cha
40c6ae759d update apex allowed deps-2
an aidl module should specify its version. because of that some deps
which have version on its name is added.

Bug: 150578172
Test: m
Change-Id: If5c5d66e59f33ecf37d118b2b80db820ec78ea04
2021-01-26 23:05:42 +09:00
Paul Duffin
3451e1600f Add boot_image module type
Adds a boot_image module type. Follow on changes will add instances of
boot_image to represent the ART and framework boot images in the art
and frameworks/base repositories respectively.

For the moment they retrieve their associated boot image configuration
from the map returned by genBootImageConfigs() and leave the actual
work of creating the ninja rules to create the boot images to the
dex_bootjars singleton.

Bug: 177892522
Test: m droid
Change-Id: Ib69701de0d24d996bb8e8be7a20b941be907390e
2021-01-26 13:00:07 +00:00