Commit graph

71447 commits

Author SHA1 Message Date
Cole Faust
a861380624 Merge "Delete ApiBp2build soong_build mode" into main am: 999881376b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2630914

Change-Id: Iebc3bf754a2d9f504ecff232288ea48a3a84ffbd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 18:57:36 +00:00
Cole Faust
999881376b Merge "Delete ApiBp2build soong_build mode" into main 2023-09-06 18:04:25 +00:00
Sam Delmerico
01ab007320 Merge "partial systemserverclasspath snapshot test" into main am: b77fb702d8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2741415

Change-Id: I3ff3e353c0cc7c838c58b93e5ff6c32383a79c37
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 15:49:02 +00:00
Sam Delmerico
b77fb702d8 Merge "partial systemserverclasspath snapshot test" into main 2023-09-06 14:52:09 +00:00
Jiakai Zhang
10f159b82f Merge "Support adding a library as both a JNI library and a regular library." into main am: 6378fa9a29
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2740334

Change-Id: Ifdf4e6b94ea6f2644a92bcfb37c000aa3d18b0a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 11:54:58 +00:00
Jiakai Zhang
6378fa9a29 Merge "Support adding a library as both a JNI library and a regular library." into main 2023-09-06 11:06:46 +00:00
Spandan Das
6422e4736e Merge "Add target_compatible_with for compile_multilib" into main am: 6f45900389
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2741496

Change-Id: I00a0101153e945d2eb9b59e77ce559b589421fe0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 04:08:54 +00:00
Spandan Das
6f45900389 Merge "Add target_compatible_with for compile_multilib" into main 2023-09-06 03:29:26 +00:00
Treehugger Robot
b977451c18 Merge "Set device_platform build setting" into main am: 67d495fd04
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2741121

Change-Id: Iac3407fc822921bd102b09ec22400ab973ce1996
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 03:20:32 +00:00
Treehugger Robot
67d495fd04 Merge "Set device_platform build setting" into main 2023-09-06 02:44:38 +00:00
Treehugger Robot
d24ed92a49 Merge "soong: HWASan exclude path support" into main am: f3d52683a9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2721423

Change-Id: I79f0f214ed7fb87b347736b1e453a53029bac5dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 01:46:29 +00:00
Treehugger Robot
f3d52683a9 Merge "soong: HWASan exclude path support" into main 2023-09-06 01:14:12 +00:00
Cole Faust
69cc0c7f20 Merge "Add install_symlink soong module type" into main am: 88e9731502
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2736901

Change-Id: Ia161c434ac377f2c71400e0a008e439495a6e31b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 01:00:51 +00:00
Cole Faust
b95e5e873c Allow actions to read BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
To maintain good backwards compatibility with the legacy partition
building behavior, allow actions to read
BUILD_BROKEN_INCORRECT_PARTITION_IMAGES so that we don't have to rerun
analysis.

Bug: 205632228
Test: Presubmits
Change-Id: I8b25a62f24bc6d628fb055239b084f6ea535e38b
2023-09-05 17:48:11 -07:00
Spandan Das
e1cb14b240 Add target_compatible_with for compile_multilib
For explicit values of compile_multilib (e.g. 32 or 64), add an
incompatibilty constraint for the arches that do not have the correct
bitness.

Test: go test ./bp2build
Bug: 299135307
Change-Id: I4cd997de6804a5c6d89086d740f773936db1cab9
2023-09-06 00:31:00 +00:00
Cole Faust
88e9731502 Merge "Add install_symlink soong module type" into main 2023-09-06 00:15:09 +00:00
Chris Parsons
73f411b72c Delete ApiBp2build soong_build mode
This feature is obsolete.

This makes a large number of codepaths "dead code" (such as
module-specific implementations of ApiBp2build functionality). These
will be deleted in a followup CL.

Bug: 284029211
Test: Presubmits
Change-Id: Ib53b99f1fe8c24380d219caf44e9bb3b96724fa0
2023-09-05 17:09:51 -07:00
Treehugger Robot
2d7d8ba64e Merge "print module name on allowlist errors" into main am: 922e6adfd2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2741113

Change-Id: I6268a24db2245e864fad8342a92738fbd01a6f1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 23:27:24 +00:00
Treehugger Robot
a26fb66de6 Merge "Disable rust sanitizers for linux_musl_x86" into main am: eb02c5cb7c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2741115

Change-Id: I5e70344b3fa0a96bdf41e4234f985fb400857ba3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 23:26:54 +00:00
Treehugger Robot
922e6adfd2 Merge "print module name on allowlist errors" into main 2023-09-05 23:26:31 +00:00
Cole Faust
48ce137e11 Set device_platform build setting
Fixes: 290716626
Test: b test //platform_testing/tests/example/native:hello_world_test
Change-Id: If397710e986ac1fa8b49aeb25b7342acd1eef482
2023-09-05 16:07:49 -07:00
Treehugger Robot
eb02c5cb7c Merge "Disable rust sanitizers for linux_musl_x86" into main 2023-09-05 22:56:17 +00:00
Treehugger Robot
b7eb7b0080 Merge "Stop NinjaReader from sending new status messages after Close" into main am: 93873cd713
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2734957

Change-Id: I77ac3a3dd30bb614d3cc6bfa29f6bfd7dfe9ca77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 22:41:45 +00:00
Sam Delmerico
ff19da2435 partial systemserverclasspath snapshot test
Add a test for that checks the SDK snapshot contains sdk library
definitions for modules with alowed minSdkVersion, but that doesn't
contain definitions for modules with disallowed minSdkVersions.

Bug: 289183551
Test: go test ./sdk
Change-Id: I194526f8eba4dacb52a345fa67cf7371e722c237
2023-09-05 22:06:22 +00:00
Treehugger Robot
93873cd713 Merge "Stop NinjaReader from sending new status messages after Close" into main 2023-09-05 22:00:29 +00:00
Treehugger Robot
eeb8a8c5c2 Merge "Enable -Wmultichar." into main am: ca22dfb5d1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2737953

Change-Id: If913bc1d7a29c9e96a66c9d1629319194ec308ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 21:57:53 +00:00
Sam Delmerico
0e0d96efa7 android_app APEX_GLOBAL_MIN_SDK_VERSION_OVERRIDE
Currently the product variable that is controlled by
APEX_GLOBAL_MIN_SDK_VERSION_OVERRIDE only overrides apexes, but it
doesn't apply to android_apps. This commit allows android_apps which set
updatable: true in their Android.bp to have their min_sdk_version be
overriden by this product variable.

Bug: 295311875
Test: go test
Change-Id: If3cb82a17cae4553b577dd1a4637ee13c3c95302
2023-09-05 21:38:16 +00:00
Treehugger Robot
ca22dfb5d1 Merge "Enable -Wmultichar." into main 2023-09-05 21:17:21 +00:00
Treehugger Robot
e125059d99 Merge "Skip UP1A.230905.019" into aosp-main-future 2023-09-05 19:54:47 +00:00
Sam Delmerico
e42edc369c print module name on allowlist errors
Change-Id: I34db128d96f8121fed56588a5d6ba7de6e848c9a
2023-09-05 19:19:19 +00:00
Colin Cross
3ef9285ed2 Disable rust sanitizers for linux_musl_x86
rustc 1.71.0 doesn't support any sanitizers for linux_musl_x86, disable
sanitizing for now.

Bug: 257334542
Test: m USE_HOST_MUSL=true host-native
Change-Id: I70819d2175c59bca1ff385d4aee48518d6b702e7
2023-09-05 12:10:54 -07:00
Colin Cross
b0b369c4fa Stop NinjaReader from sending new status messages after Close
If NinjsReader keeps sending tool status messages after Close has been
called it can cause a concurrent map access when
CriticalPath.WriteToMetrics is called concurrently with
CriticalPath.FinishAction.  Try harder to stop the NinjaReader goroutine
when NinjaReader.Close is called, even if the external ninja process has
not closed its FIFO or NinjaReader has not finished processing all the
messages after 5 seconds.

Bug: 286382228
Test: m nothing
Change-Id: I3e3dce601510e2dfb5ed82ca55bd11723fac7e70
2023-09-05 11:11:29 -07:00
Yu Liu
c8ab80ae76 Merge "Support include/exclude paths for memtag_heap." into main am: 267dd3bea7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2736893

Change-Id: I548eb3d05a91259ba9a1e3d2359551ecd6ff4f9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 18:11:22 +00:00
Liz Kammer
4e14a9ba2a Merge "Add rust bp2build tests to soong tests" into main am: 3ec36ada2c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2735816

Change-Id: Id8e0fefa61f8ec5d9d59fa3e3c6ecb92eb1604f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 18:10:57 +00:00
Treehugger Robot
fa9db383fe Merge "Update OWNERS file for actual Android LLVM members." into main am: ec6f10f648
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2736850

Change-Id: Iea60483dfea09b5725436f81b136a3a8cd0b0c7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 18:10:42 +00:00
Spandan Das
b527a6aa82 Merge "Fix target_compatible_with non-determinism for proto.include_dirs" into main am: 67dc28a93d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2736900

Change-Id: I7b2d5d88a0f5635f046fd997dfce2d5384166e5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 18:10:27 +00:00
Yu Liu
267dd3bea7 Merge "Support include/exclude paths for memtag_heap." into main 2023-09-05 17:42:15 +00:00
Liz Kammer
3ec36ada2c Merge "Add rust bp2build tests to soong tests" into main 2023-09-05 17:29:16 +00:00
Treehugger Robot
ec6f10f648 Merge "Update OWNERS file for actual Android LLVM members." into main 2023-09-05 17:14:07 +00:00
Spandan Das
67dc28a93d Merge "Fix target_compatible_with non-determinism for proto.include_dirs" into main 2023-09-05 16:38:42 +00:00
Jiakai Zhang
9c60c17fb3 Support adding a library as both a JNI library and a regular library.
Bug: 299087066
Test: m nothing
Change-Id: I6cafe23395b7306727a071ccefe3b189c56e928b
2023-09-05 15:20:53 +01:00
Yi Kong
be007f33bf Merge "Enable MLGO for register allocation" into main am: 798f5d2e7e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2736897

Change-Id: Id211ca4c74daeeb5d7954240b8d98963e941ad09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-03 06:45:49 +00:00
Yi Kong
798f5d2e7e Merge "Enable MLGO for register allocation" into main 2023-09-03 05:38:34 +00:00
Yi Kong
67a2dee8c5 Enable MLGO for register allocation
This enables Machine Learning Guided Optimizations (MLGO) for register
allocation. App launch performance on oriole-userdebug is improved by
0.53%, and binary size is very slightly reduced (e.g. 64 bytes for
libart.so).

https://dashboards.corp.google.com/_0e1b06dd_a79e_4433_b625_b62e5cac004b?p=BootImageProfileId:36265

Test: presubmit
Bug: 229056536
Change-Id: I0e5d40bb90a1555a1343f114ebffffca281f20b2
2023-09-03 05:38:14 +00:00
Treehugger Robot
11d24eb5b8 Merge "Skip device test only configs for auto gen test config" into main am: e56803d74d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2691150

Change-Id: I28766891bf408d9bdee2b94c2bb23b04ec735b0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-02 09:17:26 +00:00
Treehugger Robot
e56803d74d Merge "Skip device test only configs for auto gen test config" into main 2023-09-02 08:46:56 +00:00
Krzysztof Kosiński
769f5030d4 Enable -Wmultichar.
-Wmultichar is enabled by default, so we don't need to explicitly
enable it.

Bug: 298703966
Test: presubmit
Change-Id: Iae820145e6412365024a97ab3a34d760563785fa
2023-09-02 03:33:00 +00:00
Cole Faust
dff9c14148 Add install_symlink soong module type
This can be used to install symlinks to arbitrary locations/targets
on the device. Used to replace a make-built symlink.

Bug: 205632228
Test: built and ran the emulator observed the /system/bin/hwservicemanager symlink is still there
Change-Id: I6df922c8d919e6d56fa79702815a89c98f4d65ed
2023-09-01 17:18:48 -07:00
Yabin Cui
6a83f9dfbc Merge "Revert "Disable Global ThinLTO by default"" into main am: 74a06516ca
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2736899

Change-Id: I41df2d9179ce8356100e1fdd335e41d31ede5c0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 23:08:30 +00:00
Yabin Cui
74a06516ca Merge "Revert "Disable Global ThinLTO by default"" into main 2023-09-01 22:18:16 +00:00