Jason Chiu | 5d247d1 | 2023-11-27 16:42:44 +0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 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 | soong_namespace { |
| 17 | imports: [ |
| 18 | "hardware/google/pixel", |
| 19 | ], |
| 20 | } |
| 21 | |
| 22 | package { |
| 23 | // See: http://go/android-license-faq |
| 24 | // A large-scale-change added 'default_applicable_licenses' to import |
| 25 | // all of the 'license_kinds' from "//device/google/gs-common:device_google_gs-common_license" |
| 26 | // to get the below license kinds: |
| 27 | // SPDX-license-identifier-Apache-2.0 |
| 28 | default_applicable_licenses: [ |
| 29 | "//device/google/gs-common:device_google_gs-common_license", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | cc_binary { |
| 34 | name: "android.hardware.boot@1.2-service-pixel", |
| 35 | defaults: ["hidl_defaults"], |
| 36 | relative_install_path: "hw", |
| 37 | vendor: true, |
| 38 | init_rc: ["android.hardware.boot@1.2-service-pixel.rc"], |
| 39 | srcs: [ |
| 40 | "BootControl.cpp", |
| 41 | "GptUtils.cpp", |
| 42 | "service.cpp" |
| 43 | ], |
| 44 | shared_libs: [ |
| 45 | "libbase", |
| 46 | "liblog", |
| 47 | "libhidlbase", |
| 48 | "libutils", |
| 49 | "libcutils", |
| 50 | "libz", |
| 51 | "libtrusty", |
| 52 | "android.hardware.boot@1.0", |
| 53 | "android.hardware.boot@1.1", |
| 54 | "android.hardware.boot@1.2", |
| 55 | ], |
| 56 | static_libs: [ |
| 57 | "libboot_control", |
| 58 | "libbootloader_message_vendor", |
| 59 | "libfstab", |
| 60 | ], |
| 61 | } |
| 62 | |
| 63 | cc_library { |
| 64 | name: "android.hardware.boot@1.2-impl-pixel", |
| 65 | stem: "android.hardware.boot@1.0-impl-1.2-impl-pixel", |
| 66 | recovery: true, |
| 67 | srcs: [ |
| 68 | "BootControl.cpp", |
| 69 | "GptUtils.cpp", |
| 70 | ], |
| 71 | relative_install_path: "hw", |
| 72 | shared_libs: [ |
| 73 | "libbase", |
| 74 | "liblog", |
| 75 | "libhidlbase", |
| 76 | "libutils", |
| 77 | "libcutils", |
| 78 | "libz", |
| 79 | "libtrusty", |
| 80 | "android.hardware.boot@1.0", |
| 81 | "android.hardware.boot@1.1", |
| 82 | "android.hardware.boot@1.2", |
| 83 | ], |
| 84 | static_libs: [ |
| 85 | "libboot_control", |
| 86 | "libbootloader_message_vendor", |
| 87 | "libfstab", |
| 88 | ], |
| 89 | } |