Commit Graph

57803 Commits

Author SHA1 Message Date
Janis Danisevskis e8484f2160 Remove keymaster libraries from VNDK
These keymaster libraries constitute a service to vendors
who want/need to implement a keymaster trusted app, or want
to wrap an older keymaster HAL when updating an older device
to a newer Android version. It is not necessary to implement
or link against these libraries to be Android or Treble
compliant. Many vendors have completely independent
implementations of keymaster. Vendors should be able to
provide there own versions of these libraries or ship without
them entirely. /system does not depend on /vendor to have
a compatible version of these libraries.

Test: N/A
Bug: 139955894
Merged-In: I9286b36d26f09e26763df17758f9bec9e2b60ec8
Change-Id: I9286b36d26f09e26763df17758f9bec9e2b60ec8
2020-01-24 14:44:36 -08:00
Yifan Hong cb0e97750a Merge changes from topics "board_use_recovery_as_root_soong", "ramdisk"
* changes:
  Add e2fsck_ramdisk for VAB devices
  Export BOARD_USES_RECOVERY_AS_BOOT to soong.
2020-01-24 22:39:41 +00:00
Yifan Hong 8d29737259 Add BOARD_USES_RECOVERY_AS_BOOT to readonly list.
Test: builds
Change-Id: I391e0d168c79e84c1a2acd4fe693e3ed9fbddb53
2020-01-24 14:28:03 -08:00
Colin Cross 74daa974bb Rename NativeCoverage to Native_coverage
Rename NativeCoverage to Native_coverage so it can be used as a
product_variable in Soong.

Test: m checkbuild
Change-Id: I86463a5c9b6cf4ba628cbdfb200625dc1e59e559
2020-01-24 14:27:11 -08:00
Dan Willemsen 084c6ef6fa Deprecate BUILD_HOST_SHARED_LIBRARY
There are no common users left.

Also add some sanity checks to ensure that people don't attempt to use
LOCAL_IS_HOST_MODULE := true with the BUILD_(STATIC|SHARED)_LIBRARY
module types (I'm not sure it would work, but it definitely wouldn't be
good).

Bug: 130722971
Test: treehugger
Test: check the warnings on the build_test builds from treehugger
Change-Id: I3e571ef80379955149adbceff4500e51dfa016c6
2020-01-24 13:21:21 -08:00
Automerger Merge Worker 1454e7cc5c Merge "libprotobuf-cpp-lite is removed from VNDK." am: 7ad254aee9
Change-Id: Idb64c5be511bd588704962866809036ab1be6c1a
2020-01-24 14:10:04 +00:00
Jiyong Park 7ad254aee9 Merge "libprotobuf-cpp-lite is removed from VNDK." 2020-01-24 13:59:37 +00:00
Yifan Hong 9a190e25d0 Export BOARD_USES_RECOVERY_AS_BOOT to soong.
Test: pass
Bug: 147347110
Change-Id: I4ba4f626f02c42b1700a971326557abd23da8340
2020-01-23 13:21:09 -08:00
Yifan Hong 04d4c08929 Add e2fsck_ramdisk for VAB devices
e2fsck_ramdisk is critical for VAB devices to boot
after an OTA in case of corruption in metadata partition.

Test: pass
Bug: 147347110
Change-Id: I44ce456c11961ec978dcb4e68c32d72c1fab0c4d
2020-01-23 13:21:09 -08:00
Inseob Kim f0cec69de9 Implement BOARD_VNDK_VERSION
This allows BOARD_VNDK_VERSION to be set to old versions. With VNDK
snapshot and vendor snapshot installed, newer system and older vendor
image can be built in the same time.

Bug: 65377115
Test: 1) VNDK_SNAPSHOT_BUILD_ARTIFACTS=true m dist vndk vendor-snapshot
Test: 2) install snapshot under source tree
Test: 3) set BOARD_VNDK_VERSION and boot cuttlefish
Change-Id: Ic5fefc8bcb866584b27f021a429cb6670a2e3048
2020-01-23 12:52:25 +00:00
Inseob Kim c465e20400 Implement vendor snapshot
Vendor snapshot can be captured with "m dist vendor-snapshot". With
vendor snapshot and vndk snapshot, older version of /vendor and newer
version of /system will be able to be built together by setting
BOARD_VNDK_VERSION to past vendor's version.

Only vendor modules under AOSP are to be captured. In detail, modules
under following directories are ignored:
- cts/
- device/
- external/clang/
- external/llvm/
- hardware/, except for:
    - interfaces/, libhardware/, libhardware_legacy/, ril/
- vendor/

Bug: 65377115
Test: m dist vendor-snapshot
Change-Id: Ib5859e409f8ab281ca137cae21e9ea08abd8a0b1
2020-01-23 21:51:08 +09:00
Jiyong Park d918cadcc0 libprotobuf-cpp-lite is removed from VNDK.
It is demoted to vendor_available library. Therefore it will be
installed to /vendor/lib[64] instead of /system/lib[64]/vndk.

Bug: 147780271
Test: m
Merged-In: I40a94a3ecf55592b8e2f83f43070fa958c532cef
Change-Id: I40a94a3ecf55592b8e2f83f43070fa958c532cef
(cherry picked from commit 87889b0d4d)
2020-01-23 13:11:09 +09:00
Jack Yu d33e74f9e5 Merge "Add android.hardware.secure_element@1.2"
am: 4b26ce076a

Change-Id: Ia20f33520e6b5af467caf4a5f318269afcc42c0c
2020-01-22 19:21:48 -08:00
Treehugger Robot 4b26ce076a Merge "Add android.hardware.secure_element@1.2" 2020-01-23 02:00:02 +00:00
Hunter Knepshield 0096fece8b Update VNDK library list for IDumpstateDevice 1.1.
Bug: 143183758
Bug: 143184495
Test: make
Change-Id: I5a89afc0be91c1874ae38b6e00f8239c2cec71ab
Merged-In: I5a89afc0be91c1874ae38b6e00f8239c2cec71ab
(cherry picked from commit c6cd7f43d1)
2020-01-22 17:44:25 -08:00
Yifan Hong f243891f3f Merge "Do not check VINTF if no files"
am: 84c1309730

Change-Id: I10c47483413fc62f57671a5a2a81bea11258d0c2
2020-01-22 14:59:08 -08:00
Yifan Hong 84c1309730 Merge "Do not check VINTF if no files" 2020-01-22 22:51:04 +00:00
Oliver Nguyen d4692b03ea Merge "Add CLANG_COVERAGE build flag to soong config."
am: 125f7dc84d

Change-Id: I00230a947695715157425999cd2f90173d6e3098
2020-01-22 14:41:31 -08:00
Oliver Nguyen 125f7dc84d Merge "Add CLANG_COVERAGE build flag to soong config." 2020-01-22 22:34:35 +00:00
Jeongik Cha a7f1ee1ac8 Merge "Turn on PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE if PRODUCT_SHIPPING_API_LEVEL > 29"
am: 02b1498d5a

Change-Id: Idd23b218bc9c6203865f642d78dfa4c3bafdbdc6
2020-01-21 16:45:00 -08:00
Treehugger Robot 02b1498d5a Merge "Turn on PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE if PRODUCT_SHIPPING_API_LEVEL > 29" 2020-01-22 00:36:40 +00:00
Justin Yun 24102883f3 Merge "Restore "Linktype check for native:product""
am: 839eb98241

Change-Id: I9a48eb53227819ecd6d0a29f561f189130991e48
2020-01-21 16:24:56 -08:00
Treehugger Robot 839eb98241 Merge "Restore "Linktype check for native:product"" 2020-01-22 00:16:50 +00:00
Justin Yun 2bfe0a1a25 Restore "Linktype check for native:product"
Similar to native:vendor, native:product can use VNDK libs but not
vndk_private.
It is activated when PRODUCT_PRODUCT_VNDK_VERSION is set.

This restores the reverted commit
4e7e76fe5a (aosp/1197274).
The problem of the original CL was assuming no modules have both
LOCAL_PRODUCT_MODULE and LOCAL_USE_VNDK in the old implementations.
But many vendor modules in the targets without setting
PRODUCT_PRODUCT_VNDK_VERSION in old branches had both flags that
caused link failures.
To make it no-op without PRODUCT_PRODUCT_VNDK_VERSION, I defined
LOCAL_USE_VNDK_PRODUCT that is set to true if
PRODUCT_PRODUCT_VNDK_VERSION is defined and LOCAL_PRODUCT_MODULE is
true.

Bug: 146620523
Test: build with PRODUCT_PRODUCT_VNDK_VERSION := current
Change-Id: I344c7dc1c47f08706c101e486ff07c3f10aff8ac
2020-01-22 00:16:25 +00:00
Yifan Hong 031ba1bd6b Merge "Remove BUILT_VENDOR_MANIFEST variable."
am: 4de0c0906d

Change-Id: I8fc4de1e1291c54e892cd8afbd4a8ca3a943661e
2020-01-21 14:17:47 -08:00
Peter Collingbourne 99c9c3bb81 Merge "Update make build system for dynamic unwinder."
am: b1d7545e1b

Change-Id: I140b18fe5c4d498f773ab0c60c473a66c87b0b11
2020-01-21 14:10:22 -08:00
Yifan Hong 4de0c0906d Merge "Remove BUILT_VENDOR_MANIFEST variable." 2020-01-21 21:33:18 +00:00
Peter Collingbourne b1d7545e1b Merge "Update make build system for dynamic unwinder." 2020-01-21 21:28:44 +00:00
Yifan Hong af9b0701e3 Do not check VINTF if no files
Do not check VINTF integrity / compatibility if
no files are built to /system/etc/vintf/* or /vendor/etc/vintf/*.

Test: m check-vintf-all on gsi_gms_arm64
Test: m check-vintf-all on coral

Fixes: 147749718
Fixes: 148007775

Change-Id: I874d1558e0b891b9d307eec536b1071d382a43f5
2020-01-21 13:21:52 -08:00
SzuWei Lin 283dc8ced5 Add Legacy GSI R
Legacy GSIs named with the suffix _ab, ex. aosp_arm64_ab.
It contain some backward-compatible configurations for
devices upgraded from O/O-MR1.

The patch also addes legacy_gsi_release.mk for the special
configuretions of Legacy GSI.

Bug: 144742991
Test: boot aosp_arm64_ab-userdebug on a walleye P (with SPL)
Test: boot aosp_arm64_ab-userdebug on a walleye Q (with SPL)
Change-Id: I61c9e74abcc921ab2cb50bf6f6dce1097a8d6c77
2020-01-20 17:49:45 +08:00
Justin Yun b94f1cdabd Merge "Revert "Linktype check for native:product""
am: d7466880dc

Change-Id: If472ddb76883fc1c5217117dfa23e575bfec6b94
2020-01-19 23:48:40 -08:00
Justin Yun d7466880dc Merge "Revert "Linktype check for native:product"" 2020-01-20 07:42:33 +00:00
Justin Yun dd5401713c Revert "Linktype check for native:product"
This reverts commit 4e7e76fe5a.

Reason for revert: build breaks (bid: 6147225) and postsubmit test fails.
There are some modules that have both "product_specific: true" and "vendor_available: true", which tags the module as "native:product" unintentionally.
We need to clean up these cases first and revisit this CL.

Bug: 146620523
Bug: 147987741
Change-Id: Ib07543235d72a135b6b732aaa909c147d2df832b
2020-01-20 07:39:41 +00:00
Jiyong Park 930eb7458d Merge "libprotobuf-cpp-full is removed from VNDK."
am: 3cff56942a

Change-Id: Ib9dabfdd95b996c53d1dfc6bc64bf410c9ac0357
2020-01-19 23:37:09 -08:00
Treehugger Robot 3cff56942a Merge "libprotobuf-cpp-full is removed from VNDK." 2020-01-20 07:32:36 +00:00
Justin Yun f39eb0fadb Merge "Linktype check for native:product"
am: 2e7a67bde7

Change-Id: I53e993ada82e7daec20fe74a0a624536a8848966
2020-01-19 17:28:42 -08:00
Treehugger Robot 2e7a67bde7 Merge "Linktype check for native:product" 2020-01-20 01:23:00 +00:00
Justin Yun 4e7e76fe5a Linktype check for native:product
Similar to native:vendor, native:product can use VNDK libs but not
vndk_private.
It is activated when PRODUCT_PRODUCT_VNDK_VERSION is set.

Bug: 146620523
Test: build with PRODUCT_PRODUCT_VNDK_VERSION := current
Change-Id: Icfd94dfc30e77581991799d9e2f408f57da22cea
2020-01-19 23:46:47 +00:00
Vic Yang f659596d8d Merge "Don't check VNDK variants when asan is used"
am: 7c42c3f55e

Change-Id: Ia43fd791c5c486adff06d888a67f5925d8b4e6c8
2020-01-17 20:52:41 -08:00
Vic Yang 7c42c3f55e Merge "Don't check VNDK variants when asan is used" 2020-01-18 04:45:49 +00:00
Vic Yang 90c3aca9bf Don't check VNDK variants when asan is used
Bug: 147911208
Test: Build with SANITIZE_TARGET=address
Change-Id: I161da92d2ed5c59ccf404cf93e04734cc85c2df9
2020-01-17 15:30:44 -08:00
Vic Yang 5465af32d2 Merge "Always check VNDK variant identicalness"
am: 5023711e9d

Change-Id: I24e041f3b64d6ee9f1c64c78a7995cf96e3a16bb
2020-01-17 12:29:39 -08:00
Yifan Hong 05c7ecaa00 Merge changes from topic "build_time_vintf"
am: 0188eb5d25

Change-Id: I0145144d40b539ee85f27a6fa1fadd230596b40a
2020-01-17 12:28:52 -08:00
Tobias Thierer 664375d166 Merge "Track addition of internal classes derived from OpenJDK 9+181."
am: 48b67473c6

Change-Id: I5b25f744a04e12bba0e6c28e8489d210a53a5b2d
2020-01-17 12:23:41 -08:00
Treehugger Robot 5023711e9d Merge "Always check VNDK variant identicalness" 2020-01-17 18:45:41 +00:00
Yifan Hong 0188eb5d25 Merge changes from topic "build_time_vintf"
* changes:
  Reland "Improve BUILT_ASSEMBLED_*_MANIFEST checks"
  Reland "Add check-vintf-all target."
2020-01-17 18:37:37 +00:00
Treehugger Robot 48b67473c6 Merge "Track addition of internal classes derived from OpenJDK 9+181." 2020-01-17 16:41:48 +00:00
Tobias Thierer c6cb1c3815 Track addition of internal classes derived from OpenJDK 9+181.
Bug: 147483640
Test: Treehugger

Change-Id: Ib934f0fe4e2aeadcc83bbae3c2efaf45a38081d4
2020-01-17 14:40:22 +00:00
Automerger Merge Worker a9eb75db71 Merge "Allow codename.fingerprint format for minSdkVersion" am: 345dad3c36
Change-Id: I10e17129aa1b98296139a757d7936282958cb9f2
2020-01-17 07:55:18 +00:00
Treehugger Robot 345dad3c36 Merge "Allow codename.fingerprint format for minSdkVersion" 2020-01-17 07:43:31 +00:00