summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'fs_mgr/Android.bp')
-rw-r--r--fs_mgr/Android.bp62
1 files changed, 62 insertions, 0 deletions
diff --git a/fs_mgr/Android.bp b/fs_mgr/Android.bp
new file mode 100644
index 000000000..0af615905
--- /dev/null
+++ b/fs_mgr/Android.bp
@@ -0,0 +1,62 @@
1//
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"],
24 static_libs: [
25 "liblogwrap",
26 "libfec",
27 "libfec_rs",
28 "libbase",
29 "libcrypto_utils",
30 "libcrypto",
31 "libext4_utils",
32 "libsquashfs_utils",
33 "libselinux",
34 "libavb",
35 ],
36}
37
38cc_library_static {
39 name: "libfs_mgr",
40 defaults: ["fs_mgr_defaults"],
41 export_include_dirs: ["include"],
42 include_dirs: ["system/vold"],
43 srcs: [
44 "fs_mgr.cpp",
45 "fs_mgr_dm_ioctl.cpp",
46 "fs_mgr_format.cpp",
47 "fs_mgr_fstab.cpp",
48 "fs_mgr_slotselect.cpp",
49 "fs_mgr_verity.cpp",
50 "fs_mgr_avb.cpp",
51 "fs_mgr_avb_ops.cpp",
52 "fs_mgr_boot_config.cpp",
53 ],
54 product_variables: {
55 debuggable: {
56 cppflags: ["-DALLOW_ADBD_DISABLE_VERITY=1"],
57 },
58 eng: {
59 cppflags: ["-DALLOW_SKIP_SECURE_CHECK=1"],
60 },
61 },
62}