blob: a3ce879a95fb932076b633320ba05b7dcc776654 [file] [log] [blame]
Tom Cherry37b5ada2017-05-12 17:05:22 -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
17cc_defaults {
18 name: "fs_mgr_defaults",
19 sanitize: {
20 misc_undefined: ["integer"],
21 },
22 local_include_dirs: ["include/"],
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070023 cflags: [
24 "-Wall",
25 "-Werror",
26 "-Wno-unused-variable",
27 ],
Bowgo Tsai80281892017-12-12 00:47:43 +080028 cppflags: [
29 "-std=gnu++1z",
30 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070031}
32
33cc_library_static {
34 name: "libfs_mgr",
35 defaults: ["fs_mgr_defaults"],
Jiyong Parka0e75042018-05-24 14:11:00 +090036 recovery_available: true,
Tom Cherry37b5ada2017-05-12 17:05:22 -070037 export_include_dirs: ["include"],
38 include_dirs: ["system/vold"],
39 srcs: [
40 "fs_mgr.cpp",
Tom Cherry37b5ada2017-05-12 17:05:22 -070041 "fs_mgr_format.cpp",
Tom Cherry37b5ada2017-05-12 17:05:22 -070042 "fs_mgr_verity.cpp",
43 "fs_mgr_avb.cpp",
44 "fs_mgr_avb_ops.cpp",
David Anderson62e5b202018-05-01 17:09:17 -070045 "fs_mgr_dm_linear.cpp",
Jiyong Parke7df1f72017-06-28 11:17:30 +090046 ],
47 static_libs: [
Jiyong Parke7df1f72017-06-28 11:17:30 +090048 "libfec",
49 "libfec_rs",
50 "libbase",
51 "libcrypto_utils",
52 "libcrypto",
53 "libext4_utils",
54 "libsquashfs_utils",
55 "libselinux",
56 "libavb",
57 "libfstab",
Sandeep Patil59f04ee2018-05-30 13:46:55 -070058 "libdm",
David Andersonea3b8ac2018-06-07 15:36:09 -070059 "liblp",
Jiyong Parke7df1f72017-06-28 11:17:30 +090060 ],
61 export_static_lib_headers: [
62 "libfstab",
Sandeep Patil59f04ee2018-05-30 13:46:55 -070063 "libdm",
David Andersonea3b8ac2018-06-07 15:36:09 -070064 "liblp",
Jiyong Parke7df1f72017-06-28 11:17:30 +090065 ],
66 whole_static_libs: [
David Andersonea3b8ac2018-06-07 15:36:09 -070067 "liblp",
Jin Qian42d81372017-04-21 16:56:34 -070068 "liblogwrap",
Sandeep Patil59f04ee2018-05-30 13:46:55 -070069 "libdm",
Jiyong Parke7df1f72017-06-28 11:17:30 +090070 "libfstab",
Tom Cherry37b5ada2017-05-12 17:05:22 -070071 ],
Tom Cherry31121ca2017-10-10 13:30:57 -070072 cppflags: [
Tom Cherry31121ca2017-10-10 13:30:57 -070073 "-DALLOW_ADBD_DISABLE_VERITY=0",
74 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070075 product_variables: {
76 debuggable: {
Tom Cherry31121ca2017-10-10 13:30:57 -070077 cppflags: [
78 "-UALLOW_ADBD_DISABLE_VERITY",
79 "-DALLOW_ADBD_DISABLE_VERITY=1",
80 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070081 },
Tom Cherry37b5ada2017-05-12 17:05:22 -070082 },
83}
Jiyong Parke7df1f72017-06-28 11:17:30 +090084
85cc_library_static {
86 name: "libfstab",
87 vendor_available: true,
Jiyong Parka0e75042018-05-24 14:11:00 +090088 recovery_available: true,
Jiyong Parke7df1f72017-06-28 11:17:30 +090089 defaults: ["fs_mgr_defaults"],
90 srcs: [
91 "fs_mgr_fstab.cpp",
92 "fs_mgr_boot_config.cpp",
93 "fs_mgr_slotselect.cpp",
94 ],
95 export_include_dirs: ["include_fstab"],
96 header_libs: ["libbase_headers"],
97}