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