blob: f5ba5030433a1013884e105f8fc95762f52d1240 [file] [log] [blame]
Jason Chiu33031712023-11-27 16:52:08 +08001//
2// Copyright (C) 2023 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
17soong_namespace {
18 imports: [
19 "hardware/google/pixel",
20 ],
21}
22
23package {
24 // See: http://go/android-license-faq
25 // A large-scale-change added 'default_applicable_licenses' to import
26 // all of the 'license_kinds' from "//device/google/gs-common:device_google_gs-common_license"
27 // to get the below license kinds:
28 // SPDX-license-identifier-Apache-2.0
29 default_applicable_licenses: [
30 "//device/google/gs-common:device_google_gs-common_license",
31 ],
32}
33
34cc_defaults {
35 name: "android.hardware.boot-service_common-pixel",
36 relative_install_path: "hw",
37 defaults: ["libboot_control_defaults"],
38 shared_libs: [
39 "libbase",
40 "libbinder_ndk",
41 "libcutils",
42 "libz",
43 "libtrusty",
44 "android.hardware.boot@1.1",
45 "android.hardware.boot-V1-ndk",
46 ],
47 static_libs: [
48 "libboot_control",
49 "libbootloader_message_vendor",
50 ],
51 srcs: [
52 "BootControl.cpp",
53 "GptUtils.cpp",
54 "service.cpp"
55 ],
56}
57
58cc_binary {
59 name: "android.hardware.boot-service.default-pixel",
60 defaults: ["android.hardware.boot-service_common-pixel"],
61 init_rc: ["android.hardware.boot-service.default-pixel.rc"],
62 vendor: true,
63}
64
65cc_binary {
66 name: "android.hardware.boot-service.default_recovery-pixel",
67 defaults: ["android.hardware.boot-service_common-pixel"],
68 vintf_fragments: ["android.hardware.boot-service.default_recovery-pixel.xml"],
69 init_rc: ["android.hardware.boot-service.default_recovery-pixel.rc"],
70 recovery: true,
71}