Commit graph

76442 commits

Author SHA1 Message Date
Elliott Hughes
db91ef7070 riscv64: disable a weird option. am: bee01f7d62
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2853594

Change-Id: Icc74914bd257d0011a01920be031e9a8ca6fa498
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-04 17:04:50 +00:00
Yi Kong
9723e338ee Do not perform AFDO or optimizing LTO for eng builds
Afdo creates more variants to build, and optimizing LTO is costly to
perform. Turn off these two optimizations for eng builds for a faster
build speed.

This reduces total C/C++ invocation time for aosp_arm64-eng by 6.28%.

Test: presubmit
Bug: 307753064
Change-Id: Ibac4269c66a64e896dba2074b607d71a2da37546
2023-12-04 19:04:00 +09:00
Jooyung Han
85707de8c1 Add cc_library.target.vendor.no_stubs
This is to handle libz special case. libz has stubs but not an LLNDK.
So, libz.vendor should be treated as non-stub-providing libraries and
Vendor APEX should bundle it if it's used by its contents.

libz will set no_stubs for vendor/product variants.

Bug: 313806237
Test: go tests ./apex/...
Change-Id: I10759d7073838909126f8bfe87654f11aa02fd32
2023-12-04 11:06:20 +09:00
Colin Cross
f61d03d241 Add TestContext parameter to ContentFromFileRuleForTests
The next CL will need a TestContext parameter in
ContentFromFileRuleForTests in order to retrieve the file rule contents
from the Config.  Add it and update all the tests that use it in order
to simply review of the next CL.

Bug: 306029038
Test: go test ./...
Change-Id: Ia4b4c9854017ea3472fa2f8ba42cf7f72720496e
2023-12-03 17:22:56 -08:00
Elliott Hughes
bee01f7d62 riscv64: disable a weird option.
By default clang assumes that on riscv64 jumps are really expensive.
That's probably not true for the kind of SoCs we're dealing with, but
more importantly (see the bug) it causes clang to do loads from the
right hand side of a `&&` before the left hand side has been evaluated.
This found one latent bug in libcore, and it doesn't seem like the best
use of anyone's time to have to chase similar issues if they're going
to be similarly latent for riscv64 when we get clang's default fixed.

Bug: https://github.com/google/android-riscv64/issues/124
Test: treehugger
Change-Id: I640f1b43ea3d2452366ab86e97a9189fa9f5326c
2023-12-01 17:39:20 -08:00
Elliott Hughes
2c2dd13e64 Merge "riscv64: stop explicitly disabling emutls." into main am: 198583ed20
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2855429

Change-Id: I7b08bc843b215cc61adfe3477338d3d5af32a62c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 21:25:36 +00:00
Elliott Hughes
198583ed20 Merge "riscv64: stop explicitly disabling emutls." into main 2023-12-01 20:28:09 +00:00
Colin Cross
5eaf8b8e73 Merge "Move test data installation to Soong" into main am: 0d5dd390c6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2834993

Change-Id: Iee89813f724b6a593f2d26d9d235582ee3a8cf2b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 19:22:40 +00:00
Colin Cross
0b3a2a4ba6 Merge "Update go.mod and go.work to 1.21" into main am: 64823ec0be
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2855212

Change-Id: I7ebc3a369f7b7b5f692eb520c970792fa15631c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 19:21:35 +00:00
Cole Faust
2dddaa3246 Merge "Sandbox libcore-non-cts-tests-txt" into main am: d3fea22835
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2854024

Change-Id: I87800233557a6af7300b3cbf2c526be26a52bd2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 19:20:38 +00:00
Colin Cross
0d5dd390c6 Merge "Move test data installation to Soong" into main 2023-12-01 18:56:01 +00:00
Colin Cross
64823ec0be Merge "Update go.mod and go.work to 1.21" into main 2023-12-01 18:55:07 +00:00
Cole Faust
d3fea22835 Merge "Sandbox libcore-non-cts-tests-txt" into main 2023-12-01 18:51:01 +00:00
Tomasz Wasilczyk
dfb192e8a2 Merge "Bump default experimental from gnu++2a to gnu++2b." into main am: a1d45b8ec1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2832038

Change-Id: I8e2a821c7284411a0e5348ebb9aff3ebebd68e84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 18:46:39 +00:00
Roshan Pius
6436b59c2e Merge "soong(nfc): Create framework-nfc sdk library" into main am: 66b10a7ffa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2828288

Change-Id: I7b0708d40ed91217bc4325f7001ae636b686a09f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 18:20:31 +00:00
Tomasz Wasilczyk
a1d45b8ec1 Merge "Bump default experimental from gnu++2a to gnu++2b." into main 2023-12-01 17:21:01 +00:00
Roshan Pius
66b10a7ffa Merge "soong(nfc): Create framework-nfc sdk library" into main 2023-12-01 17:12:39 +00:00
Serdar Kocdemir
96e84f84ac Merge "Revert^3 "Enable dex container (DEX v41) for the whole system"" into main am: 3d11d51733
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2852551

Change-Id: Ideb430cdb884fde634ff497108ba63228e3bc3f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 16:22:21 +00:00
Serdar Kocdemir
3d11d51733 Merge "Revert^3 "Enable dex container (DEX v41) for the whole system"" into main 2023-12-01 15:39:47 +00:00
Serdar Kocdemir
0968a93679 Revert^3 "Enable dex container (DEX v41) for the whole system"
This reverts commit e4d0e949ce.

Reason for revert: test monitor b/314212435 

Change-Id: I53cd60d82f432d4eff132b5ee28227ece1ded7af
2023-12-01 13:33:11 +00:00
Treehugger Robot
933979baa9 Merge "Update Soong OWNERS." into main am: 11d164a7af
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2854226

Change-Id: Ie39e6079610894fa7c50d2747a54732b8a9f8e6d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 08:21:20 +00:00
Treehugger Robot
11d164a7af Merge "Update Soong OWNERS." into main 2023-12-01 07:32:00 +00:00
Colin Cross
fc19bfa650 Update go.mod and go.work to 1.21
Code in build/soong is using new builtins like max, update go.work
and go.mod to require 1.21 so that go test ./... works.

Fixes:
ui/status/ninja.go:193:25: max requires go1.21 or later (-lang was set to go1.20; check go.mod)

Test: go test ./...
Change-Id: I38f1a2298937db0d7c741b2183540fa3d02dac79
2023-12-01 04:12:03 +00:00
Matthew Maurer
7514a31dc7 rust: Enable ELF TLS by default in platform Rust am: 15675d5936
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2855216

Change-Id: I7f16bd929f03b9722dafe1d041d545c3ed72f344
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 03:58:31 +00:00
Elliott Hughes
74780e61dc riscv64: stop explicitly disabling emutls.
riscv64 has always had ELF TLS (and the emutls bugs have been fixed now
too).

Test: treehugger
Change-Id: I8dd1d28d4f28a442130e4cf536166ea733f16a96
2023-12-01 02:08:05 +00:00
David Srbecky
0cc9d2673f Merge "Revert^2 "Enable dex container (DEX v41) for the whole system"" into main am: 8e1efb7fc5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2853426

Change-Id: I9f247846eb500eeee8cadae6e8f6b2cd9dc58aa8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 23:42:04 +00:00
Matthew Maurer
15675d5936 rust: Enable ELF TLS by default in platform Rust
Upstream currently uses pthread keys to emulate TLS on Android because
it historically did not have it, and is going to move to LLVM emulated
TLS, which is needed to target L. Since we know the platform is Q+, we
can just use the new features.

Test: Treehugger
Change-Id: I7c7747d89cba736377cfeb4080573a89b801e8fe
2023-11-30 23:12:55 +00:00
Cole Faust
b5bfebf19b Sandbox libcore-non-cts-tests-txt
Bug: 307824623
Test: m sandbox_libcore-non-cts-tests-txt and diffed the files before/after
Change-Id: If564e438d1e886419e435e24f52e0f0e2ec479d2
2023-11-30 14:53:21 -08:00
David Srbecky
8e1efb7fc5 Merge "Revert^2 "Enable dex container (DEX v41) for the whole system"" into main 2023-11-30 22:50:55 +00:00
Yu Liu
4d6d371aee Merge "Add container property to aconfig_declarations." into main am: 9dc6b1025d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2835990

Change-Id: I462e13fb5ca1132dce4751afdd91d9b144f6a283
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 22:14:19 +00:00
Colin Cross
5c1d5fb21b Move test data installation to Soong
To generate module-info.json in Soong for b/309006256 Soong needs to
know the test data paths. Moving test data installation into Soong will
also help later for test suite packaging.

Add ModuleContext.InstallTestData that installs the files listed in a
[]DataPath alongside the test.  The files will also be passed to Make
to allow it to continue packaging them into the test suites for now.

Update the module types that are producing LOCAL_TEST_DATA entries
in their Android.mk files to go through InstallTestData instead.

Bug: 311428265
Test: atest --host toybox-gtests --test-timeout=120000
Change-Id: Ia8b964f86e584ea464667fd86a48d754d118bead
2023-11-30 13:38:49 -08:00
Yu Liu
9dc6b1025d Merge "Add container property to aconfig_declarations." into main 2023-11-30 21:33:34 +00:00
Cole Faust
179ecdf212 Sandbox swiftshader_spvtools_update_build_version am: e6698b06c3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2853948

Change-Id: I022652a0397a6df26eb3d62fd2993db905d348ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 19:28:39 +00:00
Cole Faust
e6698b06c3 Sandbox swiftshader_spvtools_update_build_version
Sandboxing produces this diff:
  1c1
  < "v2023.2", "SPIRV-Tools v2023.2 android-u-beta-1-gpl-587-g9d167f845"
  ---
  > "v2023.2", "SPIRV-Tools v2023.2 unknown hash, 2023-11-30T17:54:23"

But the git repository is already not garunteed to exist on CI, and
the genrule is consequently commented with a FIXME about that.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py swiftshader_spvtools_update_build_version
Change-Id: I98e65781bd49137662ed020927940b0f3e4d645b
2023-11-30 09:55:20 -08:00
Tomasz Wasilczyk
803a14a0c5 Merge "Bump the default from gnu++17 to gnu++20." into main am: 37d6943f37
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2760825

Change-Id: I20187e265a7e8e6d92f17bf6f19bbfa775a056df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 16:09:39 +00:00
Tomasz Wasilczyk
37d6943f37 Merge "Bump the default from gnu++17 to gnu++20." into main 2023-11-30 15:15:12 +00:00
David Srbecky
e4d0e949ce Revert^2 "Enable dex container (DEX v41) for the whole system"
This reverts commit 432fbfa848.

Reason for revert: Reland

Test: device boots
Change-Id: I95e2ae124c6d4a74ca5303f898583de992b15cbd
2023-11-30 15:07:01 +00:00
Treehugger Robot
fa395b34c6 Merge "Sandbox vm-tests-tf-lib" into main am: 3766553866
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2849968

Change-Id: I426d23d70c4915c2ca18a68577e2bee1230b89db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 14:40:30 +00:00
Treehugger Robot
3766553866 Merge "Sandbox vm-tests-tf-lib" into main 2023-11-30 13:53:46 +00:00
Jeongik Cha
13b04d5f5c Merge changes Ib785bd1c,Icd05ee3a into main am: 340a2b8d3f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2853087

Change-Id: I064ae51e3dd70f7291370bac86816994065933c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 09:21:26 +00:00
Jeongik Cha
340a2b8d3f Merge changes Ib785bd1c,Icd05ee3a into main
* changes:
  Show ETA only if it is smart status
  Remove not-used field in smart_status
2023-11-30 08:20:31 +00:00
Justin Yun
41cbb5e9b5 Define __ANDROID_VENDOR_API__
cc modules can use __ANDROID_VENDOR_API__ to read BOARD_API_LEVEL
that is the API level of the vendor surface.

Bug: 313822931
Test: check ninja commands to have -D__ANDROID_VENDOR_API__=<version>
Change-Id: Iceb5918cbfce0f24929d02d7e3caf1e9942b88e8
2023-11-30 05:26:12 +00:00
Treehugger Robot
0102b36aaf Merge "Sandbox aidl-golden-test-build-hook-gen" into main am: 3ecf33c4ee
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2853547

Change-Id: I66d347a0a29b89022fbe6e6ee8407d5f9f7c0f72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 04:29:50 +00:00
Jingwen Chen
c17364b4e0 Update Soong OWNERS.
Change-Id: Id9a2c7939cd404e83dbbd28e452732cdf46a0108
2023-11-30 04:03:34 +00:00
Treehugger Robot
3ecf33c4ee Merge "Sandbox aidl-golden-test-build-hook-gen" into main 2023-11-30 03:41:11 +00:00
Cole Faust
141314e11a Sandbox aidl-golden-test-build-hook-gen
Bug: 307824623
Test: m aidl-golden-test-build-hook-gen
Change-Id: I71ebe9d16702be15a8dc98b10dedf685114daed8
2023-11-29 17:47:12 -08:00
Colin Cross
c65780626c Merge "Don't write transitive dependencies to Android-${TARGET_PRODUCT}.mk" into main am: 556ba81849
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2842060

Change-Id: I854bc7c67d7d4525fef42b031ad0b9a9c9080643
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 01:26:48 +00:00
Colin Cross
556ba81849 Merge "Don't write transitive dependencies to Android-${TARGET_PRODUCT}.mk" into main 2023-11-30 00:41:43 +00:00
Jeongik Cha
0ba68e40bb Show ETA only if it is smart status
To prevent breakage in parsing logic in build bot

Test: m
Bug: 313981966
Change-Id: Ib785bd1cf0fec92d9a4cf20ab8a33ae9590282a9
2023-11-30 00:06:26 +00:00
Jeongik Cha
adbdbc33f8 Remove not-used field in smart_status
Bug: 292304818
Test: m nothing
Change-Id: Icd05ee3af49063a01447fef9e9c3daf705f0cc4b
2023-11-30 08:58:26 +09:00