1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13import("//build/ohos.gni") 14 15# For init only 16config("libfsmanager_exported_configs") { 17 visibility = [ ":*" ] 18 include_dirs = 19 [ "//base/startup/init/interfaces/innerkits/include/fs_manager" ] 20} 21 22ohos_static_library("libfsmanager_static") { 23 sources = [ 24 "fstab.c", 25 "fstab_mount.c", 26 ] 27 include_dirs = [ 28 "//base/startup/init/interfaces/innerkits/include", 29 "//third_party/bounds_checking_function/include", 30 "//base/startup/init/services/log", 31 "//base/startup/init/services/include", 32 "//base/startup/init/services/param/include", 33 ] 34 if (defined(global_parts_info.startup_hvb)) { 35 sources += [ 36 "dm_verity/dm_verity.c", 37 "libfs_dm/fs_dm.c", 38 "libfs_hvb/fs_hvb.c", 39 "libfs_hvb/hvb_ops.c", 40 ] 41 42 include_dirs += [ 43 "//base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/include", 44 "//base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/include", 45 "//base/startup/init/interfaces/innerkits/fs_manager/dm_verity/include", 46 "//base/startup/hvb/libhvb/include", 47 "//base/startup/init/ueventd/include", 48 ] 49 50 defines = [ "SUPPORT_HVB" ] 51 52 public_deps = [ "//base/startup/hvb/libhvb:libhvb_static" ] 53 } 54 public_configs = [ ":libfsmanager_exported_configs" ] 55 part_name = "init" 56 subsystem_name = "startup" 57} 58