blob: 250cbb6b73557922f3647409ab28fa59993fdf87 [file] [log] [blame]
Tom Cherry600e8062017-05-12 17:08:20 -07001//
2// Copyright (C) 2017 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 Badour29be3f62021-02-12 18:00:57 -080017package {
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 "bootable_recovery_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["bootable_recovery_license"],
24}
25
Tao Bao7ae01692019-05-16 14:42:42 -070026cc_defaults {
27 name: "libbootloader_message_defaults",
Alessandro Astone5f442e52019-01-11 18:46:44 +010028 defaults: ["bootloader_message_offset_defaults"],
Tom Cherry600e8062017-05-12 17:08:20 -070029 srcs: ["bootloader_message.cpp"],
Chih-Hung Hsieh5aa77ca2017-10-02 11:44:52 -070030 cflags: [
Tianjie Xuc89d1e72017-08-28 14:15:07 -070031 "-Wall",
32 "-Werror",
33 ],
Tao Bao8ca32202018-07-25 13:05:14 -070034 shared_libs: [
Tom Cherry600e8062017-05-12 17:08:20 -070035 "libbase",
Tom Cherry600e8062017-05-12 17:08:20 -070036 ],
Tao Bao7ae01692019-05-16 14:42:42 -070037 static_libs: [
38 "libfstab",
39 ],
Tom Cherry600e8062017-05-12 17:08:20 -070040 export_include_dirs: ["include"],
Tao Bao7ae01692019-05-16 14:42:42 -070041}
42
Steven Moreland1dba6a82024-02-16 22:32:43 +000043cc_binary {
44 name: "misctrl",
45 shared_libs: [
46 "libbase",
47 "libbootloader_message",
48 "liblog",
49 ],
50 init_rc: ["misctrl.rc"],
51 srcs: ["misctrl_main.cpp"],
52}
53
Tao Bao7ae01692019-05-16 14:42:42 -070054cc_library {
55 name: "libbootloader_message",
56 defaults: [
57 "libbootloader_message_defaults",
58 ],
59 recovery_available: true,
Kelvin Zhang6f689642022-08-30 00:24:40 +000060 vendor_available: true,
Tao Bao7ae01692019-05-16 14:42:42 -070061 host_supported: true,
David Andersonba882c72024-10-02 20:20:31 -070062 ramdisk_available: true,
Yifan Hongd83070d2019-05-01 13:12:57 -070063
64 target: {
Yifan Hongd83070d2019-05-01 13:12:57 -070065 host: {
66 shared_libs: [
67 "libcutils", // for strlcpy
68 ],
Colin Crossfb68d382019-05-06 09:48:15 -070069 },
70 darwin: {
71 enabled: false,
72 },
Yifan Hongd83070d2019-05-01 13:12:57 -070073 }
Tom Cherry600e8062017-05-12 17:08:20 -070074}
Tao Bao7ae01692019-05-16 14:42:42 -070075
76cc_library_static {
77 name: "libbootloader_message_vendor",
78 defaults: [
79 "libbootloader_message_defaults",
80 ],
81 vendor: true,
David Andersonf7714842019-08-29 13:47:45 -070082 recovery_available: true,
Tao Bao7ae01692019-05-16 14:42:42 -070083}