2017-05-06 02:16:10 +02:00
|
|
|
//
|
|
|
|
// Copyright (C) 2015 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.
|
|
|
|
//
|
|
|
|
|
2021-02-17 04:02:14 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2018-07-30 23:54:58 +02:00
|
|
|
cc_binary {
|
|
|
|
name: "android.hardware.keymaster@3.0-service.trusty",
|
|
|
|
defaults: ["hidl_defaults"],
|
|
|
|
relative_install_path: "hw",
|
|
|
|
vendor: true,
|
|
|
|
init_rc: ["3.0/android.hardware.keymaster@3.0-service.trusty.rc"],
|
|
|
|
srcs: [
|
|
|
|
"3.0/service.cpp",
|
|
|
|
"3.0/TrustyKeymaster3Device.cpp",
|
|
|
|
"ipc/trusty_keymaster_ipc.cpp",
|
|
|
|
"TrustyKeymaster.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"liblog",
|
|
|
|
"libcutils",
|
|
|
|
"libdl",
|
|
|
|
"libbase",
|
|
|
|
"libutils",
|
|
|
|
"libhardware",
|
|
|
|
"libhidlbase",
|
|
|
|
"libtrusty",
|
|
|
|
"libkeymaster_messages",
|
|
|
|
"libkeymaster3device",
|
|
|
|
"android.hardware.keymaster@3.0"
|
|
|
|
],
|
|
|
|
}
|
2019-03-18 21:59:28 +01:00
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "android.hardware.keymaster@4.0-service.trusty",
|
|
|
|
defaults: ["hidl_defaults"],
|
|
|
|
relative_install_path: "hw",
|
|
|
|
vendor: true,
|
|
|
|
init_rc: ["4.0/android.hardware.keymaster@4.0-service.trusty.rc"],
|
|
|
|
srcs: [
|
|
|
|
"4.0/service.cpp",
|
|
|
|
"4.0/TrustyKeymaster4Device.cpp",
|
|
|
|
"ipc/trusty_keymaster_ipc.cpp",
|
|
|
|
"TrustyKeymaster.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"liblog",
|
|
|
|
"libcutils",
|
|
|
|
"libdl",
|
|
|
|
"libbase",
|
|
|
|
"libutils",
|
|
|
|
"libhardware",
|
|
|
|
"libhidlbase",
|
|
|
|
"libtrusty",
|
|
|
|
"libkeymaster_messages",
|
|
|
|
"libkeymaster4",
|
|
|
|
"android.hardware.keymaster@4.0"
|
|
|
|
],
|
2019-08-26 19:47:51 +02:00
|
|
|
|
|
|
|
vintf_fragments: ["4.0/android.hardware.keymaster@4.0-service.trusty.xml"],
|
2019-03-18 21:59:28 +01:00
|
|
|
}
|
2020-09-02 01:38:40 +02:00
|
|
|
|
2021-04-22 21:32:56 +02:00
|
|
|
cc_binary {
|
|
|
|
name: "android.hardware.security.keymint-service.trusty",
|
|
|
|
relative_install_path: "hw",
|
|
|
|
init_rc: ["keymint/android.hardware.security.keymint-service.trusty.rc"],
|
|
|
|
vintf_fragments: [
|
|
|
|
"keymint/android.hardware.security.keymint-service.trusty.xml",
|
|
|
|
],
|
|
|
|
vendor: true,
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Wextra",
|
|
|
|
],
|
|
|
|
local_include_dirs: [
|
|
|
|
"include",
|
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"TrustyKeymaster.cpp",
|
|
|
|
"ipc/trusty_keymaster_ipc.cpp",
|
|
|
|
"keymint/TrustyKeyMintDevice.cpp",
|
|
|
|
"keymint/TrustyKeyMintOperation.cpp",
|
2021-06-10 02:40:54 +02:00
|
|
|
"keymint/TrustyRemotelyProvisionedComponentDevice.cpp",
|
2021-04-22 21:32:56 +02:00
|
|
|
"keymint/TrustySecureClock.cpp",
|
|
|
|
"keymint/TrustySharedSecret.cpp",
|
|
|
|
"keymint/service.cpp",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
2021-07-27 05:19:00 +02:00
|
|
|
"android.hardware.security.keymint-V1-ndk",
|
|
|
|
"android.hardware.security.secureclock-V1-ndk",
|
|
|
|
"android.hardware.security.sharedsecret-V1-ndk",
|
2021-04-22 21:32:56 +02:00
|
|
|
"lib_android_keymaster_keymint_utils",
|
|
|
|
"libbase",
|
|
|
|
"libbinder_ndk",
|
|
|
|
"libhardware",
|
|
|
|
"libkeymaster_messages",
|
|
|
|
"libkeymint",
|
|
|
|
"liblog",
|
|
|
|
"libtrusty",
|
2021-09-04 02:41:04 +02:00
|
|
|
"libutils",
|
2021-04-22 21:32:56 +02:00
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"android.hardware.hardware_keystore.xml",
|
2021-08-06 14:55:15 +02:00
|
|
|
"RemoteProvisioner",
|
2021-04-22 21:32:56 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2020-09-02 01:38:40 +02:00
|
|
|
prebuilt_etc {
|
|
|
|
name: "keymaster_soft_attestation_keys.xml",
|
|
|
|
vendor: true,
|
|
|
|
src: "set_attestation_key/keymaster_soft_attestation_keys.xml",
|
|
|
|
}
|
|
|
|
|
2021-06-15 21:13:04 +02:00
|
|
|
cc_library {
|
|
|
|
name: "libtrusty_ipc",
|
|
|
|
vendor: true,
|
|
|
|
srcs: ["ipc/trusty_keymaster_ipc.cpp"],
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
shared_libs: [
|
|
|
|
"libc",
|
|
|
|
"libcrypto",
|
|
|
|
"liblog",
|
|
|
|
"libtrusty",
|
|
|
|
"libhardware",
|
|
|
|
"libkeymaster_messages",
|
2021-09-04 02:41:04 +02:00
|
|
|
"libutils",
|
2021-06-15 21:13:04 +02:00
|
|
|
"libxml2",
|
|
|
|
],
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2020-09-02 01:38:40 +02:00
|
|
|
cc_binary {
|
|
|
|
name: "trusty_keymaster_set_attestation_key",
|
|
|
|
vendor: true,
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"set_attestation_key/set_attestation_key.cpp",
|
|
|
|
"ipc/trusty_keymaster_ipc.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libc",
|
|
|
|
"libcrypto",
|
|
|
|
"liblog",
|
|
|
|
"libtrusty",
|
|
|
|
"libhardware",
|
|
|
|
"libkeymaster_messages",
|
2021-09-04 02:41:04 +02:00
|
|
|
"libutils",
|
2020-09-02 01:38:40 +02:00
|
|
|
"libxml2",
|
|
|
|
],
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
],
|
|
|
|
}
|