Commit graph

6553 commits

Author SHA1 Message Date
Peiyong Lin
148276b55a Properly define angle.mk
Previously we used USE_ANGLE to determine whether the build should include
ANGLE drivers, this patch consolidates that into a separate Makefile.

Bug: b/270994705
Test: atest CtsAngleIntegrationHostTestCases
Change-Id: I4d7ffb869ced219009446d907230178e4b940157
2023-04-26 22:05:20 +00:00
Pranav Gupta
105610bdf0 Remove MODULE_BUILD_FROM_SOURCE for gsi_release.mk
The gsi_release.mk should be agnostic of AOSP or Android. In case of
Android builds, modules should be prebuilt, however in the case of AOSP
they can be built from source. This option should now be configured at
the product makefile level

Also update the shipping API to 34

Bug: 278607630

Test: TARGET_PRODUCT=gsi_arm64 TARGET_BUILD_VARIANT=userdebug build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
returns true
TARGET_PRODUCT=gsi_arm64 TARGET_BUILD_VARIANT=userdebug MODULE_BUILD_FROM_SOURCE=false build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
returns false

Change-Id: I5937764d8df307ed7547363e6ba2742828779282
2023-04-20 19:23:35 +00:00
Florian Mayer
ed97847d9a Merge "Include hwasan lib and runtime on arm64 system images" 2023-04-14 23:27:56 +00:00
Florian Mayer
201eb3b6cc Include hwasan lib and runtime on arm64 system images
This is needed so we can run hwasan-enabled apps for debugging on normal
system images.

Bug: 276930343
Change-Id: Ie572d77307e5e6268b851ea5c96aae05d588dae3
2023-04-13 17:39:25 -07:00
Roman Kiryanov
52b797e741 Remove emulator dependencies on non emulator targets (1)
Bug: 266607613
Bug: 111538404
Test: presubmit
Change-Id: I2c8870d68696f39277a503081c91274b0e9ec1bd
Signed-off-by: Roman Kiryanov <rkir@google.com>
2023-04-10 10:53:25 -07:00
Cole Faust
b51e1ffce4 Make android_certificate_directory public
This should not be necessary because bp2build should emit a package()
statement with default_visibility = public. However, there appears
to be a problem with bp2build's symlink forest, where it doesn't
handle symlinks correctly.

build/target is a symlink to build/make/target, but in the symlink
forest, build/target is a symlink to the source dir's build/target
instead of to the symlink forest's build/make/target. This means
that when reading this build file via the build/target symlink,
you won't get the bp2build-provided default visibility. (or any other
bp2build generated targets)

We should send a proper fix for this, but in the meantime submit this
quick fix to resolve some failing builds.

Bug: 269577299
Test: lunch bertha_x86_64-userdebug, m nothing
Change-Id: Ia45c7f4a0655b1364b735d6eccf25cad70cad134
2023-04-04 14:09:27 -07:00
Treehugger Robot
70c0c6eb81 Merge "Move PRODUCT_BRAND to module_common.mk" 2023-04-04 07:11:11 +00:00
Cole Faust
2d42461400 Move PRODUCT_BRAND to module_common.mk
So that we don't need to specify it in individual mainline modules
products, which becomes more important after the internal ones only
inherit from the common aosp product as opposed to the arch-specific
ones.

Bug: 249685973
Test: Diff'd the soong.variables files for the module_* products and saw no differences
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:211c5c2810e50a1c5d3bca2f1f7942b624fe3abe)
Merged-In: If1733eb193cd3748fb3562d09bfd41651e2480f9
Change-Id: If1733eb193cd3748fb3562d09bfd41651e2480f9
2023-04-03 22:19:00 +00:00
Cole Faust
bf65a62cb9 Add filegroup of certificates
This is needed for bazel to depend on all certificates from a different
package.

Bug: 269577299
Test: See other cl
Change-Id: I4eeb0b892400fa6bd90080c7e10e9fb762d3b7db
2023-04-01 14:48:19 -07:00
Treehugger Robot
b722138c8c Merge "Retire unused variable" 2023-03-28 19:20:52 +00:00
Roman Kiryanov
1b292bf89a Retire unused variable
Bug: 274103438
Test: presubmit
Change-Id: I66deda33e8cf5b4bdd00621ede23bc5ad89b6bbb
Signed-off-by: Roman Kiryanov <rkir@google.com>
2023-03-28 08:27:45 -07:00
Colin Cross
ffda9a5093 Merge changes Id8b48c8c,I3b66304c
* changes:
  Build the whole platform for aosp_riscv64
  Disable dexpreopt for aosp_riscv64
2023-03-24 15:48:32 +00:00
Colin Cross
c9cb74d257 Build the whole platform for aosp_riscv64
Remove the hacks that prevent building the rest of the platform
for aosp_riscv64.

Test: lunch aosp_riscv64-userdebug && m
Change-Id: Id8b48c8c456e76624647f153c7dd9612569fc7a1
2023-03-23 16:29:28 -07:00
Peter Collingbourne
3f91ff5d47 Merge "cuttlefish: Add a fullmte target." 2023-03-23 21:39:19 +00:00
Hsin-Yi Chen
14f240351e Merge "Revert "remove health library from VNDK"" 2023-03-22 02:15:35 +00:00
Hsin-Yi Chen
f623c266ca Revert "remove health library from VNDK"
This reverts commit dbbe29a15f.

Bug: 274406085
Reason for revert: VNDK 33 should not be modified in U branches.

Change-Id: If374d4718243e04e03c48a9c6bbd8f10e3eea898
2023-03-21 09:36:26 +00:00
Treehugger Robot
0a70a53cc9 Merge "Disable frameworks loading of renderscript libs" 2023-03-21 03:27:53 +00:00
Peter Collingbourne
e5373c702c cuttlefish: Add a fullmte target.
Bug: 273575148
Change-Id: I3f6a4a3516a44b44e83a50475fbd820ddd1a2f08
2023-03-16 13:53:29 -07:00
Prashanth Swaminathan
06713a0e89 Disable frameworks loading of renderscript libs
Bug: 206676167
Test: Verified during boot that frameworks skips loading of rs_jni by
injecting logs into frameworks/base/rs.

Change-Id: I856367df816c8ad28dde54af69ab36e4f1605146
2023-03-14 15:52:54 -07:00
Treehugger Robot
397d52d12c Merge "Add libclang_rt.ubsan_standalone to all debug builds" am: 021e31623d
Original change: https://android-review.googlesource.com/c/platform/build/+/2458948

Change-Id: I5ded6c02863415ccf553ddcf4f64cdfebf392d7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 21:04:32 +00:00
Florian Mayer
f9d1c1b714 Add libclang_rt.ubsan_standalone to all debug builds
This is needed to run tests that use `sanitize: { undefined: true }`.

(this is a cherry-pick of fc6f2a43af)

Test: run test that needs ubsan on cf_x86_64_phone
      without this change: fails to link
      with this change: works
Bug: 255414852
Merged-In: Id5d3be9bafcc4dbaaf59ca55728ffc40b5cc4af5
Change-Id: Id5d3be9bafcc4dbaaf59ca55728ffc40b5cc4af5
2023-02-27 10:41:53 -08:00
Ulya Trofimovich
10f6bf0169 Merge "Add ART and some other modules to dist target on riscv64." am: b9828d64b4
Original change: https://android-review.googlesource.com/c/platform/build/+/2450643

Change-Id: I7a93db28dcd6bcc64df2a6e616531e8c343ff68d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-23 19:14:31 +00:00
Ulya Trafimovich
0da6e01bab Add ART and some other modules to dist target on riscv64.
Test: lunch aosp_riscv64-userdebug && m dist
Change-Id: Ib294f30dabeef6cf585ec0e2ad4f51fdfb7f73c4
2023-02-22 13:36:57 +00:00
Treehugger Robot
01a756570b Merge "Add system property for the new boot-after-mainline-update compilation reason." am: 3f6ffaa382
Original change: https://android-review.googlesource.com/c/platform/build/+/2435496

Change-Id: Id550c6d5bdaf8e390cecf6ee1808da7a4ff27b4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-21 12:14:36 +00:00
Martin Stjernholm
92189ed9b6 Add system property for the new boot-after-mainline-update compilation
reason.

Cherry-picked from internal.

Test: Boot
Bug: 265685704
Change-Id: I11d8d6eac1ea0e9537a839ee39adf3edb51852ec
Merged-In: I11d8d6eac1ea0e9537a839ee39adf3edb51852ec
2023-02-14 18:42:47 +00:00
Fabián Cañas
95dded3f87 Merge "Add binder transaction recording tool to base system debug packages" am: af79d1dede
Original change: https://android-review.googlesource.com/c/platform/build/+/2393218

Change-Id: I97b63a756be4d3f631b4c578f481863a05ab93c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-24 16:59:25 +00:00
Fabián Cañas
af79d1dede Merge "Add binder transaction recording tool to base system debug packages" 2023-01-24 16:24:54 +00:00
Treehugger Robot
c7f5895670 Merge "remove health library from VNDK" am: b8470994b4
Original change: https://android-review.googlesource.com/c/platform/build/+/2319371

Change-Id: I245141b6bbb91d2d139071d95db8e076fc2e3330
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-24 01:20:04 +00:00
Jack Wu
dbbe29a15f remove health library from VNDK
Bug: 251425963
Test: build
Change-Id: I368f51bf66e117acee791d3a52eda4bb9b7be411
Signed-off-by: Jack Wu <wjack@google.com>
2023-01-24 00:41:13 +00:00
Fabián Cañas
d8beee09b8 Add binder transaction recording tool to base system debug packages
Test: Make a fresh image. Use and explore with `record_binder`
Change-Id: I4ab24d34c17218b816143864f69819e9ce70e6ae
2023-01-23 14:45:40 -05:00
Treehugger Robot
bd2e23ee99 Merge "Add aosp_riscv64 to AndroidProducts for TARGET_BUILD_APPS" am: 96159b063d
Original change: https://android-review.googlesource.com/c/platform/build/+/2393219

Change-Id: Ibade628e5d41b8040e4fdd2f0df53d04ab6c38c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 04:19:08 +00:00
Treehugger Robot
96159b063d Merge "Add aosp_riscv64 to AndroidProducts for TARGET_BUILD_APPS" 2023-01-20 03:54:11 +00:00
Motomu Utsumi
7d212c2027 Merge "Remove cronet from PRODUCT_PACKAGES" am: 95bfc2b8f5
Original change: https://android-review.googlesource.com/c/platform/build/+/2248673

Change-Id: I54728244ad739f1dc804a65b194d73d5fa518808
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 02:40:05 +00:00
Motomu Utsumi
95bfc2b8f5 Merge "Remove cronet from PRODUCT_PACKAGES" 2023-01-20 02:03:26 +00:00
Colin Cross
4dc7c85153 Add aosp_riscv64 to AndroidProducts for TARGET_BUILD_APPS
Allow building unbundled prebuilts for aosp_riscv64.

Test: TARGET_BUILD_APPS=CtsShim TARGET_PRODUCT=aosp_riscv64 m
Change-Id: If563f2e9b6c0181ad2465367e30bb283bea1fcf9
2023-01-19 14:58:07 -08:00
Akilesh Kailash
dbe1b59d3c Merge "Enable Batch writes for OTA installation." am: 529aa12817
Original change: https://android-review.googlesource.com/c/platform/build/+/2372277

Change-Id: I596aa0c9ed36d4832ad136d814310d7bb253236e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 00:19:50 +00:00
Akilesh Kailash
529aa12817 Merge "Enable Batch writes for OTA installation." 2023-01-18 23:15:34 +00:00
Treehugger Robot
621e9cc599 Merge "Fix generic ramdisk build failures on dedicated recovery partitions" am: 2797146c86
Original change: https://android-review.googlesource.com/c/platform/build/+/2388833

Change-Id: Ia3fff9e16c204c846c1600c9cdcb83dc39bac027
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 20:24:56 +00:00
Treehugger Robot
2797146c86 Merge "Fix generic ramdisk build failures on dedicated recovery partitions" 2023-01-18 19:25:57 +00:00
Devin Moore
d5cbd27c6e Merge "Replace the HIDL cas service from default vendor images" am: 6e04deaec9
Original change: https://android-review.googlesource.com/c/platform/build/+/2380863

Change-Id: Ic07cf0f0f60bfe7a6c8e2c9a41ea7bb759aa3e72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 17:41:13 +00:00
Devin Moore
6e04deaec9 Merge "Replace the HIDL cas service from default vendor images" 2023-01-18 17:36:03 +00:00
Hsin-Yi Chen
ae57cff779 Merge "Update check-vndk-list rules" am: bed1ff2372
Original change: https://android-review.googlesource.com/c/platform/build/+/2379708

Change-Id: I5575be4545555bb99d51f127607cc01cd60bab00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 14:16:32 +00:00
Hsin-Yi Chen
bed1ff2372 Merge "Update check-vndk-list rules" 2023-01-18 13:42:53 +00:00
Akilesh Kailash
9210c0c377 Enable Batch writes for OTA installation.
By default set `ro.virtual_ab.compression.threads` it to false.
Enabling this will improve OTA install time at the cost
of one more CPU.

Bug: 254188450
Test: OTA on Pixel
Change-Id: Idf1fa950a5fc394f0d783d80c84045295185fb85
Signed-off-by: Akilesh Kailash <akailash@google.com>
2023-01-18 06:20:37 +00:00
Kelvin Zhang
1143aaf772 Fix generic ramdisk build failures on dedicated recovery partitions
For targets with BoardUsesRecoveryAsBoot set to true, binaries in
generic_ramdisk are installed to $OUT/recovery/root/first_stage_ramdisk
This path is not on generic_ramdisk.mk 's allowlist, hence build fails.
To fix the failure, add $OUT/recovery/root/first_stage_ramdisk/system to
allow list.

Test: th, lunch eos-userdebug(a dedicated recovery partition target) and build.

Bug: 265477065
Change-Id: I89cf229adc028a7e5de632b9a3188ecb411de735
2023-01-17 17:11:55 +00:00
Devin Moore
4f5534b0d3 Replace the HIDL cas service from default vendor images
This has been converted to AIDL.

Test: none
Bug: 227673974
Change-Id: I7eaef8da34d29c448358749d331758cbed7851df
2023-01-12 19:17:57 +00:00
Xin Li
d8cc7f97ad Merge tm-qpr-dev-plus-aosp-without-vendor@9467136
Bug: 264720040
Merged-In: Iea5b6fffed7c27855d87e35292f07a56686e4197
Change-Id: I912db6aac23dc5ee37b8b4455eec553da31d6dbc
2023-01-11 22:54:26 -08:00
Kun Niu
33790fc855 Merge "Set UNBUNDLED_BUILD_SDKS_FROM_SOURCE to true by default in module_common.mk if the branch is not using slim manifests. This makes sure that mainline modules build locally are using the build from source sdk." 2023-01-11 00:03:59 +00:00
Hsin-Yi Chen
ede358bde1 Update check-vndk-list rules
- Move LLNDK dumps from vndk directory to platform directory.
- Rename ndk and platform subdirectories from the codename to "current".

Bug: 238383845
Test: make check-vndk-list

Change-Id: Iafd9c970ebbdcc670c2ec406fda5ae861469a023
2023-01-09 14:12:12 +08:00
Treehugger Robot
499ded5a82 Merge "Remove dalvik.vm.usejitprofiles system property." am: ded89ff976 am: b8caaf16db
Original change: https://android-review.googlesource.com/c/platform/build/+/2327879

Change-Id: Iac17016466335c3d4fbc5ce228db1588e33f044f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-16 19:56:11 +00:00