| // Copyright (C) 2020 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| // |
| |
| package { |
| default_applicable_licenses: [ |
| "external_libese_ready_se_google_keymint_KM300_HAL_license", |
| ], |
| } |
| |
| // Added automatically by a large-scale-change |
| // See: http://go/android-license-faq |
| license { |
| name: "external_libese_ready_se_google_keymint_KM300_HAL_license", |
| visibility: [":__subpackages__"], |
| license_kinds: [ |
| "SPDX-license-identifier-Apache-2.0", |
| ], |
| license_text: [ |
| "LICENSE", |
| ], |
| } |
| |
| cc_library { |
| name: "libjc_keymint3", |
| defaults: [ |
| "keymaster_defaults", |
| "keymint_use_latest_hal_aidl_ndk_shared", |
| ], |
| srcs: [ |
| "CborConverter.cpp", |
| "JavacardKeyMintDevice.cpp", |
| "JavacardKeyMintOperation.cpp", |
| "JavacardRemotelyProvisionedComponentDevice.cpp", |
| "JavacardSecureElement.cpp", |
| "JavacardSharedSecret.cpp", |
| "keymint_utils.cpp", |
| ], |
| cflags: ["-O0"], |
| shared_libs: [ |
| "android.hardware.security.secureclock-V1-ndk", |
| "android.hardware.security.sharedsecret-V1-ndk", |
| "android.hardware.security.rkp-V3-ndk", |
| "lib_android_keymaster_keymint_utils", |
| "libbase", |
| "libcppbor_external", |
| "libkeymaster_portable", |
| "libkeymaster_messages", |
| "libsoft_attestation_cert", |
| "liblog", |
| "libcrypto", |
| "libcutils", |
| "libjc_keymint_transport", |
| "libbinder_ndk", |
| ], |
| export_include_dirs: [ |
| ".", |
| ], |
| vendor_available: true, |
| } |
| |
| cc_binary { |
| name: "android.hardware.security.keymint3-service.strongbox", |
| relative_install_path: "hw", |
| init_rc: ["android.hardware.security.keymint3-service.strongbox.rc"], |
| vintf_fragments: [ |
| "android.hardware.security.keymint3-service.strongbox.xml", |
| "android.hardware.security.sharedsecret3-service.strongbox.xml", |
| ], |
| vendor: true, |
| cflags: [ |
| "-Wall", |
| "-Wextra", |
| ], |
| defaults: [ |
| "keymint_use_latest_hal_aidl_ndk_shared", |
| ], |
| shared_libs: [ |
| "android.hardware.security.sharedsecret-V1-ndk", |
| "lib_android_keymaster_keymint_utils", |
| "android.hardware.security.rkp-V3-ndk", |
| "libbase", |
| "libbinder_ndk", |
| "libcppbor_external", |
| "libcrypto", |
| "libkeymaster_portable", |
| "libjc_keymint3", |
| "libjc_keymint_transport", |
| "liblog", |
| "libutils", |
| "android.se.omapi-V1-ndk", |
| ], |
| srcs: [ |
| "service.cpp", |
| ], |
| required: [ |
| "android.hardware.hardware_keystore.jc-strongbox-keymint3.xml", |
| ], |
| } |
| |
| prebuilt_etc { |
| name: "android.hardware.hardware_keystore.jc-strongbox-keymint3.xml", |
| sub_dir: "permissions", |
| vendor: true, |
| src: "android.hardware.hardware_keystore.jc-strongbox-keymint3.xml", |
| } |