Commit Graph

131 Commits

Author SHA1 Message Date
SzuWei Lin
0dce348046 Support dynamic 64-bit drmserver
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_DRMSERVER
to put drmserver_dynamic.rc into GSI. Which starts 64-bit
drmserver if ro.zygote is zygote64. Otherwise, it keeps the
original behavior to start 32-bit drmserver.

Bug: 282603373
Test: make gsi_arm64-user; Check system/etc/init
Test: make gsi_arm-user; Check systen/etc/init
Change-Id: I874cee00a066086f565e044549ad40c6ab5d62b0
Merged-In: I874cee00a066086f565e044549ad40c6ab5d62b0
2023-05-17 15:35:59 +08:00
Paul Duffin
f54ad07923 Merge "Prevent enabling prebuilts by default for builds that don't support them" am: 31860f66c7 am: ac6008302e
Original change: https://android-review.googlesource.com/c/platform/build/+/2513775

Change-Id: I4266087353d2c23f5a6fb7d95c52252b1ec76ecf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 17:44:07 +00:00
Dario Freni
92345a1cdb Prevent enabling prebuilts by default for builds that don't support them
Except for santizer and framework Java coverage tests as they require
specialized prebuilts built from a matching configuration and we do not
provide them.

And products that use dex2oat(d)s as they are not available as a
prebuilt.

And products that cross compile to arm64 and linux_bionic on the host
as prebuilts for that are not available.

And atv/tv products as they break when building against prebuilts.

(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c7b5e2c0cea30dd084536bdc68dffdfb1c50073d)

This uses a completely separate Change-Id as the previous change was
applied to lots of downstream branches (so they contain the Change-Id
as far as the automerger is concernd) but the change got discarded due
to some merge issues. Using the previous Change-Id would cause
confusion. The title of this change was also updated as the previous
title only made sense within the larger topic to which it belonged.

Bug: 230478310
Bug: 223592962
Test: presubmit
Change-Id: Ie35ff34f4626070d1a3fe0bb3a6a999a596d0078
2023-03-29 17:11:50 +01:00
Treehugger Robot
3c79e80233 Merge "Add rkpd to the list of individually toggleable modules" am: 5f3ddd4f41 am: 708b70a554
Original change: https://android-review.googlesource.com/c/platform/build/+/2497575

Change-Id: I9479b1cc06bcd4d2abd5ac4009bfa92b4f24acfa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-20 21:16:00 +00:00
Treehugger Robot
5f3ddd4f41 Merge "Add rkpd to the list of individually toggleable modules" 2023-03-20 20:41:51 +00:00
Paul Duffin
a537224b3a Add rkpd to the list of individually toggleable modules
This is needed because the rkpd module is optional at runtime and so
needs to be optional at build time.

Ignore-AOSP-First: rkpd only exists internally
Bug: 259958590
Test: # Add prebuilts for the rkpd module.
      m MODULE_BUILD_FROM_SOURCE=true droid
      m MODULE_BUILD_FROM_SOURCE=false droid
      # Make sure that they build from sources and prebuilts respectively.
Merged-In: Id0c0e482e2928d57a1bb6ee4f3bcd143ca15122c
Change-Id: Id0c0e482e2928d57a1bb6ee4f3bcd143ca15122c
(cherry picked from commit 95b546475f)
2023-03-20 16:21:23 +00:00
William Escande
384a895afc Merge "Modified BT module to be built from source by product" into tm-qpr-dev am: 0f85faa672
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/21388898

Change-Id: I69504f57fab421d65992b7e20d3aef3da70af778
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 05:55:39 +00:00
Koli Lin
5810c0bae8 Modified BT module to be built from source by product
This CL enables the capability to build from source. Haven't implemented the function on any product yet. To enable it, please follow ag/21397639 to define flag on product mk file.

Bug: 268325561
Test: manual test on local
Change-Id: I10f1901ad26ef941465af20d2bb5ab49434baaf3
2023-02-22 03:02:26 +00:00
Zhi Dou
b9ef653b9b Merge "Add condition check of KEEP_APEX_INHERIT" am: 9bfdaf1d55 am: 4ab0444a7d
Original change: https://android-review.googlesource.com/c/platform/build/+/2365228

Change-Id: I69e21964f2530ef11404d5520c53c13e8d64cb2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 16:20:02 +00:00
Zhi Dou
46ea5dc99a Add condition check of KEEP_APEX_INHERIT
Add environment variable KEEP_APEX_INHERIT condition check to set the
proper value of Soong conditional variable library_linking_strategy. If
the KEEP_APEX_INHERIT exists, the "min_sdk_version" in condition will be
set to "apex_inherit". For more detail:
https://docs.google.com/document/d/1R2vZw0cQa-haAMgFyQ682uSq9aGBNQrzMHKIsU17-XY/edit?usp=sharing&resourcekey=0-gUbs463r9LCKs7vdP_Xkmg

Test: build module locally, and check the corresponding change.
Presbumit
Bug: 254634795

Change-Id: I0ddc999a19d9f164477d69be0e4aebc91e06a3ad
Merged-In: Ic5da1c83b3b9c090bc2a24d36b1a4ac936ce1a59
2022-12-20 16:06:20 +00:00
Jordan Demeulenaere
56f186c201 Add SystemUI build flag for Compose code (3/3)
Bug: 242304109
Test: Builds
Change-Id: Ib6e248b7af7031435a6f5398e6c8afef42459a57
Merged-In: Ib6e248b7af7031435a6f5398e6c8afef42459a57
2022-12-19 15:51:49 +00:00
Jordan Demeulenaere
4853157ef9 Add SystemUI build flag for Compose code
Bug: 242304109
Test: N/A
Change-Id: Ib6e248b7af7031435a6f5398e6c8afef42459a57
2022-12-19 16:51:15 +01:00
Nikita Ioffe
cdf6f5160b Unconditionally install com.android.virt APEX am: bb9d6db326 am: bc02a0cc4d
Original change: https://android-review.googlesource.com/c/platform/build/+/2268026

Change-Id: Ieee8dd8779e3e8f58248ff42186ec1956acfce80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 09:40:02 +00:00
Nikita Ioffe
bc02a0cc4d Unconditionally install com.android.virt APEX am: bb9d6db326
Original change: https://android-review.googlesource.com/c/platform/build/+/2268026

Change-Id: I0fc2e66015161bd1c20405bf447654b86dae77d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 09:08:04 +00:00
Nikita Ioffe
bb9d6db326 Unconditionally install com.android.virt APEX
The change in the packages/modules/Virtualization in the same topic
takes care for defining the right variant of the APEX to be installed:

* Devices with AVF support will get the full com.android.virt APEX
* Devices without AVF support will get an almost empty version that only
  contains an app that defines AVF-related permissions, and soon the BCP
  fragment jar.

Bug: 243512044
Test: build & flash oriole
Test: build & flash redfin
Change-Id: I2c38e03529a77dd2820212812433741725115ce0
2022-11-15 08:40:11 +00:00
Yi-yo Chiang
7544e04382 Merge "Remove deprecated BOARD_BUILD_SYSTEM_ROOT_IMAGE" am: 163ece5b55 am: f2044b0ace
Original change: https://android-review.googlesource.com/c/platform/build/+/2242918

Change-Id: I3546a8fb70eb7302472d7f9bd026ba5a572b9c58
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 07:45:25 +00:00
Yi-yo Chiang
f2044b0ace Merge "Remove deprecated BOARD_BUILD_SYSTEM_ROOT_IMAGE" am: 163ece5b55
Original change: https://android-review.googlesource.com/c/platform/build/+/2242918

Change-Id: If632dd03a2b7e72907155d39ae7e6e40bb8445c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 07:20:20 +00:00
Yi-Yo Chiang
06c6273073 Remove deprecated BOARD_BUILD_SYSTEM_ROOT_IMAGE
This variable is always false or empty now, so clean up remaining
references of the variable.

Remove "buildvariant=" kernel commandline as it was used by
system-as-root kernels to determine the system build variant. It is
unsupported now.

Bug: 241346584
Test: Presubmit
Change-Id: I0f97b6e0bf8b03429f65366119ff78f9c7983516
2022-10-13 16:08:53 +08:00
Nikita Ioffe
fa30bcbf28 Merge "Add target_board_auto soong config variable" into tm-qpr-dev am: ea73f475b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/20025688

Change-Id: I67aaaa863517ece51cddc26cc2dd75f08bc47505
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 11:33:52 +00:00
Nikita Ioffe
351b82aca8 Add target_board_auto soong config variable
It will be used to configure a compile time flag when building apexd for
auto products. See the attached bug for more context

Test: m
Bug: 241473698
Change-Id: I7e7ce3216e455ff44b9a24fec14d6ee384e97192
2022-09-23 16:35:23 +00:00
TreeHugger Robot
419f10659c Merge "Enable SystemUI R8 optimizations by default" into tm-qpr-dev am: f33bf19c86
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/19539180

Change-Id: Ia030602983d06cf09dd29eba7164cb573cc323c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 21:56:26 +00:00
TreeHugger Robot
f33bf19c86 Merge "Enable SystemUI R8 optimizations by default" into tm-qpr-dev 2022-09-06 21:27:53 +00:00
Paul Duffin
68867443b5 Add permission to the list of individually toggleable modules
This is safe even though permission is not an optional mainline
module because devices that support mainline must pass GTS and
testModulesSignedCorrectly and testModulesPreloadedCorrectly in GTS
currently tests this, along with testMainlineApprovedTrain which checks
mandatory/optional, signing keys, and if what's preloaded are part of
approved trains.

Bug: 238175656
Test: # Cherry pick to branch that has Google signed prebuilts for
      # permission and builds from prebuilts by default.
      # Update the permission to an sdk snapshot generated with
      # r.android.com/2151273.
      # Make sure that the permission is built from prebuilts by
      # default
Change-Id: Id4eb9ba0da8a05c41d3b29b1cb8fa1d2d485c7b9
(cherry picked from commit fb72d542ad)
Merged-In: Id4eb9ba0da8a05c41d3b29b1cb8fa1d2d485c7b9
2022-08-11 17:52:02 +00:00
Jared Duke
e2d4f471d3 Enable SystemUI R8 optimizations by default
This has been the default setting for Pixel/Go/Cuttlefish devices since
tm-dev. Broaden the default to enable for all devices against the base
SystemUI target. Note that packages overriding the base SystemUI target
may choose to ignore this flag and set their own optimization settings.

Opting out of optimizations can be achieved with either:
  * Env: export SYSTEMUI_OPTIMIZE_JAVA=false
  * Make: SYSTEMUI_OPTIMIZE_JAVA := false

Bug: 203472868
Test: m + presubmit + validate dex on new lunch targets
Change-Id: Id97031cc2c0d1d614391c404850002faf57bd4ac
2022-08-05 15:37:52 -07:00
Jared Duke
0fa2f42a4f Tune R8 shrinking defaults for system_server
Disable R8 shrinking by default if there are additional
SYSTEM_SERVER_JARS that may be downstream from services.jar, or if
the jar ordering is unreliable.

The longer term solution will be to feed R8 the SYSTEM_SERVER_JARS
explicitly during the shrinking phase, but for now this avoids
potential issues with such dowstream jars. Note that specific
products or targets can still opt-in explicitly even if there may be
ordering issues in SYSTEM_SERVER_JARS.

Bug: 240588226,235484969
Test: m + lunch various Arc/Wear/Auto targets
Change-Id: I1d824e1e61de65604123b65b25b192a8a32fd0c1
Merged-In: I1d824e1e61de65604123b65b25b192a8a32fd0c1
2022-08-03 13:18:41 -07:00
Jared Duke
9780e330b3 Enable R8 code shrinking for system_server by default
Flip the setting that controls R8 shrinking for system_server from
opt-in to opt-out. This can be controlled by vendor makefiles and from
the command-line using the `SYSTEM_OPTIMIZE_JAVA` boolean build flag.

Note that this change only enables code shrinking for system_server,
and should not impact stack traces except for certain stack frames
involving synthetics.

Additional (vendor) code that is loaded dynamically into
system_server, that references system_server code, should use
system_server APIs that are expicitly annotated with
`@android.annotation.SystemApi`.

Additional (vendor) code added directly to services.jar,
which doesn't fall into existing keep patterns in the services
proguard.flags configuration and would otherwise be stripped, should be
annotated with `@com.android.internal.annotations.Keep`.

Results: services.jar (20MB -> 17MB)

Bug: 210510433
Test: atest
  CtsInstalledLoadingProgressHostTests
  CtsAutoFillServiceTestCases
  CtsAppSecurityHostTestCases
  CtsAppTestCases
Change-Id: Icc77c9451d9a4a83e02cb591693354988f8d0ec4
Merged-In: Icc77c9451d9a4a83e02cb591693354988f8d0ec4
2022-08-03 13:17:17 -07:00
Treehugger Robot
53d7adcba3 Merge "Tune R8 shrinking defaults for system_server" am: 08a46cda1b
Original change: https://android-review.googlesource.com/c/platform/build/+/2169486

Change-Id: I6095b857e17f2142dc99b7d90291b84ea1bbae4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 17:45:45 +00:00
Treehugger Robot
08a46cda1b Merge "Tune R8 shrinking defaults for system_server" 2022-08-02 17:21:18 +00:00
Jared Duke
1687d842d4 Tune R8 shrinking defaults for system_server
Disable R8 shrinking by default if there are additional
SYSTEM_SERVER_JARS that may be downstream from services.jar, or if
the jar ordering is unreliable.

The longer term solution will be to feed R8 the SYSTEM_SERVER_JARS
explicitly during the shrinking phase, but for now this avoids
potential issues with such dowstream jars. Note that specific
products or targets can still opt-in explicitly even if there may be
ordering issues in SYSTEM_SERVER_JARS.

Bug: 240588226,235484969
Test: m + lunch various Arc/Wear/Auto targets
Change-Id: I1d824e1e61de65604123b65b25b192a8a32fd0c1
2022-08-01 09:47:32 -07:00
SzuWei Lin
dab11d367d Merge "Support dynamic 64-bit media service" am: aba99adea4
Original change: https://android-review.googlesource.com/c/platform/build/+/2144759

Change-Id: I9b5a60c8630a082e72eb1dc803f50b56ad03a2e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 00:38:17 +00:00
SzuWei Lin
aba99adea4 Merge "Support dynamic 64-bit media service" 2022-07-14 00:20:03 +00:00
Paul Duffin
86251a5450 Add permission to the list of individually toggleable modules
This is safe even though permission is not an optional mainline
module because devices that support mainline must pass GTS and
testModulesSignedCorrectly and testModulesPreloadedCorrectly in GTS
currently tests this, along with testMainlineApprovedTrain which checks
mandatory/optional, signing keys, and if what's preloaded are part of
approved trains.

Bug: 238175656
Test: # Cherry pick to branch that has Google signed prebuilts for
      # permission and builds from prebuilts by default.
      # Update the permission to an sdk snapshot generated with
      # r.android.com/2151273.
      # Make sure that the permission is built from prebuilts by
      # default
Change-Id: Id4eb9ba0da8a05c41d3b29b1cb8fa1d2d485c7b9
(cherry picked from commit fb72d542ad)
Merged-In: Id4eb9ba0da8a05c41d3b29b1cb8fa1d2d485c7b9
2022-07-13 16:28:57 +00:00
Paul Duffin
3ec92f2695 Add permission to the list of individually toggleable modules
(cherry-picked from fb72d542ad)

This is safe even though permission is not an optional mainline
module because devices that support mainline must pass GTS and
testModulesSignedCorrectly and testModulesPreloadedCorrectly in GTS
currently tests this, along with testMainlineApprovedTrain which checks
mandatory/optional, signing keys, and if what's preloaded are part of
approved trains.

Bug: 238175656
Test: # Cherry pick to branch that has Google signed prebuilts for
      # permission and builds from prebuilts by default.
      # Update the permission to an sdk snapshot generated with
      # r.android.com/2151273.
      # Make sure that the permission is built from prebuilts by
      # default
Change-Id: Id4eb9ba0da8a05c41d3b29b1cb8fa1d2d485c7b9
Merged-In: Id4eb9ba0da8a05c41d3b29b1cb8fa1d2d485c7b9
2022-07-13 14:01:31 +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
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
Jared Duke
1b9e2fc3be Merge "Enable R8 code shrinking for system_server by default" am: 88aaae3547 am: 2a86e4515f
Original change: https://android-review.googlesource.com/c/platform/build/+/2123992

Change-Id: I94dbaf93c65d0b19b9852a069f441887f3ac66ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 21:46:37 +00:00
Jared Duke
b11b1d2437 Enable R8 code shrinking for system_server by default
Flip the setting that controls R8 shrinking for system_server from
opt-in to opt-out. This can be controlled by vendor makefiles and from
the command-line using the `SYSTEM_OPTIMIZE_JAVA` boolean build flag.

Note that this change only enables code shrinking for system_server,
and should not impact stack traces except for certain stack frames
involving synthetics.

Additional (vendor) code that is loaded dynamically into
system_server, that references system_server code, should use
system_server APIs that are expicitly annotated with
`@android.annotation.SystemApi`.

Additional (vendor) code added directly to services.jar,
which doesn't fall into existing keep patterns in the services
proguard.flags configuration and would otherwise be stripped, should be
annotated with `@com.android.internal.annotations.Keep`.

Results: services.jar (20MB -> 17MB)

Bug: 210510433
Test: atest
  CtsInstalledLoadingProgressHostTests
  CtsAutoFillServiceTestCases
  CtsAppSecurityHostTestCases
  CtsAppTestCases
Change-Id: Icc77c9451d9a4a83e02cb591693354988f8d0ec4
2022-06-21 20:34:51 +00:00
Anton Hansson
18f349b4fc Merge "Don't exclude docs build from using prebuilts" into tm-dev am: 29ae21ebb7
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/18886329

Change-Id: I29f6b344b3edf6b7740f6cfd10b304cd1ea6a786
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 18:19:23 +00:00
Anton Hansson
c9a5d76f32 Don't exclude docs build from using prebuilts
Even though it doesn't have google modules in PRODUCT_PACKAGES,
the docs build wants to use prebuilts when the rest of the branch
does.

Bug: 230478310
Test: m docs (inspect MODULE_BUILD_FROM_SOURCE)
Merged-In: I1d67f4099e9fdc5fbaeeb0bf0fce80aa91c05eb5
Change-Id: I1d67f4099e9fdc5fbaeeb0bf0fce80aa91c05eb5
2022-06-15 17:59:49 +00:00
Anton Hansson
29ae21ebb7 Merge "Don't exclude docs build from using prebuilts" into tm-dev 2022-06-15 17:59:25 +00:00
Anton Hansson
ad0ef270db Don't exclude docs build from using prebuilts
Even though it doesn't have google modules in PRODUCT_PACKAGES,
the docs build wants to use prebuilts when the rest of the branch
does.

Bug: 230478310
Test: m docs (inspect MODULE_BUILD_FROM_SOURCE)
Change-Id: I1d67f4099e9fdc5fbaeeb0bf0fce80aa91c05eb5
2022-06-14 13:43:37 +00:00
Paul Duffin
75ea2c104a Add bluetooth and uwb to the optional modules list am: 70a11a34c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/18839974

Change-Id: Iff27070d8840b3b5ff1d03eaf8747bd3c5e0bc5a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 16:11:42 +00:00
Paul Duffin
70a11a34c0 Add bluetooth and uwb to the optional modules list
Bug: 233965247
Test: m nothing
Change-Id: I9618844499d6f1da4d5e9b5b31bfaca86c4de980
2022-06-11 12:24:38 +00:00
Paul Duffin
9a5e3d53a8 Add wifi_module/source_build Soong config variable
As an optional module, wifi has its own Soong config variable. This
change ensures that it is controlled by the same environment variable
as the rest of the modules.

Bug: 233965247
Test: # Unpack wifi snapshot that uses wifi specific Soong config.
      m nothing
      # Without this the build fails as it uses the wifi prebuilts
      # which do not work in AOSP.
      # With this change the build passes as it uses the wifi
      # sources.
Change-Id: Iea0ad09182a162b8f5ddf1403f65a3bbffb9ef08
(cherry picked from commit 4f4b6d776d)
Merged-In: Iea0ad09182a162b8f5ddf1403f65a3bbffb9ef08
2022-06-11 12:17:02 +00:00
Treehugger Robot
f64cff696f Merge "Add wifi_module/source_build Soong config variable" am: aa3bc3be79 am: 4c3372bdf9
Original change: https://android-review.googlesource.com/c/platform/build/+/2121573

Change-Id: Id8c4706e391ae31b13c178ecadb8b1b5b9c17792
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 20:32:21 +00:00
Paul Duffin
4f4b6d776d Add wifi_module/source_build Soong config variable
As an optional module, wifi has its own Soong config variable. This
change ensures that it is controlled by the same environment variable
as the rest of the modules.

Bug: 233965247
Test: # Unpack wifi snapshot that uses wifi specific Soong config.
      m nothing
      # Without this the build fails as it uses the wifi prebuilts
      # which do not work in AOSP.
      # With this change the build passes as it uses the wifi
      # sources.
Change-Id: Iea0ad09182a162b8f5ddf1403f65a3bbffb9ef08
2022-06-10 11:26:16 +00:00
Paul Duffin
f372ce1415 Disable prebuilts when building with clang coverage
Prebuilts broke the cf_x86_phone-userdebug_coverage_bionic
on tm-release build.

Bug: 230478310
Bug: 223592962
Test: presubmit
Merged-In: I3ed091156c4b39dad6eaf578144ac3d070025988
Merged-In: I9731400acfade95b3eab8f2d99fddb4cf856aa91
Merged-In: I6eca2fcc670dccef4a6cd9dc3f08003eb47e5bca
Change-Id: I40c10e88b824e5f4b783b1dc0a500096fad209b2
2022-05-31 17:10:41 +00:00
Dario Freni
c7b5e2c0ce Retry: Enable mainline prebuilts on tm-dev branch.
Except for santizer and framework Java coverage tests as they require
specialized prebuilts built from a matching configuration and we do not
provide them.

And products that use dex2oat(d)s as they are not available as a
prebuilt.

And products that cross compile to arm64 and linux_bionic on the host
as prebuilts for that are not available.

And atv/tv products as they break when building against prebuilts.

Bug: 230478310
Bug: 223592962
Test: presubmit
Merged-In: I3ed091156c4b39dad6eaf578144ac3d070025988
Merged-In: I9731400acfade95b3eab8f2d99fddb4cf856aa91
Merged-In: I43fa4ae8db51012eaf78d70fe65e9e0a3f7eca16
Change-Id: Ib01ba9e2e3c2225c88d52b6811edf04aff02c81e
2022-05-23 18:42:27 +00:00