Depend on KeyMint HAL via default

This allows for easier bumping of the KeyMint version level.

At the moment this change should have no effect: the same dependency
is used, just reached via a default rather than explicitly.

However, when the KeyMint version increases in the near future, using
this default should mean that no change is needed here: the default
definition will change to -V2 and this will be referenced here.

Test: TreeHugger
Change-Id: Ic250e5b91ee2b48cd7a05783ce21af16ae330ed1
This commit is contained in:
David Drysdale 2021-11-22 15:15:57 +00:00
parent e8e5b5bb28
commit c5b7d179c2
2 changed files with 6 additions and 3 deletions

View file

@ -29,7 +29,9 @@ cc_binary {
srcs: [
"gatekeeperd.cpp",
],
defaults: [
"keymint_use_latest_hal_aidl_ndk_shared",
],
shared_libs: [
"libbinder",
"libbinder_ndk",
@ -43,7 +45,6 @@ cc_binary {
"libhidlbase",
"android.hardware.gatekeeper@1.0",
"libgatekeeper_aidl",
"android.hardware.security.keymint-V1-ndk",
"android.security.authorization-ndk",
],

View file

@ -105,8 +105,10 @@ cc_binary {
"keymint/TrustySharedSecret.cpp",
"keymint/service.cpp",
],
defaults: [
"keymint_use_latest_hal_aidl_ndk_shared",
],
shared_libs: [
"android.hardware.security.keymint-V1-ndk",
"android.hardware.security.secureclock-V1-ndk",
"android.hardware.security.sharedsecret-V1-ndk",
"lib_android_keymaster_keymint_utils",