Commit Graph

50164 Commits

Author SHA1 Message Date
Treehugger Robot
6c0de9938e Merge "[cc_fuzz] Revert 'disable LTO' patches." 2022-03-01 23:43:04 +00:00
Liz Kammer
94ff96ed4b Merge "Disallow libc_musl_sysroot_libc++_headers" am: 6bd0d4e864
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2003473

Change-Id: I79b9cc64f14440ca63e26862c9b878741d555d2b
2022-03-01 19:28:27 +00:00
Liz Kammer
6bd0d4e864 Merge "Disallow libc_musl_sysroot_libc++_headers" 2022-03-01 19:10:16 +00:00
Liz Kammer
4f3b9f3d8d Merge "Restrict genrules to disallow directories as input" am: a98902955a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1965346

Change-Id: Iac0395f0fbb4736d7b7fabb662625866cb419498
2022-03-01 15:47:55 +00:00
Liz Kammer
a98902955a Merge "Restrict genrules to disallow directories as input" 2022-03-01 15:19:34 +00:00
Liz Kammer
878a7f1632 Disallow libc_musl_sysroot_libc++_headers
This depends on go modules and is musl specific, not a current focus.
Allows CI to be green again.

Test: bp2build.sh
Change-Id: I35520636b38eed3f829e176c4ba91517fd61364a
2022-03-01 09:08:23 -05:00
Bob Badour
3d9a7d8c6e Export binaries for shippedlibs and bom.
Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m nothing reportallnoticelibrarynames

Change-Id: Ie8e7b7f2b7b120fd25b523ce95641c903f8e97ca
2022-02-28 20:13:35 -08:00
Colin Cross
16836c4613 Merge "Increase errorprone heap size" am: ea74a4779f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2003070

Change-Id: Ie006025b30502811fff796c8b984c24fd675a2ea
2022-02-28 23:26:11 +00:00
Colin Cross
ea74a4779f Merge "Increase errorprone heap size" 2022-02-28 23:02:12 +00:00
Colin Cross
8bf6cad170 Increase errorprone heap size
Increase the size of the errorprone heap to fix OOM exceptions.

Bug: 221480398
Test: forrest
Change-Id: Ia74fd4ecc57f08bcbaa1388e0734ee0cce8ae1a4
2022-02-28 13:10:50 -08:00
Colin Cross
55885df6c2 Merge "Fix adding /DISCARD/ to linker script" am: ff100cdae9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2000279

Change-Id: I51c828542285ba568b6e805a2da797b56b07ac85
2022-02-28 21:10:32 +00:00
Colin Cross
ff100cdae9 Merge "Fix adding /DISCARD/ to linker script" 2022-02-28 20:26:25 +00:00
Cole Faust
a060466be6 Inline board configuration call into printvars call
This is so that:
 - It's consistent with product configuration
 - The return type of board/product config's main functions
   and the arguments to printvars can be changed without
   also making a change in the soong repository. (what I'm about
   to do)
 - Removes obsolete TODO

Bug: 221312856
Test: Presubmits
Change-Id: I593f180881eab9521012df202af8f0233bc0b6ae
2022-02-28 11:56:06 -08:00
Liz Kammer
e8303bd0ae Export variant/features via soong_injection
Test: build/bazel/ci/bp2build.sh
Change-Id: If70043dc9d020d5f4a243ba4b192b99c9c7e8563
2022-02-28 14:17:15 -05:00
Liz Kammer
b7f3366cbb Improve clarity of arch decoding.
Test: CI
Change-Id: I31789f962259e917e99ac6f778644729199f42ed
2022-02-28 14:17:15 -05:00
Cole Faust
1cc088523f Convert add-product-dex-preopt-module-config to Starlark
Bug: 221877397
Test: go test
Change-Id: I79f5209bb42f2c689af96ded376c08522cbec24e
2022-02-28 11:12:08 -08:00
Jiakai Zhang
1f7d72c559 Merge "Install required deps for flattened APEX." am: 0407606ce1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1999190

Change-Id: Ia7a6d0235dce5b8ec179873b810ccda30fb267f0
2022-02-28 15:56:25 +00:00
Jiakai Zhang
0407606ce1 Merge "Install required deps for flattened APEX." 2022-02-28 15:29:31 +00:00
Jiakai Zhang
d70dff7c9b Install required deps for flattened APEX.
The primary boot image is a required dep of the ART APEX. It needs to be
installed no matter the APEX is flattened or not.

Bug: 220991677
Test: 1. m OVERRIDE_TARGET_FLATTEN_APEX=true com.android.art
  2. See boot.art in /system/framework/<isa>
Change-Id: I1a69ae1b86df97fc44ea6c75c8bb9ec960c8d249
2022-02-28 11:18:29 +00:00
Colin Cross
36fd4eb081 Fix adding /DISCARD/ to linker script
I0e293944c5c804b4512fb834f8f18e1d6ecd053c accidentally used
Println instead of Fprintln, causing it to print the current
contents of the buffer instead of adding to it.

Bug: 216192129
Test: manual
Change-Id: I1ddeeef3443c1091cf729328cb8fd74c217432ec
2022-02-25 18:25:45 -08:00
Sam Delmerico
74bb39d1ca Merge "add a module-level allowlist to bp2build" am: b0b94f6182
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1995210

Change-Id: I748ac9e97f1aeb2b67dbf3a74de9cc92d1ae9cf7
2022-02-25 15:40:46 +00:00
Sam Delmerico
b0b94f6182 Merge "add a module-level allowlist to bp2build" 2022-02-25 15:23:00 +00:00
Treehugger Robot
abdcb636cb Merge "Fix snapshot symlinks" am: 97491ead9e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1998310

Change-Id: I03b3ee16de20ab79ff060e91ab35ff1ea92eeec3
2022-02-25 01:03:17 +00:00
Treehugger Robot
97491ead9e Merge "Fix snapshot symlinks" 2022-02-25 00:41:35 +00:00
Treehugger Robot
3a2f53e559 Merge "apex: track transitive dependencies of rust jni lib" am: 7ff6e3d257
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1998313

Change-Id: I2eb0d6a412074eaade526961fed68a9f9f62fa37
2022-02-25 00:17:23 +00:00
Treehugger Robot
7ff6e3d257 Merge "apex: track transitive dependencies of rust jni lib" 2022-02-24 23:50:14 +00:00
Treehugger Robot
974ed2bb63 Merge "Update Rust OWNERS" am: 744c740c92
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1997653

Change-Id: I9e3105b78422f4d4aa613d720815710485d63bca
2022-02-24 22:00:39 +00:00
Treehugger Robot
fdefffec36 Merge "Remove mention of BOARD_CONFIG_VENDOR_PATH" am: 595f27cfd7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1995490

Change-Id: I6b27da92c9d708e1833ceb318e2d6891da3a6366
2022-02-24 22:00:29 +00:00
Treehugger Robot
744c740c92 Merge "Update Rust OWNERS" 2022-02-24 21:43:15 +00:00
Treehugger Robot
595f27cfd7 Merge "Remove mention of BOARD_CONFIG_VENDOR_PATH" 2022-02-24 21:33:22 +00:00
Sam Delmerico
fa1831c200 add a module-level allowlist to bp2build
We currently enabled modules in bp2build on a package level, and we
disable individual modules based on a denylist. To enable a specific
module individually, we must change the corresponding Android.bp file to
include a bp2build_available property. Instead, have a centralized list
of specifically enabled modules.

Bug: 220875679
Test: m bp2build
Change-Id: I908f2f2366b72affb04234fbe92ba03bf5a37338
2022-02-24 14:46:41 +00:00
Jooyung Han
58eccbde83 Merge "apex supports ".apex" tag" am: 4c696f2a89
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1998312

Change-Id: I7c91130f12858a62ef0742c212c30e1ee7ff4de6
2022-02-24 11:52:50 +00:00
Jooyung Han
4c696f2a89 Merge "apex supports ".apex" tag" 2022-02-24 11:29:04 +00:00
Jiyong Park
34d5c33529 apex: track transitive dependencies of rust jni lib
dependencies of rust library registered as jni_lib are correctly
tracked.

Bug: 220397949
Test: m nothing
Change-Id: I43016a77656d04f59f798b02d541c6a19288ec9c
2022-02-24 18:02:44 +09:00
Treehugger Robot
3e2eb7ba82 Merge "[rust] Update clang version used to build bindgen" am: 677f59c850
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1997710

Change-Id: I1e8fa81d652903c972936c512a54cd08feebcece
2022-02-24 05:34:11 +00:00
Treehugger Robot
677f59c850 Merge "[rust] Update clang version used to build bindgen" 2022-02-24 05:07:59 +00:00
Jooyung Han
a6d3667b67 apex supports ".apex" tag
Tests can embed non-compressed .apex output with the tag.

Bug: 221024307
Test: soong test
Change-Id: Id4a239d1897237105a064cea8c97029f5b996a98
2022-02-24 13:59:45 +09:00
Thiébaud Weksteen
7268797ae1 Merge "Add AIDL enforce_permissions attribute" am: 315352e71c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1989107

Change-Id: Ie52442bf548d3abb1789745ac0156c67b30ac698
2022-02-24 02:52:40 +00:00
Thiébaud Weksteen
315352e71c Merge "Add AIDL enforce_permissions attribute" 2022-02-24 02:25:20 +00:00
Inseob Kim
4d945ee719 Fix snapshot symlinks
LOCAL_MODULE_SYMLINKS was enough to install symlinks for snapshot
binaries. However, Soong now requires LOCAL_SOONG_INSTALLED_SYMLINKS,
which results in broken symlink support in snapshots.

This fixes symlink problems, and then amends the Soong snapshot test.

Bug: 220639435
Bug: 220907049
Test: manually add symlinks and try building
Test: Soong test
Change-Id: Ia75ddf3aa642558e396f1d80736310c3c8d02ad1
2022-02-24 10:29:18 +09:00
Thiébaud Weksteen
de8417c707 Add AIDL enforce_permissions attribute
When set to true, this attribute will pass down the
-Wmissing-permission-annotation flag to the aidl compiler. It is
possible to declare a set of exceptions (for a graduable adoption). For
now, only Java is supported.

Test: build having the attribute enabled for frameworks/base
Bug: 220214993
Change-Id: I54350199b4d980aef0050519e3daf1fef616d08c
2022-02-24 10:15:27 +11:00
Aurimas Liutikas
9e69e0e221 Merge "Disable new ApiLint check temporarily" am: 8b99da5f37
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1846434

Change-Id: I2c201ae4555db4b3f219abf98183bf252296eeee
2022-02-23 22:31:31 +00:00
Aurimas Liutikas
8b99da5f37 Merge "Disable new ApiLint check temporarily" 2022-02-23 21:43:55 +00:00
Liz Kammer
619be4626b Restrict genrules to disallow directories as input
While Bazel genrules will allow genrules to accept a directory as input,
the results can be unexpected to a user as changes to the contents of
the directory may not trigger a rebuild as expected. Restricting this
in Soong ensures that converted targets will behave as expected.

Test: CI
Change-Id: I8616f58d1df267005e6c0ca3f4730d06de52c0d9
2022-02-23 21:29:22 +00:00
Stephen Hines
a982582cf8 Update Rust OWNERS
We haven't updated this in a while, and we have new team members who
should be able to edit Rust build-related rules.

Test: N/A
Change-Id: Iaf001d0718ca187e5570a1198d06a3ae4db78e4c
2022-02-23 12:05:27 -08:00
Anton Hansson
4b2333896d Merge "Clarify genrule error message" am: 1f7ce200a7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1997150

Change-Id: Ic802169f936db1ed07b919a724de754cd2629ffb
2022-02-23 19:56:51 +00:00
Pirama Arumuga Nainar
f80a59fac9 [rust] Update clang version used to build bindgen
Bug: http://b/214080353

Use clang-r445002

Test: presubmit
Change-Id: I8b7d5b55757838c303e3695e398e84687804e948
2022-02-23 19:35:08 +00:00
Anton Hansson
1f7ce200a7 Merge "Clarify genrule error message" 2022-02-23 19:28:31 +00:00
Anton Hansson
3f6e49514b Merge "Generate soong.variables for ndk build" am: 753cda7954
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1990711

Change-Id: Ifdbf7d128fc0cf36e3bbd188229102f589202ec6
2022-02-23 18:55:33 +00:00
Anton Hansson
753cda7954 Merge "Generate soong.variables for ndk build" 2022-02-23 18:31:44 +00:00