1 // Copyright 2017 The Android Open Source Project 2 3 //######################## 4 // Build the e2fsck binary 5 6 cc_defaults { 7 name: "e2fsck-defaults", 8 srcs: [ 9 "e2fsck.c", 10 "super.c", 11 "pass1.c", 12 "pass1b.c", 13 "pass2.c", 14 "pass3.c", 15 "pass4.c", 16 "pass5.c", 17 "logfile.c", 18 "journal.c", 19 "recovery.c", 20 "revoke.c", 21 "badblocks.c", 22 "util.c", 23 "unix.c", 24 "dirinfo.c", 25 "dx_dirinfo.c", 26 "ehandler.c", 27 "problem.c", 28 "message.c", 29 "ea_refcount.c", 30 "quota.c", 31 "rehash.c", 32 "region.c", 33 "sigcatcher.c", 34 "readahead.c", 35 "extents.c", 36 ], 37 cflags: ["-W", "-Wall", "-Wno-macro-redefined", "-fno-strict-aliasing"], 38 } 39 40 e2fsck_libs = [ 41 "libext2fs", 42 "libext2_blkid", 43 "libext2_uuid", 44 "libext2_quota", 45 "libext2_com_err", 46 "libext2_e2p", 47 ] 48 49 cc_binary { 50 name: "e2fsck", 51 host_supported: true, 52 defaults: ["e2fsck-defaults"], 53 54 shared_libs: e2fsck_libs, 55 system_shared_libs: ["libc", "libdl"], 56 } 57 58 cc_binary { 59 name: "e2fsck_static", 60 static_executable: true, 61 defaults: ["e2fsck-defaults"], 62 63 static_libs: e2fsck_libs, 64 } 65