1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# This library is free software; you can redistribute it and/or 3# modify it under the terms of the GNU Library General Public License as 4# published by the Free Software Foundation; either version 2 of the 5# License, or (at your option) any later version. 6 7import("//build/ohos.gni") 8config("e2fsprogs-defaults") { 9 cflags = [ 10 "-Wno-pointer-sign", 11 "-Wno-unused-variable", 12 "-Wno-error=format", 13 ] 14} 15 16################################################### 17###Build e2fsck 18ohos_executable("e2fsck") { 19 configs = [ ":e2fsprogs-defaults" ] 20 sources = [ 21 "badblocks.c", 22 "dirinfo.c", 23 "dx_dirinfo.c", 24 "e2fsck.c", 25 "ea_refcount.c", 26 "ehandler.c", 27 "encrypted_files.c", 28 "extents.c", 29 "journal.c", 30 "logfile.c", 31 "message.c", 32 "pass1.c", 33 "pass1b.c", 34 "pass2.c", 35 "pass3.c", 36 "pass4.c", 37 "pass5.c", 38 "problem.c", 39 "quota.c", 40 "readahead.c", 41 "recovery.c", 42 "region.c", 43 "rehash.c", 44 "revoke.c", 45 "sigcatcher.c", 46 "super.c", 47 "unix.c", 48 "util.c", 49 ] 50 51 include_dirs = [ 52 ".", 53 "//third_party/e2fsprogs/lib", 54 "//third_party/e2fsprogs/lib/ext2fs", 55 "//third_party/mtd-utils/lib", 56 ] 57 58 deps = [ 59 "//third_party/e2fsprogs/lib/blkid:libext2_blkid", 60 "//third_party/e2fsprogs/lib/e2p:libext2_e2p", 61 "//third_party/e2fsprogs/lib/et:libext2_com_err", 62 "//third_party/e2fsprogs/lib/ext2fs:libext2fs", 63 "//third_party/e2fsprogs/lib/support:libext2_quota", 64 "//third_party/e2fsprogs/lib/uuid:libext2_uuid", 65 ] 66 67 install_enable = true 68 subsystem_name = "thirdparty" 69 part_name = "e2fsprogs" 70 install_images = [ 71 "system", 72 "updater", 73 ] 74} 75