Merge "Use defaults to reference current keymint version" am: ddf63247e9
am: 2fedeb5718
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1898852 Change-Id: I22d66b49e2e99bae00d54feb1a59696014bb5110
This commit is contained in:
commit
5a903ea23a
7 changed files with 37 additions and 6 deletions
|
@ -38,3 +38,30 @@ aidl_interface {
|
|||
},
|
||||
versions: ["1"],
|
||||
}
|
||||
|
||||
// cc_defaults that includes the latest KeyMint AIDL library.
|
||||
// Modules that depend on KeyMint directly can include this cc_defaults to avoid
|
||||
// managing dependency versions explicitly.
|
||||
cc_defaults {
|
||||
name: "keymint_use_latest_hal_aidl_ndk_static",
|
||||
static_libs: [
|
||||
"android.hardware.security.keymint-V1-ndk",
|
||||
],
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "keymint_use_latest_hal_aidl_ndk_shared",
|
||||
shared_libs: [
|
||||
"android.hardware.security.keymint-V1-ndk",
|
||||
],
|
||||
}
|
||||
|
||||
// A rust_defaults that includes the latest KeyMint AIDL library.
|
||||
// Modules that depend on KeyMint directly can include this cc_defaults to avoid
|
||||
// managing dependency versions explicitly.
|
||||
rust_defaults {
|
||||
name: "keymint_use_latest_hal_aidl_rust",
|
||||
rustlibs: [
|
||||
"android.hardware.security.keymint-V1-rust",
|
||||
],
|
||||
}
|
||||
|
|
|
@ -21,8 +21,10 @@ cc_binary {
|
|||
"-Wall",
|
||||
"-Wextra",
|
||||
],
|
||||
defaults: [
|
||||
"keymint_use_latest_hal_aidl_ndk_shared",
|
||||
],
|
||||
shared_libs: [
|
||||
"android.hardware.security.keymint-V1-ndk",
|
||||
"android.hardware.security.sharedsecret-V1-ndk",
|
||||
"android.hardware.security.secureclock-V1-ndk",
|
||||
"libbase",
|
||||
|
|
|
@ -26,6 +26,7 @@ package {
|
|||
cc_defaults {
|
||||
name: "keymint_vts_defaults",
|
||||
defaults: [
|
||||
"keymint_use_latest_hal_aidl_ndk_static",
|
||||
"use_libaidlvintf_gtest_helper_static",
|
||||
"VtsHalTargetTestDefaults",
|
||||
],
|
||||
|
@ -34,7 +35,6 @@ cc_defaults {
|
|||
"libcrypto",
|
||||
],
|
||||
static_libs: [
|
||||
"android.hardware.security.keymint-V1-ndk",
|
||||
"android.hardware.security.secureclock-V1-ndk",
|
||||
"libcppbor_external",
|
||||
"libcppcose_rkp",
|
||||
|
|
|
@ -27,6 +27,7 @@ cc_benchmark {
|
|||
name: "VtsAidlKeyMintBenchmarkTest",
|
||||
defaults: [
|
||||
"VtsHalTargetTestDefaults",
|
||||
"keymint_use_latest_hal_aidl_ndk_static",
|
||||
"use_libaidlvintf_gtest_helper_static",
|
||||
],
|
||||
srcs: [
|
||||
|
@ -39,7 +40,6 @@ cc_benchmark {
|
|||
"libkeymint_support",
|
||||
],
|
||||
static_libs: [
|
||||
"android.hardware.security.keymint-V1-ndk",
|
||||
"android.hardware.security.secureclock-V1-ndk",
|
||||
"libcppbor_external",
|
||||
"libchrome",
|
||||
|
|
|
@ -40,8 +40,10 @@ cc_library {
|
|||
export_include_dirs: [
|
||||
"include",
|
||||
],
|
||||
defaults: [
|
||||
"keymint_use_latest_hal_aidl_ndk_shared",
|
||||
],
|
||||
shared_libs: [
|
||||
"android.hardware.security.keymint-V1-ndk",
|
||||
"libbase",
|
||||
"libcrypto",
|
||||
"libutils",
|
||||
|
|
|
@ -27,6 +27,7 @@ cc_test {
|
|||
name: "VtsAidlSecureClockTargetTest",
|
||||
defaults: [
|
||||
"VtsHalTargetTestDefaults",
|
||||
"keymint_use_latest_hal_aidl_ndk_static",
|
||||
"use_libaidlvintf_gtest_helper_static",
|
||||
],
|
||||
cflags: [
|
||||
|
@ -41,7 +42,6 @@ cc_test {
|
|||
"libcrypto",
|
||||
],
|
||||
static_libs: [
|
||||
"android.hardware.security.keymint-V1-ndk",
|
||||
"android.hardware.security.secureclock-V1-ndk",
|
||||
"libkeymint",
|
||||
],
|
||||
|
|
|
@ -27,6 +27,7 @@ cc_test {
|
|||
name: "VtsAidlSharedSecretTargetTest",
|
||||
defaults: [
|
||||
"VtsHalTargetTestDefaults",
|
||||
"keymint_use_latest_hal_aidl_ndk_static",
|
||||
"use_libaidlvintf_gtest_helper_static",
|
||||
],
|
||||
srcs: [
|
||||
|
@ -41,7 +42,6 @@ cc_test {
|
|||
"libcrypto",
|
||||
],
|
||||
static_libs: [
|
||||
"android.hardware.security.keymint-V1-ndk",
|
||||
"android.hardware.security.sharedsecret-V1-ndk",
|
||||
"libkeymint",
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue