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
Thiébaud Weksteen
6d48aad0ff
Add bloaty package
...
This package can be used by other binary generator to gather the section
sizes at build time. It uses bloaty_merger to export all the measured
data into a single proto file.
Bug: 172339742
Test: m out/soong/binary_sizes.pb
Change-Id: I0ca87cdb2fb8b77226e79d9dcd762abe64aeea51
2021-02-18 15:46:14 +01:00
Treehugger Robot
ca52bfcf0f
Merge "Further simplify the link type check routine"
2021-02-18 13:54:27 +00:00
Mathew Inwood
29bb2fd7ed
Add phony target for depsinfo.
...
Test: m com.android.art-depsinfo
Change-Id: I13d741b0cbc9f5dbc9a28c9c28d17f89a2b20232
2021-02-18 11:36:40 +00:00
Jiyong Park
4941e4b9d1
Merge "Linktype check error message becomes more correct"
2021-02-18 11:32:03 +00:00
Jiyong Park
7f87e1ab49
Further simplify the link type check routine
...
Bug: 180477804
Test: m nothing
Change-Id: I216be96cf844fe42ba0cec467eea8520ff4ef4f2
2021-02-18 20:29:05 +09:00
Pedro Loureiro
5d190cc24e
Add support for lint baseline files
...
Test: m droid
Test: go test ^TestJavaLint # (from soong/build/java)
Change-Id: I249a0a0597b0bf8495460ed283b476ad2eb36edc
2021-02-18 11:15:30 +00:00
vichang
d51336b73c
Merge "Add first_perfer32 option to compile_multilib" am: 2a4bbb8061
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1426709
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I5af31e2fd42e9c27f2d43b336fa599675747bfa2
2021-02-18 10:16:20 +00:00
vichang
8c488d9075
Merge "Non-installable module should not be installed into a fuzzer .zip package" am: cd821d8283
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579438
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ie26209bf63286899a954c352c2475541dbd56f62
2021-02-18 10:15:10 +00:00
Anton Hansson
e223268ed8
Merge "Use genrule instead of filegroup for api files" am: 3de06eae5b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1592331
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ie1a03c0e5b5d0b4a8c71cd839a7d093b294ac764
2021-02-18 10:14:23 +00:00
vichang
2a4bbb8061
Merge "Add first_perfer32 option to compile_multilib"
2021-02-18 10:09:52 +00:00
vichang
cd821d8283
Merge "Non-installable module should not be installed into a fuzzer .zip package"
2021-02-18 09:59:06 +00:00
Anton Hansson
3de06eae5b
Merge "Use genrule instead of filegroup for api files"
2021-02-18 09:28:01 +00:00
Thiébaud Weksteen
713db480cd
Add bloaty_merger
...
This script will be used to merge the csv outputs from bloaty into a
single proto file.
Bug: 172339795
Test: atest --host bloaty_merger_test
Change-Id: I9a3c12d7b0c4b5e347fec04e6758bcc1fbc8ab40
2021-02-18 10:25:25 +01:00
Martijn Coenen
fd66847ac1
Add MediaProvider dependencies to allowed_deps.txt
...
Bug: 180375550
Test: builds
Change-Id: I0f5acf1f2de1f9f16294c0ef0e62a7bf48929aff
Merged-In: I0f5acf1f2de1f9f16294c0ef0e62a7bf48929aff
2021-02-18 09:17:07 +00:00
Martin Stjernholm
2eed280a39
Merge "Move the logic to add jacocoagent in instrumentation builds to make." am: 71c139dced
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1592232
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I222e0b0ee5fe1a4e0d19d4d8f0ead8b937ddd052
2021-02-18 08:44:37 +00:00
Jingwen Chen
8c1b97e01b
bp2build: cc_object converter.
...
This CL introduces a basic bp2build converter for cc_object modules.
cc_objects maps cleanly to cc_library targets, but with -fnoaddrsig.
This CL also demonstrates generating include deps within a macro to
allow the cc_object compilation to depend on a relative-include header
within an include dir.
e.g. if "foo.cc" includes "android/log.h" and the latter is located at
"include/android/log.h", the autogenerated header deps would export
"android/log.h" correctly to the foo.cc upstream target.
Test: GENERATE_BAZEL_FILES=true m nothing && bp2build-sync write && bazel build //bionic/libc:crtbegin_so1
Change-Id: Ifd9e097051ec184ab0a1929d07918f0ff4f24d98
2021-02-18 03:27:28 -05:00
Martin Stjernholm
71c139dced
Merge "Move the logic to add jacocoagent in instrumentation builds to make."
2021-02-18 07:52:09 +00:00
Jiyong Park
670e0f62a6
Linktype check error message becomes more correct
...
The type linkType has String() method and the error message is created
using it.
Bug: 180477804
Test: m nothing
Change-Id: I74fe9c93b74904177dbe9d29cd3aa3304b67ba4f
2021-02-18 13:10:18 +09:00
Inseob Kim
916901e361
Allow uninstallable prebuilt_etc to be packaged
...
Till now, prebuilt_etc has to be installable to be packaged. With this
commit, packaging modules like filesystem now can include uninstallable
prebuilt_etc. This can help when prebuilt_etc can conflict with other
partitions e.g. system.
Bug: 179340780
Test: build filesystem with uninstallable prebuilt_etc
Change-Id: Id981fe7ce41f1189eb0f85f2d1677d973004423c
2021-02-18 09:27:53 +09:00
Inseob Kim
9a9500d674
Merge changes from topics "deps_base_dir_filesystem", "filesystem_rootdir" am: abf3f3c0ef
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581403
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I8fbafbb8bc8beaf296be4fd77a3201cc94c2412d
2021-02-18 00:27:46 +00:00
Jooyung Han
b54a375308
Merge "clean up hard-coded min_sdk_version (statsd)" am: 847f230c78
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1589772
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I42d728306cc79629f8951310af9f33f39af53b04
2021-02-18 00:26:04 +00:00
Inseob Kim
abf3f3c0ef
Merge changes from topics "deps_base_dir_filesystem", "filesystem_rootdir"
...
* changes:
Add dirs and symlinks property to filesystem
Add base_dir property to filesystem
2021-02-18 00:19:48 +00:00
Jooyung Han
847f230c78
Merge "clean up hard-coded min_sdk_version (statsd)"
2021-02-18 00:00:00 +00:00