Commit Graph

80412 Commits

Author SHA1 Message Date
Cory Barker
b86b5bed3f Adding support for building AFLpp
Test: Built AFL fuzzers locally and ran them

Change-Id: I5bd6d1e9b19558ce8135b19491160dba14dea04e
2022-07-06 21:17:19 +00:00
SzuWei Lin
951279493d Support dynamic 64-bit media service
64-bit GSI requires support both 64_32-bit and 64-bit devices at
the same time. Add a new variable TARGET_DYNAMIC_64_32_MEDIASERVER
to put mediaserver_dynamic.rc into GSI. Which starts 64-bit
mediaserver if ro.zygote is zygote64. Otherwise, it keeps the
original behavior to start 32-bit meidaserver.

Bug: 236664614
Test: make gsi_arm64-user; Check system/etc/init
Test: make gsi_arm-user; Check systen/etc/init
Test: cts-tradefed; run cts-on-gsi -m CtsViewTestCases
Change-Id: I74699ec5fafadcbe78a7fef6d10aaed752cd5afa
2022-07-06 12:06:46 +08:00
Android Build Coastguard Worker
193d68bbc3 Version bump to TP1A.220624.009 [core/build_id.mk]
Change-Id: I5704765db36bf7eee269ceb59ccbf808fd08f79d
2022-07-01 23:47:44 +00:00
Treehugger Robot
046230b625 Merge "Fix broken test_lunch.py" am: b4f831d56b
Original change: https://android-review.googlesource.com/c/platform/build/+/2120577

Change-Id: Id9f1422402e8a9cbbf4fa09dfd1b11c1fba73309
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 05:12:32 +00:00
Treehugger Robot
b4f831d56b Merge "Fix broken test_lunch.py" 2022-07-01 04:53:23 +00:00
Yi-yo Chiang
2a87991836 Merge "Fix init_boot.img build rule with TARGET_NO_KERNEL:=true" am: 380fcee20e
Original change: https://android-review.googlesource.com/c/platform/build/+/2141540

Change-Id: I271ed2d7d4c12e9da99eb9ed29df426eaedc0351
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 04:05:55 +00:00
Yi-yo Chiang
380fcee20e Merge "Fix init_boot.img build rule with TARGET_NO_KERNEL:=true" 2022-07-01 03:39:24 +00:00
Android Build Coastguard Worker
a8de116ced Version bump to TP1A.220624.008 [core/build_id.mk]
Change-Id: I38c1fb3d98250396831c445fcc7666cfeaaa2c49
2022-07-01 00:59:58 +00:00
Yi-Yo Chiang
8b0776d1ca Fix init_boot.img build rule with TARGET_NO_KERNEL:=true
If TARGET_NO_KERNEL is true (device has prebuilt boot.img), then the
init_boot.img build arguments wouldn't be propagated correctly.
This is because INTERNAL_INIT_BOOT_IMAGE_ARGS is misplaced within a
`ifneq ($(strip $(TARGET_NO_KERNEL)),true)` conditional block.

Fix this by moving INTERNAL_INIT_BOOT_IMAGE_ARGS initialization into the
`ifeq ($(BUILDING_INIT_BOOT_IMAGE),true)` block, which is closer to its
first use.

Bug: 237630862
Test: m initbootimage
Change-Id: I6c0ee2c4b5d0be77a93311eba714e0ed555ffd25
2022-06-30 17:44:33 +08:00
Xin Li
480b2a5f6e Fix BUILD_ID after T merge.
Bug: 236760014
Merged-In: I4e4b6a02fc140a1e38ce533031d7eb0a739396df
Change-Id: I98773bd8a62e2a7160e70d0c888c799f2f10fbf0
2022-06-30 05:56:26 +00:00
Android Build Coastguard Worker
af0a439b77 Version bump to TP1A.220624.007 [core/build_id.mk]
Change-Id: If63d2ac0b3f19b6f20852c19aa7ce56a23dbe512
2022-06-30 02:28:16 +00:00
Android Build Coastguard Worker
9b2f585765 Version bump to TP1A.220624.006 [core/build_id.mk]
Change-Id: I44654bde98093cf52112518f947c447b414c69ea
2022-06-29 04:13:10 +00:00
Android Build Coastguard Worker
28ab2d31e7 Version bump to TP1A.220624.005 [core/build_id.mk]
Change-Id: Idec156499d8e9c158f62c0e323d6c1a1071b1c22
2022-06-29 00:04:47 +00:00
Xin Li
05442a9213 Merge tm-dev-plus-aosp-without-vendor@8763363
Bug: 236760014
Merged-In: I1dffeb055a68250f574630d4ef5fedc51bad4a2b
Change-Id: I4e4b6a02fc140a1e38ce533031d7eb0a739396df
2022-06-28 21:23:05 +00:00
David Anderson
cab98f76fe Merge "Make it easier to disable EROFS compression." am: 6531b32955
Original change: https://android-review.googlesource.com/c/platform/build/+/2137933

Change-Id: I8152bc94485259f39783d515fe7f91c54e48e6d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 18:46:29 +00:00
David Anderson
6531b32955 Merge "Make it easier to disable EROFS compression." 2022-06-28 18:28:01 +00:00
George Burgess IV
4645f98185 make: fix memory leak
`info->symlink_target` is a `std::string`. This `strdup` therefore leaks
memory. Just use `std::string::operator=(const char *)` instead.

Bug: 206470603
Test: TreeHugger
Change-Id: I71bcaec583c7d429b4d09522cc5eeb2ced009007
2022-06-28 11:23:21 -07:00
Melisa Carranza Zúñiga
3945b1d91a Merge "Add sign_sepolicy_path for a binary to sign sepolicy.apex." am: 051c9a15af
Original change: https://android-review.googlesource.com/c/platform/build/+/2129475

Change-Id: I8030bbe9afbfed13412e18ef98cab34ae60f2a5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 12:59:29 +00:00
Melisa Carranza Zúñiga
051c9a15af Merge "Add sign_sepolicy_path for a binary to sign sepolicy.apex." 2022-06-28 12:26:50 +00:00
Treehugger Robot
bd1224f7e4 Merge "Export the host_required property to module-info" am: ea00bc65af
Original change: https://android-review.googlesource.com/c/platform/build/+/2133266

Change-Id: Ieda8f3fc36576fddafe8c47d9407199a1cd7ddad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 07:28:05 +00:00
Treehugger Robot
ea00bc65af Merge "Export the host_required property to module-info" 2022-06-28 06:55:38 +00:00
Yike
e4a549195c Export the host_required property to module-info
Some test modules such as `android_test` use the `host_required` attribute to include additional harness dependencies. For example, `CtsLibcoreTestCases` references `cts-dalvik-host-test-runner` in the `host_required` attribute since those jars are required by Tradefed at runtime.

This information needs to present in module_info.json and exported to properly generate Bazel targets that include these runtime dependencies.

Test: m out/target/product/coral/module-info.json
Bug: 220991354
Change-Id: I8d2ab0da04c9f4aff17d290999c69ffe0534729f
2022-06-28 10:10:35 +08:00
Android Build Coastguard Worker
3aaf633e7e Version bump to TP1A.220624.004 [core/build_id.mk]
Change-Id: I5279757e5c0c64f5e9c72c3b8b1bcbb3b10787b7
2022-06-28 01:30:27 +00:00
Bob Badour
40d38b48ec Revert "Revert "Target dist files not dist goals.""
This reverts commit 9f1fad04ce.

Reason for revert: Fixed latent bug in OTA test

This change creates license texts and lists of projects to share for
individual files in dist instead of for dist goals.

If a distribution needs the license texts for part of a dist file or
for a combination of multiple files, whoever is distributing will have
to create a suitable text notice using `gen_notice{}` or `testnotice`
and include it among the dist files for the goal using `dist-for-goals`
or equivalent.

Bug: 151177513
Bug: 210912771
Bug: 235333302
Bug: 232138105
Bug: 235302632

Test: m cts dist

Test: m droid dist

Test: tapas google-tradefed-all && m dist

Change-Id: I9fbcb07acfa7b14a140563cb031374160b6b23c2
Merged-in: I9fbcb07acfa7b14a140563cb031374160b6b23c2
2022-06-28 01:17:56 +00:00
David Anderson
f3c81d7e10 Make it easier to disable EROFS compression.
Currently the only way to do this is to enable deduplication.

Bug: N/A
Test: BOARD_EROFS_COMPRESSOR := none
Change-Id: I7f8b99fbcefe7bbc15dfab7062b321aa3e2cf1ca
2022-06-27 23:20:34 +00:00
Vinh Tran
580a9bbf73 Merge "Default BuildBrokenDepfile to empty (false)" am: 836d78413a
Original change: https://android-review.googlesource.com/c/platform/build/+/2132365

Change-Id: I394f7c22094f8df86b7a04ebcd4910736794aa76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 21:39:56 +00:00
Vinh Tran
836d78413a Merge "Default BuildBrokenDepfile to empty (false)" 2022-06-27 21:17:27 +00:00
Cole Faust
5786c5624c Merge "Deduplicate multiple $(inherit-product) calls" am: 556a556883
Original change: https://android-review.googlesource.com/c/platform/build/+/2135675

Change-Id: Ic3d1c364f8836542f4eb9c191ee0cf40348a4ad5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 17:18:03 +00:00
Cole Faust
556a556883 Merge "Deduplicate multiple $(inherit-product) calls" 2022-06-27 17:01:04 +00:00
Vinh Tran
3fae6fe0db Default BuildBrokenDepfile to empty (false)
Test: The builds should still pass because all depfile is cleanup in
AOSP
Bug: 179452413

Change-Id: Ifb6f5320f72c3beb44ddd6654100645e0a62e659
2022-06-27 12:05:11 -04:00
Melisa Carranza Zuniga
e0a977affd Add sign_sepolicy_path for a binary to sign sepolicy.apex.
Bug: b/217570541
Test: sign_apex --container_key=testdata/testkey
--payload_key=testdata/testkey_RSA4096.key
--codename_to_api_level_map=S:31,T:32,UpsideDownCake:33
-e SEPolicy-33.zip=testdata/testkey com.android.sepolicy.apex
signed_sepolicy.apex

Change-Id: Ifdd1c6e7db07cbc4674450ab0e2226494c98605a
2022-06-27 11:03:26 +02:00
Kelvin Zhang
80d79ded75 Merge "Fix potential issues if str has spaces" am: 91410f104d
Original change: https://android-review.googlesource.com/c/platform/build/+/2132215

Change-Id: I09b6b03231ba44162e94e5c8ece89acfccf58c87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 01:10:11 +00:00
Kelvin Zhang
91410f104d Merge "Fix potential issues if str has spaces" 2022-06-25 00:49:48 +00:00
Treehugger Robot
32fe35e68a Merge "Copy symlink farm creation tool from Bazel." am: d0bf76d32a
Original change: https://android-review.googlesource.com/c/platform/build/+/2133998

Change-Id: I56b6fa3fee54c5f9870f178af8c7824790647cda
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 23:46:40 +00:00
Treehugger Robot
d0bf76d32a Merge "Copy symlink farm creation tool from Bazel." 2022-06-24 23:27:45 +00:00
Cole Faust
7162b95f83 Deduplicate multiple $(inherit-product) calls
The makefile product inheritance code was supposed
to deduplicate inheritance calls, but there was
a bug in the uniq-word function that caused it
to not work when duplicated words were adjacent.
$(subst |||x|||,||| |||,|||x|||x|||) produces
||| |||x||| instead of ||| ||| |||.

Rewrite the uniq-word function to fix the bug.

This issue was causing a discrepency between
the makefile and starlark based product configurations,
as the starlark implementation didn't have this bug.

Bug: 237019892
Test: ./build/bazel/ci/rbc_dashboard.py --quick on an internal-only product
Change-Id: I543a80746412ffcb9743203399413a0e707111e6
2022-06-24 15:42:46 -07:00
Android Build Coastguard Worker
fbd160844d Version bump to TP1A.220624.003 [core/build_id.mk]
Change-Id: Ifd7cc158b239cd6e8b0cfb0e31e7a4ca7b3f6d4c
2022-06-24 21:10:40 +00:00
Treehugger Robot
152d535fdd Merge "Do not override setting of SOONG_CONFIG_<m>_module_source_build" am: dc08c346fb
Original change: https://android-review.googlesource.com/c/platform/build/+/2133660

Change-Id: Iee2175269983ebcb124f7fe242d699ca2dd3e7a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 19:12:35 +00:00
Almaz Mingaleev
c99a3ec7c2 Merge "Remove tzdatacheck from system image." am: f68794510f
Original change: https://android-review.googlesource.com/c/platform/build/+/954146

Change-Id: I96f246803bfd9024480b7f638a05e1e58b6c33fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 19:07:34 +00:00
Sasha Smundak
2bfc570d8f Copy symlink farm creation tool from Bazel.
SymlinkTree is one of the action types Blaze returns in response to
`aquery` (action query). build-runfiles is a tool copied from Bazel
to implement this action (see src/main/tools/build-runfiles.cc in
the Bazel Git repo). It creates a symlink farm (i.e., a directory
hiearchy consisting of symlinks) from a given manifest. Mixed builds
need this tool the mixed builds (in particular, every Python applicaion
has a runtime symlink farm).

Bug: 232085015
Test: m USE_BAZEL_ANALYSIS=1 com.android.adbd
Change-Id: I9cfcb33cb7d0f63bd36ffd2b4101f53cfc6a42fc
2022-06-24 09:57:45 -07:00
Android Build Coastguard Worker
dc356dddec Version bump to TP1A.220624.002 [core/build_id.mk]
Change-Id: Idd3688a71cf7a1cd2e2022e06f0bb39b010f1a20
2022-06-24 02:27:21 +00:00
Android Build Coastguard Worker
484c92b338 Make change and version bump to TP1A.220624.001
Change-Id: I85d4698f1b063d1fd1ecd38d004f6e67ce317600
2022-06-23 23:57:25 +00:00
jiajia tang
e5ddfcd004 Fix potential issues if str has spaces
Uniform the split() function
str.split() will return a list split all spaces in str,
while str.split(' ') will return a list might contain ''
which might have potential issues.

Signed-off-by: jiajia tang <tangjiajia@xiaomi.com>
Change-Id: I0961659b140f800bdbe285f63bb4f02b8459ff8b
Signed-off-by: jiajia tang <tangjiajia@xiaomi.com>
2022-06-23 23:56:45 +00:00
Treehugger Robot
dc08c346fb Merge "Do not override setting of SOONG_CONFIG_<m>_module_source_build" 2022-06-23 22:21:41 +00:00
Paul Duffin
1ccea0574f Do not override setting of SOONG_CONFIG_<m>_module_source_build
(cherry picked from commit dccd189954)

Previously, any setting of SOONG_CONFIG_<m>_module_source_build (where
<m> is one of wifi, uwb or bluetooth) that was made before the
core/android_soong_config_vars.mk was processed would be replaced with
false. This change will only set them to false if they have not been
previously set.

Bug: 233965247
Test: m nothing
      # After setting SOONG_CONFIG_wifi_module_source=true before this
      # code. Without this change out/soong/soong.variables uses false
      # for the wifi_module/module_source config variable. With this
      # change it uses true.
Merged-In: I1dffeb055a68250f574630d4ef5fedc51bad4a2b
Change-Id: I1dffeb055a68250f574630d4ef5fedc51bad4a2b
2022-06-23 18:09:38 +00:00
Paul Duffin
3fe93e03ae Do not override setting of SOONG_CONFIG_<m>_module_source_build am: dccd189954
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/19033310

Change-Id: If2316cd395be01e1e26ea54cb6a46af706267207
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 18:05:10 +00:00
Paul Duffin
dccd189954 Do not override setting of SOONG_CONFIG_<m>_module_source_build
Previously, any setting of SOONG_CONFIG_<m>_module_source_build (where
<m> is one of wifi, uwb or bluetooth) that was made before the
core/android_soong_config_vars.mk was processed would be replaced with
false. This change will only set them to false if they have not been
previously set.

Bug: 233965247
Test: m nothing
      # After setting SOONG_CONFIG_wifi_module_source=true before this
      # code. Without this change out/soong/soong.variables uses false
      # for the wifi_module/module_source config variable. With this
      # change it uses true.
Change-Id: I1dffeb055a68250f574630d4ef5fedc51bad4a2b
2022-06-23 13:19:00 +00:00
William Escande
05a313812b Change Bluetooth apex mountpoint am: 9c2f61119c
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/19038222

Change-Id: I52df88824ab4f24a43c9233e8b81b213eb4bf008
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 10:33:36 +00:00
Almaz Mingaleev
f68794510f Merge "Remove tzdatacheck from system image." 2022-06-23 07:47:26 +00:00
Android Build Coastguard Worker
6bae6fd354 Make change and version bump to TP1A.220623.001
Change-Id: If503be39fa66c27867ee33a97a8aa39a0d61964f
2022-06-22 23:57:06 +00:00