Colin Cross
4c4c1be915
Use single module for clang runtime libraries
...
The clang prebuilts now provide a single module with per-architecture
variants instead of a module per architecture.
Bug: 220019988
Test: m checkbuild
Change-Id: I39e2cf8ae14edf8510276dab38011afaef85822c
Merged-In: I39e2cf8ae14edf8510276dab38011afaef85822c
2022-03-07 14:56:32 -08:00
Colin Cross
2d295a2de2
Add musl_x86 and glibc_x86 style properties to bazel configurations
...
Bug: 223257095
Test: build/bazel/ci/mixed_libc.sh
Change-Id: Ia2427f54cdaafc657e29a7ae7a7575bec2b71338
2022-03-07 14:56:32 -08:00
Jose Galmes
c1a56bcbe9
Add InstallInRoot property to snapshot binary json file.
...
Bug: 215295121
Test: Generated snapshot and verified InstallInRoot property is present.
Change-Id: I4f20a454477d1263e9c16e98468d659f89e1e4f1
2022-03-07 14:49:46 -08:00
Jose Galmes
61741e20a5
Fix for duplicate modules across vendor and ramdisk snapshots.
...
Bug: 215295121
Test: Generated snapshots and verified there are no duplicates.
Change-Id: I6ba7deb4941e21d87578038de19ab313f2be539c
2022-03-07 14:48:12 -08:00
Treehugger Robot
97fe2742b7
Merge changes Ic3ef7557,If75daf11 am: b3bdf38453
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2011615
Change-Id: I3b9c8a3d4d36cc03b6648b2c7a7b5a10706ec87d
2022-03-07 21:11:55 +00:00
Treehugger Robot
b3bdf38453
Merge changes Ic3ef7557,If75daf11
...
* changes:
add all existing bp2build tests to CI
remove unconverted strip_import_prefix property
2022-03-07 20:50:21 +00:00
Sam Delmerico
75249f9ed9
Merge "bp2build java_libraries depend on Android SDK" am: 1b8942d4c8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1997330
Change-Id: I551efbaf5830d6e862aa48888b1232bffc3757c9
2022-03-07 20:28:27 +00:00
Sam Delmerico
1b8942d4c8
Merge "bp2build java_libraries depend on Android SDK"
2022-03-07 20:02:47 +00:00
Cole Faust
3c4fc99593
Support variables with dashes in their names
...
Bug: 221946551
Test: go test
Change-Id: I085fc35159c4f3afe53868fbc731fcaeac3a69a8
2022-03-07 11:24:45 -08:00
Trevor Radcliffe
9b3a875efd
Merge "Add support for privileged apps to androidmk" am: 812bfff3d8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2002751
Change-Id: Ic546811a01113e71dbc2b3a73ccbc546b3a83ef4
2022-03-07 19:06:48 +00:00
Trevor Radcliffe
812bfff3d8
Merge "Add support for privileged apps to androidmk"
2022-03-07 18:35:47 +00:00
Sam Delmerico
d3a1cfa6d1
add all existing bp2build tests to CI
...
Test: go test ./bp2build
Change-Id: Ic3ef75573cda9ed10c74bf12860269922e197d60
2022-03-07 18:26:33 +00:00
Sam Delmerico
7a62909f35
remove unconverted strip_import_prefix property
...
The requirements for this property changed in aosp/1985613.
Test: go test ./bp2build
Change-Id: If75daf11c857cdd8a54c119e073e327cddf8543d
2022-03-07 16:28:50 +00:00
Sam Delmerico
e91d0303f2
bp2build supports arch variant srcs for java_library
...
Bug: 209577426
Test: build/bazel/ci/bp2build.sh
Change-Id: I6799bda904d286616e580f2395601ce4f764180f
2022-03-07 16:15:56 +00:00
Sam Delmerico
881d72022a
bp2build java_libraries depend on Android SDK
...
Soong adds an implicit dependency on the Android SDK for all
java_libraries (and related modules). This feature becomes apparent
after converting arch-variant srcs for android_apps, so we should suport
this for now. Eventually, we will want to replace this forced dependency
with a Bazel toolchain workaround.
Test: build/bazel/ci/bp2build.sh
Change-Id: Ic28e8c7690f69294b4bdcb9bb78a6f1f031fe97e
2022-03-07 15:50:42 +00:00
Andrew Walbran
797e4be221
Add stdlibs property for Rust build rules.
...
This lets no_std crates depend on system crates like core and alloc.
Bug: 223152204
Test: built pVM firmware skeleton with rust_ffi_static rule
Change-Id: I0f9b0ab3f5e3289fb8ce66f28d779bcf62a7181f
2022-03-07 15:42:34 +00:00
Treehugger Robot
d70fe75d4c
Merge "Build avbtool with Bazel." am: 10eada743a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2006755
Change-Id: Ia258fe5e6aa5ce51616f86676b2668df897e6e30
2022-03-07 09:45:24 +00:00
Treehugger Robot
10eada743a
Merge "Build avbtool with Bazel."
2022-03-07 09:21:32 +00:00
Junfeng Wu
219c28edb6
Merge "Add RBE environment variables config example and documentation." am: c9582e1f2e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1998311
Change-Id: Ie2542d8e98c281911752dc00152d4d4ef27787f9
2022-03-07 07:12:15 +00:00
Junfeng Wu
c9582e1f2e
Merge "Add RBE environment variables config example and documentation."
2022-03-07 06:50:32 +00:00
Junfeng Wu
90ba586f8b
Add RBE environment variables config example and documentation.
...
Test: N/A
Change-Id: Ic80f3f192e8e3449f02d8c99058c37e97251a4d2
2022-03-07 12:47:55 +08:00
Jingwen Chen
7edadabd6c
Build avbtool with Bazel.
...
Test: CI
Change-Id: Ic506fea3ba1fb61692f59d8e6f708115c1a327ab
2022-03-07 04:40:35 +00:00
Wei Li
7ccc228753
Merge "Keep Bazel build file in build/bazel/vendor/google and prebuilts/bundletool." am: 083d4e072c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2005835
Change-Id: I729b52e39b1bd14205700530c6d2feb48dc2d7dd
2022-03-05 04:55:22 +00:00
Wei Li
083d4e072c
Merge "Keep Bazel build file in build/bazel/vendor/google and prebuilts/bundletool."
2022-03-05 04:31:55 +00:00
Treehugger Robot
a33b682d0e
Merge "Disable BannedThrow check" am: 0d4833b18c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2006775
Change-Id: Ic7aa289e82f84d17882e6bfd2c8b2cd5a1a37669
2022-03-05 02:41:42 +00:00
Colin Cross
6984e882eb
Support experimental building with OpenJDK 17 am: 59c1e6ac0e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2006781
Change-Id: I2e7c2335299034ea07f55c4b1615f67bbe1deed6
2022-03-05 02:41:19 +00:00
Treehugger Robot
0d4833b18c
Merge "Disable BannedThrow check"
2022-03-05 02:17:56 +00:00
Pirama Arumuga Nainar
b37ae58a3d
Memory mapped coverage (take 2)
...
Add a build variable, CLANG_COVERAGE_CONTINUOUS_MODE, instead of
selecting based on paths.
Test: CLANG_COVERAGE_CONTINUOUS_MODE=true m and verify continuous mode works
Change-Id: I731172fc1f00e1cabff8efcf8b99f9a48210b446
2022-03-04 14:07:53 -08:00
Colin Cross
59c1e6ac0e
Support experimental building with OpenJDK 17
...
Use EXPERIMENTAL_USE_OPENJDK17_TOOLCHAIN=true to build with OpenJDK 17
while still targeting java language version 11.
Bug: 219098645
Test: m EXPERIMENTAL_USE_OPENJDK17_TOOLCHAIN=true
Change-Id: I89fb04ecde4dbd1e102098f316692624dd67f8a2
2022-03-04 21:40:02 +00:00
Sam Gilbert
049af11112
Disable BannedThrow check
...
Bug: 222738070
Test: N/A
Change-Id: Id9d393c9b5c5c21d69c8b3a8d5456c66358426d9
2022-03-04 16:19:19 -05:00
Treehugger Robot
6e826bab74
Merge "prevent module being enabled if in existing BUILD file" am: fe86b81aab
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1999892
Change-Id: I0cca195fe44e4360006183a6d5c2203d5ea6bdde
2022-03-04 21:04:10 +00:00
Treehugger Robot
fe86b81aab
Merge "prevent module being enabled if in existing BUILD file"
2022-03-04 20:37:21 +00:00
Paul Duffin
ea465fbd3b
List bootclasspath_fragments in module-info.json
...
Bug: 202154151
Test: lunch aosp_cf_x86_64_phone-userdebug
m out/target/product/vsoc_x86_64/module-info.json
Change-Id: I2bdb6783f7570d89f5c3150b39f1be920c2a8989
2022-03-04 18:44:47 +00:00
Sam Delmerico
9e3f98b8cf
Merge "convert android_app certificate property, bp2build" am: d508a638c3
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1980606
Change-Id: I38f798fa387b10288abb4250e9f941776e98088c
2022-03-04 17:56:28 +00:00
Sam Delmerico
d508a638c3
Merge "convert android_app certificate property, bp2build"
2022-03-04 17:30:31 +00:00
Kousik Kumar
1170739206
Merge "Allowlist stubby to be run within the path imposer" am: 376cd24d14
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2007970
Change-Id: If2f27a5e56021072dccc50742f0c8d29c59ef827
2022-03-04 16:28:16 +00:00
Kousik Kumar
376cd24d14
Merge "Allowlist stubby to be run within the path imposer"
2022-03-04 16:01:52 +00:00
Treehugger Robot
265f41c1dc
Merge "Export binaries for shippedlibs and bom." am: 7010c53c50
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2003174
Change-Id: I5bd08c769c24638c068aed8f99e4d6d355fbfa74
2022-03-04 02:50:26 +00:00
Treehugger Robot
7010c53c50
Merge "Export binaries for shippedlibs and bom."
2022-03-04 02:23:38 +00:00
Christopher Parsons
43dc26bdab
Merge "Report mkfile metrics with --mk-metrics" am: cb59ea7b2f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2007510
Change-Id: I57fc5494dd21a2178626dce1005379877e0520e0
2022-03-03 22:15:28 +00:00
Christopher Parsons
cb59ea7b2f
Merge "Report mkfile metrics with --mk-metrics"
2022-03-03 21:51:29 +00:00
Chris Parsons
53f68ae3b8
Report mkfile metrics with --mk-metrics
...
Combined with roboleaf CI changes to pass this flag and subsequent
pipeline changes, this will allow basic mkfile metrics to be
dashboarded, which will help track mk2bp progress.
Bug: 217764943
Test: manual; verified mk_metrics.pb is generated iff --mk-metrics is
specified, used printproto on result
Change-Id: I348994b4d7e3479d0dc04de0276b94a702aac95b
2022-03-03 15:28:20 -05:00
Kousik Kumar
9eb43e26c4
Allowlist stubby to be run within the path imposer
...
To support using google prod credentials for Google developers, we need
to be able to make an RPC call to exchange credentials. This RPC call
needs to be issued via stubby and hence allowlisting the stubby binary.
dwillemsen@ also pointed out that this should be less effective for
other tools running within the build since network access is disabled
for the other tools anyway via sandboxing.
Bug: b/222484146
Change-Id: I29aec9576e86b9ed3051df7943404abd478c549b
2022-03-03 15:07:32 -05:00
Cole Faust
9d7a52dbde
Merge "Fix include paths that match one file being included unconditionally" am: 560834669e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2004901
Change-Id: Ica5e38108d70452ade7df029f316f7e98495c219
2022-03-03 19:45:20 +00:00
Cole Faust
560834669e
Merge "Fix include paths that match one file being included unconditionally"
2022-03-03 19:22:17 +00:00
Rob Seymour
912a9b7478
Merge "Add JSON module graph to dist" am: 5e0278ea96
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2006213
Change-Id: I4e1de159d478102f9dc13ee8167f2244aa54b8c8
2022-03-03 19:11:10 +00:00
Rob Seymour
5e0278ea96
Merge "Add JSON module graph to dist"
2022-03-03 18:47:51 +00:00
Liz Kammer
a1b33112b1
Merge "Export variant/features via soong_injection" am: 6e4cd27bec
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2000396
Change-Id: I6da248db7bca983d0ce5b121412f904e48f67a21
2022-03-03 18:36:17 +00:00
Liz Kammer
6e4cd27bec
Merge "Export variant/features via soong_injection"
2022-03-03 18:11:25 +00:00
Ulya Trafimovich
22d87c16b1
Add markdown docs for dexpreopt.
...
Bug: 219442893
Change-Id: I61b6fbd6d1b9d62f87b98a8eb8cea7fd7ccfa77c
2022-03-03 17:08:25 +00:00