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:
David Drysdale 2021-12-02 08:33:48 +00:00 committed by Automerger Merge Worker
commit 5a903ea23a
7 changed files with 37 additions and 6 deletions

View file

@ -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",
],
}

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",
],

View file

@ -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",
],