Commit Graph

98578 Commits

Author SHA1 Message Date
Jihoon Kang
0c26850dba Merge "Specify is_stubs_module property in selected aconfig library modules" into main 2024-08-15 16:45:16 +00:00
Treehugger Robot
00378b193d Merge "Export variable to soong for converting vintf_compatibility_matrix" into main 2024-08-15 09:07:38 +00:00
Jihoon Kang
48f2b22b45 Specify is_stubs_module property in selected aconfig library modules
"fake_device_config" and "strict_mode_stub" provide stubs and do not
contain any implementation details. Specifying the property
"is_stubs_module" to these modules allow inter-container dependency on
these modules.

Test: m nothing
Bug: 354029496
Change-Id: Ia65ad36ca02c0594fc753935f9cc7c0af6caa20d
2024-08-14 22:23:08 +00:00
Chris Wiseman
3e0319275f Merge "Fix build error while creating CHD image" into main 2024-08-14 19:15:32 +00:00
Treehugger Robot
232929ccdb Merge "Create transitive-res-packages for prebuilt java libraries" into main 2024-08-14 16:29:31 +00:00
JaeMan Park
b3795b7933 Fix build error while creating CHD image
While building CHD image, it failed with the error

KeyError: 'system_dlkm_base_fs_file'

Fix the build error by deleting proper props in the python code.

Bug: 359578756
Test: Building CHD image using build_cf_hybrid_device.py should not failed
Change-Id: Iae84ff080b8f6bf3b8d22b26865ea3e74815ac37
2024-08-14 14:11:15 +09:00
Treehugger Robot
5ab8f4a84b Merge "Remove module_build_from_source soong config variable" into main 2024-08-14 00:36:57 +00:00
Spandan Das
8a58e78f9e Remove module_build_from_source soong config variable
This value is a noop in V+ trees. It was previously used as one of the
inputs for source vs prebuilts selection of mainline modules.

Bug: 308187800
Test: presubmits
Change-Id: I24432a982b6fadd3e7a1a89c730c8ccc0abb4709
2024-08-13 23:11:15 +00:00
Treehugger Robot
bdaf14f9e2 Merge "Only read the use_new_storage_value flag once per process." into main 2024-08-13 19:02:08 +00:00
Ted Bauer
f51e1dd28d Only read the use_new_storage_value flag once per process.
Change-Id: Ib088fbcc2283718a309097c7c45fb01d5a983a25
Test: m
Bug: 312235596
2024-08-13 17:16:04 +00:00
Treehugger Robot
f55902f65f Merge "target-files: Support erofs_compress_hints" into main 2024-08-13 01:21:02 +00:00
Luca Farsi
eb086f0d42 Merge "Change artifact matching to be more strict" into main 2024-08-12 17:50:33 +00:00
Luca Farsi
99d40d7554 Change artifact matching to be more strict
The current artifact matching logic will cause any test target that uses
something like .*-tests.zip to be way too broad in what it causes to
build. Change the logic to look for the target name in the artifact
matching regex to make it so that only tests that look for a specific
target to match.

Test: atest build_test_suites_test
Bug: 348489774
Change-Id: Ia75e38b676607f45f2b1c8fcf948045c248f1729
2024-08-12 09:59:11 -07:00
Jooyung Han
832819e90d Merge "Remove setting init.userspace_reboot.is_supported" into main 2024-08-12 00:41:20 +00:00
Treehugger Robot
57ac3a18ea Merge "Build product/odm build.prop with Soong" into main 2024-08-12 00:08:32 +00:00
Yike Zhang
651fa75112 Merge "Link shared libs to x86/x86_64 folder if available" into main 2024-08-09 17:02:25 +00:00
Jooyung Han
a2f9851521 Remove setting init.userspace_reboot.is_supported
Userspace reboot is deprecated.

Bug: 292469129
Test: build cuttlefish.
Test: adb shell getprop init.userspace_reboot.is_supported
Change-Id: I51ded79d3ae3df5363e6a7c9d1c5dcd06163f78e
2024-08-09 14:40:58 +09:00
yike
261e22dd1d Link shared libs to x86/x86_64 folder if available
Currently, the shared libs are not categorized according to arch,
which adds more redundant dependencies at runtime and might mislead
the test execution.

Test: m host-unit-tests
Bug: 351909435
Change-Id: I48f8e6752879cdd4d510ce5b611dc6c118a42f8f
2024-08-09 03:34:08 +00:00
Treehugger Robot
b3984cac84 Merge "Export related make variables for gralloc.default to soong" into main 2024-08-09 02:44:45 +00:00
Jooyung Han
67911682c2 target-files: Support erofs_compress_hints
erofs_compress_hints files should be copied into target-files and then
sign_target_files_apks should use them from the target-files.

Bug: 357721652
Test: m target-files-package (with aosp/3204257)
Test: sign_target_files_apks <target_file> signed-target-files.zip
Change-Id: Id55000004ecb72ea8fec19bfbe144c9b4d3f06cb
2024-08-09 08:27:19 +09:00
Luca Farsi
944fa4f813 Merge "Refactor OptimizedBuildTarget and add general-tests optimization" into main 2024-08-08 23:16:53 +00:00
Luca Farsi
70a53bd6cf Refactor OptimizedBuildTarget and add general-tests optimization
Refactor the OptimizedBuildTarget base class to more simply handle
enabling/disabling build optimizations based on flags. Now all
optimizers (aside from the no-op NullOptimizer will have their enabling
built into the base class, and also necessitate their get_build_targets
and package_outputs functions to be defined in order to not error out.
Add the GeneralTestsOptimizer class as well, unimplemented for now.

Test: atest build_test_suites_test
Bug: 358215235
Change-Id: Ide22c64fc238d754db8d8e76484947401e54e680
2024-08-08 12:02:57 -07:00
Treehugger Robot
9fe7f1fa9e Merge "Update sts-sdk to use new source" into main 2024-08-08 18:19:28 +00:00
Inseob Kim
d05947dd12 Build product/odm build.prop with Soong
Bug: 322090587
Test: compare build.prop before and after, boot
Change-Id: Iab157cf313d62c1c95ef66dd0a2b9563ee60ab46
2024-08-08 17:48:43 +09:00
yangbill
43c861469d Export related make variables for gralloc.default to soong
Bug: 356533884
Test: ./prebuilts/build-tools/linux-x86/bin/py3-cmd build/bazel/ci/rbc_dashboard.py --quick
Change-Id: I05849a6f20aae807d47c9cf46d127234d53c36e8
2024-08-08 07:35:58 +00:00
Zhi Dou
fa47605191 Merge "DO NOT MERGE: manually cherry pick" into main 2024-08-07 20:23:41 +00:00
Zhi Dou
8ee1a5b785 DO NOT MERGE: manually cherry pick
Change-Id: I47b6d783f32b7c260dd806898ed880901b5f784b
Test: presubmit
Bug: n/a
2024-08-07 18:51:23 +00:00
Bart Van Assche
671dd3c7af Merge "base_vendor.mk: Add filterPowerSupplyEvents.o" into main 2024-08-06 23:51:23 +00:00
Treehugger Robot
70270692d0 Merge "Read from new storage in Java codegen" into main 2024-08-06 21:16:42 +00:00
Treehugger Robot
0284610ba7 Merge "change thread policy to allow read disk" into main 2024-08-06 20:57:22 +00:00
Ted Bauer
06560bed93 Read from new storage in Java codegen
Change-Id: I8baa089f37dcc496096e124d605f08727647053c
Test: m
Bug: 312235596
2024-08-06 19:34:33 +00:00
Zhi Dou
f5f5992893 change thread policy to allow read disk
Bug: 356614910
Test: presubmit
Change-Id: I65cc2cbd5e17b1ee93e64d8b20e53c42547c985a
2024-08-06 18:58:45 +00:00
Treehugger Robot
a490d1bf68 Merge "Install cppreopts.sh to copy dexpreopt files on first boot" into main 2024-08-06 18:40:40 +00:00
Wei Li
9489a0835c Merge "Switch SBOM generation of products to Soong and remove the function in Make." into main 2024-08-06 18:17:36 +00:00
Treehugger Robot
f4a9dab360 Merge "core/Makefile: Add desktop recovery image target hook" into main 2024-08-06 17:54:42 +00:00
Bart Van Assche
2807e4aa36 base_vendor.mk: Add filterPowerSupplyEvents.o
Bug: 203462310
Test: Cuttlefish
Change-Id: Id293028335733fc83877f380d12f855cd735e85e
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2024-08-06 10:49:35 -07:00
Spandan Das
fcf124988d Install cppreopts.sh to copy dexpreopt files on first boot
This relands https://r.android.com/3205048 without the
`BOARD_USES_SYSTEM_OTHER_ODEX` conditional. Board config runs after
product config, so the value of `BOARD_USES_SYSTEM_OTHER_ODEX` is not
available in runtime_libart.mk

Adding cppreopts.sh to PRODUCT_PACKAGES ensures that the dexpreopt files
can be copied from system_other to /data on first boot.

Test: lunch aosp_cheetah-trunk_staging-userdebug
Test: get_build_var PRODUCT_SYSTEM_PROPERTIES # verified that ro.cp_system_other_odex=1 is present
(this was incorrectly removed from build.prop after
https://r.android.com/3205048)

Test: device boot test go/abtd https://android-build.corp.google.com/builds/abtd/run/L83800030005663221
(this failed previously with https://r.android.com/3205048)

Bug: 356075780
Change-Id: I6a596373bbbe8587620c5867fb43fcbf3f3b2b2b
2024-08-06 16:41:45 +00:00
Spandan Das
699f9be18a Merge "Move the installation rules of device boot images to soong" into main 2024-08-06 02:27:31 +00:00
Treehugger Robot
905319607d Merge "Build system_ext build.prop with Soong" into main 2024-08-06 02:00:28 +00:00
Makoto Onuki
c60b50c29c Merge "[Ravenwood] Use default socket timeout" into main 2024-08-05 15:45:13 +00:00
Zhi Dou
b7bb53d392 Merge "change fileinputstream to filechannel" into main 2024-08-05 13:49:24 +00:00
PODISHETTY KUMAR (xWF)
556f030c41 Merge "Revert "Prevent misconfigured cp_system_other_odex=1 device boots"" into main 2024-08-05 05:41:05 +00:00
PODISHETTY KUMAR (xWF)
d7e98c63e9 Revert "Prevent misconfigured cp_system_other_odex=1 device boots"
This reverts commit 9c54f38250.

Reason for revert: <Droidmonitor created revert due to b/357468332. Will be verifying through ABTD before submission.>

Change-Id: I201339aa920dcb7fec5e8b6e74b0f0ff35c91416
2024-08-05 03:55:55 +00:00
Inseob Kim
6dbd7eb601 Build system_ext build.prop with Soong
Bug: 322090587
Test: build and compare system_ext/etc/build.prop
Change-Id: I7b1af2e2b1fe7f107e1540d7b797c7bf489b8a0d
2024-08-05 12:50:01 +09:00
Spandan Das
fa154fd697 Merge "Prevent misconfigured cp_system_other_odex=1 device boots" into main 2024-08-05 02:15:34 +00:00
Wei Li
4d7e700997 Switch SBOM generation of products to Soong and remove the function in Make.
Bug: 324467079
Test: m sbom
Test: m dist
Test: banchan com.android.adbd module_arm64 userdebug && m sbom && m dist
Test: build/soong/tests/sbom_test.sh
Change-Id: Ic862604acd3ad11ef238748a744a8e675d2a141a
2024-08-02 17:56:28 -07:00
Zhi Dou
8af83ccd50 change fileinputstream to filechannel
The restrict mode doesn't allow to have disk read from main thread. Some
apps enabled this check. The code in the dependencies of the
fileinputstream. This chagne switch to filechannel.

Test: presubmit
Bug: 356614910
Change-Id: Icf2175fe75ed1bfad4a048ead680b08e57d6c2ca
2024-08-03 00:08:40 +00:00
Luca Farsi
1ef9d680af Merge "Don't build targets if they're not used." into main 2024-08-02 23:36:03 +00:00
Luca Farsi
b24c1c3dbd Don't build targets if they're not used.
Add functionality in build_test_suites.py to not build targets if
their outputs are not used in the test configurations saved in the build
context. If none of the tests reference the targets' outputs they will
not be built at all.

Note that the corresponding flags will need to be enabled for these
optimizations to take place.

Test: atest optimized_targets_test
Bug: 348489774
Change-Id: I8f0ac90e75552ae80073f13229b026c7f23476a6
2024-08-02 14:45:36 -07:00
Chris Dombroski
1b569e4dd3 Update sts-sdk to use new source
Test: builds
Bug: 325295485
Change-Id: Iced085665b567eb675e3ee4ff54070d542b97f7d
2024-08-02 21:31:31 +00:00