1// 2// Copyright (C) 2018 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 17package { 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 26cc_defaults { 27 name: "libboot_control_defaults", 28 vendor: true, 29 recovery_available: true, 30 relative_install_path: "hw", 31 32 cflags: [ 33 "-D_FILE_OFFSET_BITS=64", 34 "-Werror", 35 "-Wall", 36 "-Wextra", 37 ], 38 39 shared_libs: [ 40 "android.hardware.boot@1.1", 41 "libbase", 42 "liblog", 43 ], 44 static_libs: [ 45 "libbootloader_message_vendor", 46 "libfstab", 47 ], 48} 49 50cc_library_static { 51 name: "libboot_control", 52 defaults: ["libboot_control_defaults"], 53 export_include_dirs: ["include"], 54 55 srcs: ["libboot_control.cpp"], 56} 57 58cc_library_shared { 59 name: "bootctrl.default", 60 defaults: ["libboot_control_defaults"], 61 62 srcs: ["legacy_boot_control.cpp"], 63 64 static_libs: [ 65 "libboot_control", 66 ], 67 shared_libs: [ 68 "libhardware", 69 ], 70} 71