blob: d815ff7347591e18061dd1c597cd5300e5df5b32 [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
David Drysdale30196cf2023-12-02 19:24:15 +000010rust_binary {
Shawn Willden08a7e432020-12-11 13:05:27 +000011 name: "android.hardware.security.keymint-service",
12 relative_install_path: "hw",
David Drysdale30196cf2023-12-02 19:24:15 +000013 vendor: true,
Shawn Willden08a7e432020-12-11 13:05:27 +000014 init_rc: ["android.hardware.security.keymint-service.rc"],
Chirag Pathak8960aae2021-01-25 21:37:06 +000015 vintf_fragments: [
16 "android.hardware.security.keymint-service.xml",
17 "android.hardware.security.sharedsecret-service.xml",
18 "android.hardware.security.secureclock-service.xml",
19 ],
David Drysdale49255342021-11-22 14:32:31 +000020 defaults: [
David Drysdale30196cf2023-12-02 19:24:15 +000021 "keymint_use_latest_hal_aidl_rust",
Shawn Willden08a7e432020-12-11 13:05:27 +000022 ],
23 srcs: [
David Drysdale30196cf2023-12-02 19:24:15 +000024 "main.rs",
25 ],
26 rustlibs: [
27 "libandroid_logger",
28 "libbinder_rs",
29 "liblog_rust",
30 "libkmr_hal",
31 "libkmr_hal_nonsecure",
32 "libkmr_ta_nonsecure",
Shawn Willden08a7e432020-12-11 13:05:27 +000033 ],
David Zeuthen7f8ccb52021-03-10 14:40:17 -050034 required: [
David Zeuthen7f8ccb52021-03-10 14:40:17 -050035 "android.hardware.hardware_keystore.xml",
36 ],
37}
38
39prebuilt_etc {
40 name: "android.hardware.hardware_keystore.xml",
41 sub_dir: "permissions",
42 vendor: true,
43 src: "android.hardware.hardware_keystore.xml",
Shawn Willden08a7e432020-12-11 13:05:27 +000044}
David Drysdale30196cf2023-12-02 19:24:15 +000045
46rust_library {
47 name: "libkmr_hal_nonsecure",
48 crate_name: "kmr_hal_nonsecure",
49 vendor_available: true,
50 lints: "android",
51 rustlibs: [
52 "libbinder_rs",
53 "libhex",
54 "liblibc",
55 "liblog_rust",
56 "libkmr_hal",
57 "libkmr_wire",
58 ],
59 srcs: ["hal/lib.rs"],
60
61}
62
63rust_library {
64 name: "libkmr_ta_nonsecure",
65 crate_name: "kmr_ta_nonsecure",
66 vendor_available: true,
67 host_supported: true,
68 lints: "android",
69 rustlibs: [
70 "libhex",
71 "liblibc",
72 "liblog_rust",
73 "libkmr_common",
74 "libkmr_crypto_boring",
75 "libkmr_ta",
76 "libkmr_wire",
77 ],
78 srcs: ["ta/lib.rs"],
79
80}