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 | |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 10 | aidl_interface { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 11 | name: "android.hardware.security.keymint", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 12 | vendor_available: true, |
| 13 | srcs: [ |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 14 | "android/hardware/security/keymint/*.aidl", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 15 | ], |
Janis Danisevskis | 6251827 | 2021-01-05 09:15:57 -0800 | [diff] [blame] | 16 | imports: [ |
Steven Moreland | f456221 | 2021-08-30 17:54:19 -0700 | [diff] [blame] | 17 | "android.hardware.security.secureclock-V1", |
Janis Danisevskis | 6251827 | 2021-01-05 09:15:57 -0800 | [diff] [blame] | 18 | ], |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 19 | stability: "vintf", |
Devin Moore | 7556e51 | 2022-11-04 15:31:23 +0000 | [diff] [blame] | 20 | frozen: false, |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 21 | backend: { |
| 22 | java: { |
Janis Danisevskis | 61eadb7 | 2021-03-17 10:55:10 -0700 | [diff] [blame] | 23 | platform_apis: true, |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 24 | }, |
| 25 | ndk: { |
Janis Danisevskis | 3829840 | 2021-03-17 11:00:15 -0700 | [diff] [blame] | 26 | apps_enabled: false, |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 27 | }, |
| 28 | rust: { |
| 29 | enabled: true, |
Alan Stokes | e758517 | 2021-06-17 11:49:40 +0100 | [diff] [blame] | 30 | apex_available: [ |
| 31 | "//apex_available:platform", |
| 32 | "com.android.compos", |
| 33 | ], |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 34 | }, |
| 35 | }, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 36 | versions_with_info: [ |
| 37 | { |
| 38 | version: "1", |
| 39 | imports: ["android.hardware.security.secureclock-V1"], |
| 40 | }, |
| 41 | { |
| 42 | version: "2", |
| 43 | imports: ["android.hardware.security.secureclock-V1"], |
| 44 | }, |
| 45 | |
| 46 | ], |
| 47 | |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 48 | } |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 49 | |
| 50 | // cc_defaults that includes the latest KeyMint AIDL library. |
| 51 | // Modules that depend on KeyMint directly can include this cc_defaults to avoid |
| 52 | // managing dependency versions explicitly. |
| 53 | cc_defaults { |
| 54 | name: "keymint_use_latest_hal_aidl_ndk_static", |
| 55 | static_libs: [ |
Tri Vo | f48a2a7 | 2022-09-29 16:14:53 -0700 | [diff] [blame] | 56 | "android.hardware.security.keymint-V3-ndk", |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 57 | ], |
| 58 | } |
| 59 | |
| 60 | cc_defaults { |
| 61 | name: "keymint_use_latest_hal_aidl_ndk_shared", |
| 62 | shared_libs: [ |
Tri Vo | f48a2a7 | 2022-09-29 16:14:53 -0700 | [diff] [blame] | 63 | "android.hardware.security.keymint-V3-ndk", |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 64 | ], |
| 65 | } |
| 66 | |
Seth Moore | 1bf823c | 2022-01-25 23:04:37 +0000 | [diff] [blame] | 67 | cc_defaults { |
| 68 | name: "keymint_use_latest_hal_aidl_cpp_static", |
| 69 | static_libs: [ |
Tri Vo | f48a2a7 | 2022-09-29 16:14:53 -0700 | [diff] [blame] | 70 | "android.hardware.security.keymint-V3-cpp", |
Seth Moore | 1bf823c | 2022-01-25 23:04:37 +0000 | [diff] [blame] | 71 | ], |
| 72 | } |
| 73 | |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 74 | // A rust_defaults that includes the latest KeyMint AIDL library. |
| 75 | // Modules that depend on KeyMint directly can include this cc_defaults to avoid |
| 76 | // managing dependency versions explicitly. |
| 77 | rust_defaults { |
| 78 | name: "keymint_use_latest_hal_aidl_rust", |
| 79 | rustlibs: [ |
Tri Vo | f48a2a7 | 2022-09-29 16:14:53 -0700 | [diff] [blame] | 80 | "android.hardware.security.keymint-V3-rust", |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 81 | ], |
| 82 | } |