1// Copyright 2017 The Android Open Source Project 2 3//######################## 4// Build the debugfs binary 5 6cc_defaults { 7 name: "debugfs-defaults", 8 defaults: ["e2fsprogs-defaults"], 9 srcs: [ 10 "debug_cmds.c", 11 "debugfs.c", 12 "util.c", 13 "ncheck.c", 14 "icheck.c", 15 "ls.c", 16 "lsdel.c", 17 "dump.c", 18 "set_fields.c", 19 "logdump.c", 20 "htree.c", 21 "unused.c", 22 "e2freefrag.c", 23 "filefrag.c", 24 "extent_cmds.c", 25 "extent_inode.c", 26 "zap.c", 27 "quota.c", 28 "xattrs.c", 29 "journal.c", 30 "revoke.c", 31 "recovery.c", 32 "do_journal.c", 33 ], 34 cflags: [ 35 "-Wno-unused-variable", 36 "-fno-strict-aliasing", 37 "-DDEBUGFS", 38 ], 39 include_dirs: [ 40 "external/e2fsprogs/misc", 41 "external/e2fsprogs/e2fsck" 42 ], 43} 44 45debugfs_libs = [ 46 "libext2_misc", 47 "libext2fs", 48 "libext2_blkid", 49 "libext2_uuid", 50 "libext2_ss", 51 "libext2_quota", 52 "libext2_com_err", 53 "libext2_e2p", 54] 55 56cc_binary { 57 name: "debugfs", 58 host_supported: true, 59 defaults: ["debugfs-defaults"], 60 61 shared_libs: debugfs_libs, 62 system_shared_libs: ["libc", "libdl"], 63} 64 65cc_binary { 66 name: "debugfs_static", 67 static_executable: true, 68 defaults: ["debugfs-defaults"], 69 70 static_libs: debugfs_libs, 71} 72