blob: 2f530efb465894afd2147c4eeaeff72ea7c9a4b1 [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/"],
23 cppflags: ["-Werror"],
Tom Cherry37b5ada2017-05-12 17:05:22 -070024}
25
26cc_library_static {
27 name: "libfs_mgr",
28 defaults: ["fs_mgr_defaults"],
29 export_include_dirs: ["include"],
30 include_dirs: ["system/vold"],
31 srcs: [
32 "fs_mgr.cpp",
33 "fs_mgr_dm_ioctl.cpp",
34 "fs_mgr_format.cpp",
Tom Cherry37b5ada2017-05-12 17:05:22 -070035 "fs_mgr_verity.cpp",
36 "fs_mgr_avb.cpp",
37 "fs_mgr_avb_ops.cpp",
Jiyong Parke7df1f72017-06-28 11:17:30 +090038 ],
39 static_libs: [
Jiyong Parke7df1f72017-06-28 11:17:30 +090040 "libfec",
41 "libfec_rs",
42 "libbase",
43 "libcrypto_utils",
44 "libcrypto",
45 "libext4_utils",
46 "libsquashfs_utils",
47 "libselinux",
48 "libavb",
49 "libfstab",
50 ],
51 export_static_lib_headers: [
52 "libfstab",
53 ],
54 whole_static_libs: [
Jin Qian42d81372017-04-21 16:56:34 -070055 "liblogwrap",
Jiyong Parke7df1f72017-06-28 11:17:30 +090056 "libfstab",
Tom Cherry37b5ada2017-05-12 17:05:22 -070057 ],
Tom Cherry31121ca2017-10-10 13:30:57 -070058 cppflags: [
59 "-DALLOW_SKIP_SECURE_CHECK=0",
60 "-DALLOW_ADBD_DISABLE_VERITY=0",
61 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070062 product_variables: {
63 debuggable: {
Tom Cherry31121ca2017-10-10 13:30:57 -070064 cppflags: [
65 "-UALLOW_ADBD_DISABLE_VERITY",
66 "-DALLOW_ADBD_DISABLE_VERITY=1",
67 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070068 },
69 eng: {
Tom Cherry31121ca2017-10-10 13:30:57 -070070 cppflags: [
71 "-UALLOW_SKIP_SECURE_CHECK",
72 "-DALLOW_SKIP_SECURE_CHECK=1",
73 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070074 },
75 },
76}
Jiyong Parke7df1f72017-06-28 11:17:30 +090077
78cc_library_static {
79 name: "libfstab",
80 vendor_available: true,
81 defaults: ["fs_mgr_defaults"],
82 srcs: [
83 "fs_mgr_fstab.cpp",
84 "fs_mgr_boot_config.cpp",
85 "fs_mgr_slotselect.cpp",
86 ],
87 export_include_dirs: ["include_fstab"],
88 header_libs: ["libbase_headers"],
89}