Commit Graph

93207 Commits

Author SHA1 Message Date
Dennis Shen
035eade892 Merge "aconfig: create unit test targets for aconfig_protos and aconfig_storage_file crate" into main am: c7a1c76e28
Original change: https://android-review.googlesource.com/c/platform/build/+/2928090

Change-Id: I2383c69d6ee95c379912653d1b70aabab3ec66b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-26 18:12:02 +00:00
Treehugger Robot
649c08739c Merge "Bump Java target from 1.7 to 1.8 in makefiles" into main am: bc32e2d878
Original change: https://android-review.googlesource.com/c/platform/build/+/2927752

Change-Id: I987fd266b58df3fc0c7c2f881599f9ca91a9eaa9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-26 18:11:50 +00:00
Ronish Kalia
48be05373a Merge "Add team rules under build/make" into main am: 2ebcaa2b2f
Original change: https://android-review.googlesource.com/c/platform/build/+/2927751

Change-Id: Ib3534cda9ce4498ab505427314b6c8c6addd8b90
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-26 18:10:59 +00:00
Dennis Shen
c7a1c76e28 Merge "aconfig: create unit test targets for aconfig_protos and aconfig_storage_file crate" into main 2024-01-26 18:01:54 +00:00
Treehugger Robot
bc32e2d878 Merge "Bump Java target from 1.7 to 1.8 in makefiles" into main 2024-01-26 17:44:00 +00:00
Ronish Kalia
2ebcaa2b2f Merge "Add team rules under build/make" into main 2024-01-26 17:03:18 +00:00
Sorin Basca
d35691dabe Bump Java target from 1.7 to 1.8 in makefiles
Bug: 320294595
Test: m
Change-Id: I66f3ebf2d6979a8b033c2f475fa21bae26ca97cd
2024-01-26 16:44:33 +00:00
Aditya Choudhary
338bc8ff2e Add team rules under build/make
Bug: 304529413

Change-Id: If22c562ebdea21f4c9c6c98c4cfb3acb2c64c628
2024-01-26 15:51:01 +00:00
Treehugger Robot
409f44691d Merge "Add SatelliteClient to the product packages" into main am: 0011f62146
Original change: https://android-review.googlesource.com/c/platform/build/+/2929411

Change-Id: Ic1d22c46c0665a480bc65bd011fefaa3148b6735
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-26 15:21:06 +00:00
Treehugger Robot
0011f62146 Merge "Add SatelliteClient to the product packages" into main 2024-01-26 14:37:19 +00:00
LaMont Jones
04172f2e17 Merge "base_rules: Separate aconfig and module_info code" into main am: 0f0c6636ec
Original change: https://android-review.googlesource.com/c/platform/build/+/2915007

Change-Id: I073414239c984d4614a989d9508b297332e16334
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-25 23:12:45 +00:00
LaMont Jones
0f0c6636ec Merge "base_rules: Separate aconfig and module_info code" into main 2024-01-25 22:39:13 +00:00
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
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
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
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
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
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
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
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
Treehugger Robot
ebb0bd4b81 Merge "Disable Window Extensions on TV" into main 2024-01-25 01:49:01 +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
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
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
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
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
Treehugger Robot
34a9a0e851 Merge "Move fontchain_lint to build/core/tasks" into main 2024-01-24 01:13:43 +00:00
Dennis Shen
f2d4c8dc80 update flags.mk to create one storage file per rule
Bug: b/321243743
Test: tested in internal main build
Change-Id: I824c698587843fc72e8a16e8646262202663d99e
2024-01-23 20:50:54 +00:00
Treehugger Robot
23265631b2 Merge "Use RELEASE_BOARD_API_LEVEL_FROZEN" into main am: 04acb6d255
Original change: https://android-review.googlesource.com/c/platform/build/+/2919149

Change-Id: I33f48fb9f73eb6b5159d3f6cec0e021848a4377a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-23 05:12:00 +00:00
Treehugger Robot
04acb6d255 Merge "Use RELEASE_BOARD_API_LEVEL_FROZEN" into main 2024-01-23 04:31:31 +00:00