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 "extents.c", 28 "journal.c", 29 "logfile.c", 30 "message.c", 31 "pass1.c", 32 "pass1b.c", 33 "pass2.c", 34 "pass3.c", 35 "pass4.c", 36 "pass5.c", 37 "problem.c", 38 "quota.c", 39 "readahead.c", 40 "recovery.c", 41 "region.c", 42 "rehash.c", 43 "revoke.c", 44 "sigcatcher.c", 45 "super.c", 46 "unix.c", 47 "util.c", 48 ] 49 50 include_dirs = [ 51 ".", 52 "//third_party/e2fsprogs/lib", 53 "//third_party/e2fsprogs/lib/ext2fs", 54 "//third_party/mtd-utils/lib", 55 ] 56 57 deps = [ 58 "//third_party/e2fsprogs/lib/blkid:libext2_blkid", 59 "//third_party/e2fsprogs/lib/e2p:libext2_e2p", 60 "//third_party/e2fsprogs/lib/et:libext2_com_err", 61 "//third_party/e2fsprogs/lib/ext2fs:libext2fs", 62 "//third_party/e2fsprogs/lib/support:libext2_quota", 63 "//third_party/e2fsprogs/lib/uuid:libext2_uuid", 64 ] 65 66 install_enable = true 67 part_name = "e2fsprogs" 68 install_images = [ 69 "system", 70 "updater", 71 ] 72} 73