blob: 953630ba85e6b8506e2f33c99a20ea4313b5eefe [file] [log] [blame]
Bob Badourb224b362021-02-12 20:13:01 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "hardware_interfaces_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
Shawn Willden08a7e432020-12-11 13:05:27 +000010cc_binary {
11 name: "android.hardware.security.keymint-service",
12 relative_install_path: "hw",
13 init_rc: ["android.hardware.security.keymint-service.rc"],
Chirag Pathak8960aae2021-01-25 21:37:06 +000014 vintf_fragments: [
15 "android.hardware.security.keymint-service.xml",
16 "android.hardware.security.sharedsecret-service.xml",
17 "android.hardware.security.secureclock-service.xml",
18 ],
Shawn Willden08a7e432020-12-11 13:05:27 +000019 vendor: true,
20 cflags: [
21 "-Wall",
22 "-Wextra",
23 ],
David Drysdale49255342021-11-22 14:32:31 +000024 defaults: [
25 "keymint_use_latest_hal_aidl_ndk_shared",
26 ],
Shawn Willden08a7e432020-12-11 13:05:27 +000027 shared_libs: [
Seth Moore41e97f02022-11-04 17:39:05 +000028 "android.hardware.security.rkp-V3-ndk",
Jiyong Park27f77fe2021-07-27 12:16:52 +090029 "android.hardware.security.sharedsecret-V1-ndk",
30 "android.hardware.security.secureclock-V1-ndk",
Shawn Willden08a7e432020-12-11 13:05:27 +000031 "libbase",
32 "libbinder_ndk",
Shawn Willden274bb552020-09-30 22:39:22 -060033 "libcppbor_external",
Shawn Willden08a7e432020-12-11 13:05:27 +000034 "libcrypto",
35 "libkeymaster_portable",
36 "libkeymint",
37 "liblog",
38 "libpuresoftkeymasterdevice",
39 "libutils",
40 ],
41 srcs: [
42 "service.cpp",
43 ],
David Zeuthen7f8ccb52021-03-10 14:40:17 -050044 required: [
David Zeuthen7f8ccb52021-03-10 14:40:17 -050045 "android.hardware.hardware_keystore.xml",
46 ],
47}
48
49prebuilt_etc {
50 name: "android.hardware.hardware_keystore.xml",
51 sub_dir: "permissions",
52 vendor: true,
53 src: "android.hardware.hardware_keystore.xml",
Shawn Willden08a7e432020-12-11 13:05:27 +000054}