blob: 2fd2dad6151f8a7746b0bb4ac20c36b318f222c2 [file] [log] [blame]
Kelvin Zhang121bec52022-05-31 14:43:59 -07001//
2// Copyright (C) 2022 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Bob Badourd3d60652022-06-23 07:14:55 -070017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
Kelvin Zhang1cc82672022-08-26 19:25:30 +000026cc_defaults {
27 name: "android.hardware.boot-service_common",
Kelvin Zhang121bec52022-05-31 14:43:59 -070028 relative_install_path: "hw",
Kelvin Zhang1cc82672022-08-26 19:25:30 +000029 defaults: ["libboot_control_defaults"],
Jooyung Hanc8298362023-10-04 01:03:45 +000030 srcs: [
31 "main.cpp",
32 "BootControl.cpp",
33 ],
34}
35
36cc_binary {
37 name: "android.hardware.boot-service.default",
38 defaults: ["android.hardware.boot-service_common"],
39 vendor: true,
40
41 stl: "c++_static",
42 shared_libs: [
43 "libbinder_ndk",
44 "liblog",
45 ],
46 static_libs: [
47 "android.hardware.boot@1.1",
48 "android.hardware.boot-V1-ndk",
49 "libbase",
50 "libboot_control",
51 ],
52
53 installable: false, // installed in APEX
54}
55
56cc_binary {
57 name: "android.hardware.boot-service.default_recovery",
58 defaults: ["android.hardware.boot-service_common"],
59 init_rc: ["android.hardware.boot-service.default_recovery.rc"],
Jihoon Kangcb385132024-12-24 02:22:25 +000060 vintf_fragment_modules: ["android.hardware.boot-service.default.xml.recovery"],
Jooyung Hanc8298362023-10-04 01:03:45 +000061 recovery: true,
62
Isaac Chioue5687ce2023-09-28 07:26:41 +000063 shared_libs: [
64 "libbase",
65 "libbinder_ndk",
66 "android.hardware.boot@1.1",
67 "android.hardware.boot-V1-ndk",
Jooyung Hanac5383d2023-09-19 15:16:07 +090068 ],
Isaac Chioue5687ce2023-09-28 07:26:41 +000069 static_libs: [
70 "libboot_control",
71 ],
Jooyung Hanac5383d2023-09-19 15:16:07 +090072}
73
Jooyung Hanc8298362023-10-04 01:03:45 +000074prebuilt_etc {
75 name: "android.hardware.boot-service.default.rc",
76 src: "android.hardware.boot-service.default.rc",
77 installable: false,
78}
79
Jihoon Kangcb385132024-12-24 02:22:25 +000080vintf_fragment {
81 name: "android.hardware.boot-service.default.xml.recovery",
82 src: "android.hardware.boot-service.default.xml",
83 recovery: true,
84}
85
86vintf_fragment {
Jooyung Hanc8298362023-10-04 01:03:45 +000087 name: "android.hardware.boot-service.default.xml",
88 src: "android.hardware.boot-service.default.xml",
Jihoon Kangcb385132024-12-24 02:22:25 +000089 vendor: true,
Jooyung Hanc8298362023-10-04 01:03:45 +000090}
91
92apex {
93 name: "com.android.hardware.boot",
Jooyung Hanac5383d2023-09-19 15:16:07 +090094 vendor: true,
Jooyung Hanc8298362023-10-04 01:03:45 +000095 manifest: "apex_manifest.json",
96 file_contexts: "apex_file_contexts",
97 key: "com.android.hardware.key",
98 certificate: ":com.android.hardware.certificate",
99 updatable: false,
Jooyung Hanac5383d2023-09-19 15:16:07 +0900100
Jooyung Hanc8298362023-10-04 01:03:45 +0000101 binaries: [
102 "android.hardware.boot-service.default",
103 ],
104 prebuilts: [
105 "android.hardware.boot-service.default.rc",
Jihoon Kangcb385132024-12-24 02:22:25 +0000106 ],
107 vintf_fragment_modules: [
Jooyung Hanc8298362023-10-04 01:03:45 +0000108 "android.hardware.boot-service.default.xml",
109 ],
Kelvin Zhang1cc82672022-08-26 19:25:30 +0000110}