Commit Graph

96226 Commits

Author SHA1 Message Date
Sooraj Sasindran
9188610bf8 Add SatelliteClient to the product packages
Add SatelliteClient to the product packages

Bug: 321776764
Change-Id: I9b7ff79b1bfe234511548385dbc6318cfa35ed68
Test: make
2024-01-25 22:30:38 +00:00
Zhi Dou
c94175831e Merge "aconfig: add isOptimizationEnabled in FakeFeatureFlagsImpl" into main am: d09505cc62 am: 4a29d17d3e
Original change: https://android-review.googlesource.com/c/platform/build/+/2925520

Change-Id: I3fa5fc729146a270cf407942cb6d1534ba85f156
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 20:18:22 +00:00
Zhi Dou
4a29d17d3e Merge "aconfig: add isOptimizationEnabled in FakeFeatureFlagsImpl" into main am: d09505cc62
Original change: https://android-review.googlesource.com/c/platform/build/+/2925520

Change-Id: I4c960a1d63569354de27682c4fbd0a18186253a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 19:33:01 +00:00
LaMont Jones
89d97bf901 base_rules: Separate aconfig and module_info code
Record LOCAL_ACONFIG_FILES when LOCAL_SOONG_MODULE_INFO_JSON is defined.

Bug: b/308625757
Test: out/soong/module-info-${TARGET_PRODUCT}.json is unchanged
Test: fixes some aconfig flags.
Change-Id: I7ca9d2723e38ec5588bc6ada8769320a0b63bcb5
2024-01-25 19:15:09 +00:00
Jiakai Zhang
2f9a1295f2 Merge "Force PRODUCT_ENABLE_UFFD_GC to true on GSI." into main am: b9627ac3cc am: 2410550e78
Original change: https://android-review.googlesource.com/c/platform/build/+/2922605

Change-Id: I7806e6d4e75c3e5607fa39eb37a407ce1f5c9b83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 19:11:53 +00:00
Zhi Dou
d09505cc62 Merge "aconfig: add isOptimizationEnabled in FakeFeatureFlagsImpl" into main 2024-01-25 18:54:40 +00:00
Jiakai Zhang
2410550e78 Merge "Force PRODUCT_ENABLE_UFFD_GC to true on GSI." into main am: b9627ac3cc
Original change: https://android-review.googlesource.com/c/platform/build/+/2922605

Change-Id: I9ad6f0789124fbf589eafbe66e721d505a16c9ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 18:28:33 +00:00
Jiakai Zhang
b9627ac3cc Merge "Force PRODUCT_ENABLE_UFFD_GC to true on GSI." into main 2024-01-25 17:35:20 +00:00
Dennis Shen
a4294b0c6a aconfig: create unit test targets for aconfig_protos and
aconfig_storage_file crate

also added a bunch of comments to satisfy android lint requirements

Bug: b/321077378
Test: atest aconfig.test, atest aconfig_protos.test, atest aconfig_storage_files.test
Change-Id: I9bce302ac3bc98c5347e5334d915e77337ee89c4
2024-01-25 17:33:36 +00:00
Dennis Shen
4075bfbd30 Merge "aconfig: create aconfig_storage_file crate" into main am: 11529aa52f am: b15dd2d25a
Original change: https://android-review.googlesource.com/c/platform/build/+/2924734

Change-Id: I349899d7f74872ed78eba7708379c59cc80b5c09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 16:54:39 +00:00
Dennis Shen
b15dd2d25a Merge "aconfig: create aconfig_storage_file crate" into main am: 11529aa52f
Original change: https://android-review.googlesource.com/c/platform/build/+/2924734

Change-Id: I601eff8d70bcbbe8378f4f86f5dff7373cb2b678
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 16:13:52 +00:00
Zhi Dou
b874ca75e4 aconfig: add isOptimizationEnabled in FakeFeatureFlagsImpl
This change adds isOptimizationEnabled method in FakeFeatureFlagsImpl.
This method can help test to decide whether the code using flag is
optimized.

Bug: 309406391
Test: atest aconfig.test aconfig.test.java
Change-Id: I7e7109ac06ab44f9b8dee56c76be9479f60a9148
2024-01-25 16:07:32 +00:00
Dennis Shen
e15c79cc38 Merge "update flags.mk to create one storage file per rule" into main am: 00f4643347 am: b7ddda7f0a
Original change: https://android-review.googlesource.com/c/platform/build/+/2925170

Change-Id: Ifa37aaa750f38cdc16ab9099ce08e3f884826d66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 15:50:55 +00:00
Dennis Shen
11529aa52f Merge "aconfig: create aconfig_storage_file crate" into main 2024-01-25 15:28:34 +00:00
Dennis Shen
b7ddda7f0a Merge "update flags.mk to create one storage file per rule" into main am: 00f4643347
Original change: https://android-review.googlesource.com/c/platform/build/+/2925170

Change-Id: I39c10d3f0a4b0bcb3168dac8be5321a6ed8f47e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 15:10:13 +00:00
Dennis Shen
00f4643347 Merge "update flags.mk to create one storage file per rule" into main 2024-01-25 14:39:21 +00:00
Jiakai Zhang
94c6d7a401 Force PRODUCT_ENABLE_UFFD_GC to true on GSI.
If the kernel version isn't available to the build system and
PRODUCT_ENABLE_UFFD_GC isn't explicitly set, there will be a build
warning. To address the warning and make the behavior more explicit on
GSI builds, we need this change.

Bug: 321751629
Test: lunch aosp_x86_64-trunk_staging-userdebug && m dist
Change-Id: I5b73890235827929ea3bce5a07260d6c67a00a27
2024-01-25 14:37:30 +00:00
Treehugger Robot
f73b6eff8f Merge "Rename arch variant goldmont-without-xsaves to goldmont-without-sha-xsaves" into main am: e11290c27c am: e7830dd440
Original change: https://android-review.googlesource.com/c/platform/build/+/2926253

Change-Id: I5457e146e391d3517fe7984fc220d87af90babad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 09:28:25 +00:00
Treehugger Robot
e7830dd440 Merge "Rename arch variant goldmont-without-xsaves to goldmont-without-sha-xsaves" into main am: e11290c27c
Original change: https://android-review.googlesource.com/c/platform/build/+/2926253

Change-Id: Ib0b0406e7c78073ad2032f949e93f6565fb119ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 08:47:05 +00:00
Treehugger Robot
e11290c27c Merge "Rename arch variant goldmont-without-xsaves to goldmont-without-sha-xsaves" into main 2024-01-25 08:11:40 +00:00
Treehugger Robot
015c52e0d9 Merge "Enable clang coverage" into main am: 75d530cbff am: 34171035a1
Original change: https://android-review.googlesource.com/c/platform/build/+/2754247

Change-Id: Iaf42a92fe8980e72ff518f70062cc767fcab8625
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 06:59:41 +00:00
Yi-Yo Chiang
845ce58c61 Merge "Re-land: releasetools: Deprecate GKI build rules" into main am: accdd3f087 am: 883f4b9456
Original change: https://android-review.googlesource.com/c/platform/build/+/2926251

Change-Id: Iaae26bb0d8ec53cae451727736165d9864885138
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 06:59:10 +00:00
Treehugger Robot
34171035a1 Merge "Enable clang coverage" into main am: 75d530cbff
Original change: https://android-review.googlesource.com/c/platform/build/+/2754247

Change-Id: Ib6b8cb8e2ddc1db9a79bf1b1a98df50018b97535
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 06:38:54 +00:00
Treehugger Robot
75d530cbff Merge "Enable clang coverage" into main 2024-01-25 06:18:24 +00:00
Yi-Yo Chiang
883f4b9456 Merge "Re-land: releasetools: Deprecate GKI build rules" into main am: accdd3f087
Original change: https://android-review.googlesource.com/c/platform/build/+/2926251

Change-Id: Ieca18099a1cdfec26e014ddd2e40e041295c2d36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 06:17:12 +00:00
Yi-Yo Chiang
accdd3f087 Merge "Re-land: releasetools: Deprecate GKI build rules" into main 2024-01-25 05:29:11 +00:00
Treehugger Robot
07946a23dd Merge "Disable Window Extensions on TV" into main am: ebb0bd4b81 am: eb98f8113d
Original change: https://android-review.googlesource.com/c/platform/build/+/2924822

Change-Id: I307beca66d82f13018a5297a3124eb7cab0a640a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 03:22:17 +00:00
Yi-Yo Chiang
a4d5f4380b Re-land: releasetools: Deprecate GKI build rules
(Re-land of Ie882fccd864920289e48366e99a4ebd67e784d0d)

We no longer build GKIs from the platform tree.
These build commands were neither used nor maintained anymore, so clean
them up to reduce maintenance effort.
Keep the command line options as no-op, so existing scripts that still
specifies the deprecated options don't break.

Bug: 229701033
Test: presubmit
Change-Id: I0f7d05562dbc3eed29e902d6dc9a0f2e4083aaa6
2024-01-25 11:21:00 +08:00
Treehugger Robot
eb98f8113d Merge "Disable Window Extensions on TV" into main am: ebb0bd4b81
Original change: https://android-review.googlesource.com/c/platform/build/+/2924822

Change-Id: Id2fe2fdc36ac49be38233cc7f152c667418b439c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 02:39:54 +00:00
Kelvin Zhang
158a5ebbc9 Fix ext4 size estimates
Currently, EXT4 image building is done in a 2 pass fashion:

First pass: build ext4 image with small margin/headroom, check the
number of block used in the output image

Second pass: Build ext4 image again with an estimated block count from
first pass

The two pass implementation is done to keep image size at a
minimum. Recently some failures in first pass invocation is observed due
to image being undersized. Since we will reduce the image size in 2nd
pass, it's OK to increase the image size estimate during first pass. Add
a headroom 10% of total file size to fix build failures.

Test: cherry pick r.android.com/q/topic:%22aosp_cf_system_x86_64%22 and
m aosp_cf_system_x86_64

Bug: 321003625
Change-Id: I254310c67a08b98b05d2c858d4ab59a48112a07b
2024-01-24 18:37:27 -08:00
Treehugger Robot
ebb0bd4b81 Merge "Disable Window Extensions on TV" into main 2024-01-25 01:49:01 +00:00
Devin Moore
538b58683f Merge "find_static_candidates.py: protect against missing keys in module" into main am: 14d1d0b155 am: 608fbb3bcd
Original change: https://android-review.googlesource.com/c/platform/build/+/2924721

Change-Id: Ice453aef3442ef9d530f9f3c58119883a6fc72bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 00:51:41 +00:00
Devin Moore
608fbb3bcd Merge "find_static_candidates.py: protect against missing keys in module" into main am: 14d1d0b155
Original change: https://android-review.googlesource.com/c/platform/build/+/2924721

Change-Id: Ie2a17b67cf9560f2606709aa2a7988871f10eaa5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 00:11:55 +00:00
Devin Moore
14d1d0b155 Merge "find_static_candidates.py: protect against missing keys in module" into main 2024-01-24 23:29:34 +00:00
Hongguang Chen
e068028fe7 Disable Window Extensions on TV
Window Extensions is not supported on TV. Adding it to TV GSI causes
some CTS failure.

Bug: 321898211
Test: make TV GSI, check artifacts
Test: atest CtsWindowManagerJetpackTestCases on TV GSI
Change-Id: Ice6602c7b06c2e09e557423426abaa94da55c836
2024-01-24 23:25:46 +00:00
Dennis Shen
cf9a752092 aconfig: create aconfig_storage_file crate
Move aconfig storage file definition into its own crate, as flag read
lib will need it as well. The new crate is placed under
aconfig_storage_file dir.

Bug: b/321077378
Test: atest aconfig.test, Cargo test at repo root level
Change-Id: I91e8ada2c9bab479ed81cf03824042f3fa460be5
2024-01-24 21:33:42 +00:00
Luca Farsi
415532a456 Merge "Determine if the build is in presubmit using build id" into main am: a718299b96 am: 8bd2fb1db8
Original change: https://android-review.googlesource.com/c/platform/build/+/2922299

Change-Id: Ia04f1397809f06a0138bfea24c6f86b7b70c35ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-24 19:57:43 +00:00
Dennis Shen
5885f0d722 [automerger skipped] Merge "Restructure aconfig repo to be a cargo workspace with many crates" into main am: 9f34a48141 am: 1fb890f46d -s ours
am skip reason: Merged-In I75833f4997f7ee554ff6c1557df9ac87f62b2732 with SHA-1 c77c6612e7 is already in history

Original change: https://android-review.googlesource.com/c/platform/build/+/2924191

Change-Id: Ic5ff2f6fddc0abfc4dd99b92cccc62791032c743
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-24 19:53:42 +00:00
Devin Moore
621b02ab22 find_static_candidates.py: protect against missing keys in module
Looks like modules can now be missing "shared_libs" and "static_libs".
Use default values of empty sets where applicable, or check for the
existence of the keys before looking for them.

Test: python find_static_candidates.py --module audioserver
Bug: 322190716
Change-Id: I8be9bd2c1562975db57ffbf89d57ff2767f0b1f1
2024-01-24 19:28:21 +00:00
Luca Farsi
8bd2fb1db8 Merge "Determine if the build is in presubmit using build id" into main am: a718299b96
Original change: https://android-review.googlesource.com/c/platform/build/+/2922299

Change-Id: I7a04cd6110147fbaa9e179d0036173d915c9f669
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-24 19:23:53 +00:00
Dennis Shen
1fb890f46d Merge "Restructure aconfig repo to be a cargo workspace with many crates" into main am: 9f34a48141
Original change: https://android-review.googlesource.com/c/platform/build/+/2924191

Change-Id: Ib0ba2a2bba48292298043048acc3ded3da7c71a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-24 19:23:12 +00:00
Luca Farsi
a718299b96 Merge "Determine if the build is in presubmit using build id" into main 2024-01-24 19:11:04 +00:00
Dennis Shen
9f34a48141 Merge "Restructure aconfig repo to be a cargo workspace with many crates" into main 2024-01-24 17:51:00 +00:00
Dennis Shen
ae562587ab Merge "Restructure aconfig repo to be a cargo workspace with many crates" into main 2024-01-24 16:09:40 +00:00
Ziwei Zhang
e2bac44173 Package ATS console into CTS.
Test: m cts
Bug: 318325038
Ignore-AOSP-First: enable ATS console internally first
Change-Id: I7acd36f747490bd3f7896972e39861a0a6b369ef
2024-01-24 11:01:57 +00:00
Satoshi Niwa
1b279c6b5d Rename arch variant goldmont-without-xsaves to goldmont-without-sha-xsaves
Bug: 314243939
Test: Build an image with TARGET_ARCH_VARIANT:=goldmont-without-sha-xsaves
Change-Id: I3d3147e12093fecbcc3873c44a47b1f778c09191
2024-01-24 16:31:27 +09:00
Treehugger Robot
a8e42edae0 Merge "Move fontchain_lint to build/core/tasks" into main am: 34a9a0e851 am: f0d102e022
Original change: https://android-review.googlesource.com/c/platform/build/+/2919067

Change-Id: Ia7514cd740e72496a770ce0bb6cd9e03edffac80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-24 02:52:09 +00:00
Dennis Shen
277e5dc36e Restructure aconfig repo to be a cargo workspace with many crates
Previously, aconfig repo is the root directory of aconfig binary crate,
but it also hosts printflags crate inside, and there is no cargo support
for printflags binary crate. In addition, with more aconfig development,
more crates are being added to this repo. Thus this repo should be
configured as a Cargo workspace with multiple crates rather than a
single crate.

Note the top level Cargo.toml file specifies the crates this workspace
carries:
(1) aconfig_protos: the proto library crate that will be used by many other
crates such as aconfig binary crate and printflags binary crate
(2) aconfig: the aconfig binary crate
(3) printflags: the printflags binary crate

(1) aconfig_protos crate setup:

Inside aconfig_protos dir we set up the aconfig_protos crate, the
previously src/proto.rs is now aconfig_protos/src/lib.rs, the build.rs
is carried over to this crate.

(2) aconfig binary crate setup:

Notice its Cargo.toml file claims package dependency on aconfig_protos
crate. It no longer carries proto related module and build.rs file.

(3) printflags binary crate setup:

Similary, notice that in its Cargo.toml file, it claims package
dependency on aconfig_protos crate.

With this setup, we can Cargo build/test each crate individually when
inside a specific crate dir. But we can also run Cargo build/test at
repo root level, which will build/test all the crates in this workplace.

This is the structuring cl. The next cl is to move storage modules into
its own library crate. This storage file library crate will be used by
both aconfig binary crate as well as flag read library crate (to be
created as another new crate here).

Bug: b/321984352
Test: top and individual crate dir level Cargo build/test, m each
individual targets

Change-Id: I75833f4997f7ee554ff6c1557df9ac87f62b2732
Merged-In: I75833f4997f7ee554ff6c1557df9ac87f62b2732
2024-01-24 02:18:52 +00:00
Dennis Shen
c77c6612e7 Restructure aconfig repo to be a cargo workspace with many crates
This is cherry pick of aosp/2924191 to avoid merge conflict in git main

Previously, aconfig repo is the root directory of aconfig binary crate,
but it also hosts printflags crate inside, and there is no cargo support
for printflags binary crate. In addition, with more aconfig development,
more crates are being added to this repo. Thus this repo should be
configured as a Cargo workspace with multiple crates rather than a
single crate.

Note the top level Cargo.toml file specifies the crates this workspace
carries:
(1) aconfig_protos: the proto library crate that will be used by many other
crates such as aconfig binary crate and printflags binary crate
(2) aconfig: the aconfig binary crate
(3) printflags: the printflags binary crate

(1) aconfig_protos crate setup:

Inside aconfig_protos dir we set up the aconfig_protos crate, the
previously src/proto.rs is now aconfig_protos/src/lib.rs, the build.rs
is carried over to this crate.

(2) aconfig binary crate setup:

Notice its Cargo.toml file claims package dependency on aconfig_protos
crate. It no longer carries proto related module and build.rs file.

(3) printflags binary crate setup:

Similary, notice that in its Cargo.toml file, it claims package
dependency on aconfig_protos crate.

With this setup, we can Cargo build/test each crate individually when
inside a specific crate dir. But we can also run Cargo build/test at
repo root level, which will build/test all the crates in this workplace.

This is the structuring cl. The next cl is to move storage modules into
its own library crate. This storage file library crate will be used by
both aconfig binary crate as well as flag read library crate (to be
created as another new crate here).

Bug: b/321984352
Test: top and individual crate dir level Cargo build/test, m each
individual targets

Ignore-AOSP-First: cherrypick to git main to resolve merge conflict
Change-Id: I75833f4997f7ee554ff6c1557df9ac87f62b2732
2024-01-24 02:17:57 +00:00
Treehugger Robot
f0d102e022 Merge "Move fontchain_lint to build/core/tasks" into main am: 34a9a0e851
Original change: https://android-review.googlesource.com/c/platform/build/+/2919067

Change-Id: Ia87be73ac333d77f6fc417832d378ba2be3b6806
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-24 02:12:58 +00:00