Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 1 | package { |
| 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 Drysdale | 30196cf | 2023-12-02 19:24:15 +0000 | [diff] [blame^] | 10 | rust_binary { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 11 | name: "android.hardware.security.keymint-service", |
| 12 | relative_install_path: "hw", |
David Drysdale | 30196cf | 2023-12-02 19:24:15 +0000 | [diff] [blame^] | 13 | vendor: true, |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 14 | init_rc: ["android.hardware.security.keymint-service.rc"], |
Chirag Pathak | 8960aae | 2021-01-25 21:37:06 +0000 | [diff] [blame] | 15 | 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 Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 20 | defaults: [ |
David Drysdale | 30196cf | 2023-12-02 19:24:15 +0000 | [diff] [blame^] | 21 | "keymint_use_latest_hal_aidl_rust", |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 22 | ], |
| 23 | srcs: [ |
David Drysdale | 30196cf | 2023-12-02 19:24:15 +0000 | [diff] [blame^] | 24 | "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 Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 33 | ], |
David Zeuthen | 7f8ccb5 | 2021-03-10 14:40:17 -0500 | [diff] [blame] | 34 | required: [ |
David Zeuthen | 7f8ccb5 | 2021-03-10 14:40:17 -0500 | [diff] [blame] | 35 | "android.hardware.hardware_keystore.xml", |
| 36 | ], |
| 37 | } |
| 38 | |
| 39 | prebuilt_etc { |
| 40 | name: "android.hardware.hardware_keystore.xml", |
| 41 | sub_dir: "permissions", |
| 42 | vendor: true, |
| 43 | src: "android.hardware.hardware_keystore.xml", |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 44 | } |
David Drysdale | 30196cf | 2023-12-02 19:24:15 +0000 | [diff] [blame^] | 45 | |
| 46 | rust_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 | |
| 63 | rust_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 | } |