2017-01-13 01:48:04 +08:00
|
|
|
// Copyright 2017 The Android Open Source Project
|
|
|
|
|
|
|
|
//########################
|
|
|
|
// Build the e2fsck binary
|
|
|
|
|
|
|
|
cc_defaults {
|
|
|
|
name: "e2fsck-defaults",
|
2018-02-27 02:54:20 +08:00
|
|
|
defaults: ["e2fsprogs-defaults"],
|
2017-01-13 01:48:04 +08:00
|
|
|
srcs: [
|
|
|
|
"e2fsck.c",
|
|
|
|
"super.c",
|
|
|
|
"pass1.c",
|
|
|
|
"pass1b.c",
|
|
|
|
"pass2.c",
|
|
|
|
"pass3.c",
|
|
|
|
"pass4.c",
|
|
|
|
"pass5.c",
|
|
|
|
"logfile.c",
|
|
|
|
"journal.c",
|
|
|
|
"recovery.c",
|
|
|
|
"revoke.c",
|
|
|
|
"badblocks.c",
|
|
|
|
"util.c",
|
|
|
|
"unix.c",
|
|
|
|
"dirinfo.c",
|
|
|
|
"dx_dirinfo.c",
|
|
|
|
"ehandler.c",
|
|
|
|
"problem.c",
|
|
|
|
"message.c",
|
|
|
|
"ea_refcount.c",
|
|
|
|
"quota.c",
|
|
|
|
"rehash.c",
|
|
|
|
"region.c",
|
|
|
|
"sigcatcher.c",
|
|
|
|
"readahead.c",
|
|
|
|
"extents.c",
|
|
|
|
],
|
2018-02-27 02:54:20 +08:00
|
|
|
cflags: [
|
|
|
|
"-Wno-sign-compare",
|
2018-07-13 07:55:08 +08:00
|
|
|
"-fno-strict-aliasing",
|
2018-02-27 02:54:20 +08:00
|
|
|
],
|
2017-01-13 01:48:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
e2fsck_libs = [
|
|
|
|
"libext2fs",
|
|
|
|
"libext2_blkid",
|
2019-01-30 10:07:55 +08:00
|
|
|
"libext2_com_err",
|
2017-01-13 01:48:04 +08:00
|
|
|
"libext2_uuid",
|
|
|
|
"libext2_quota",
|
|
|
|
"libext2_e2p",
|
|
|
|
]
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "e2fsck",
|
|
|
|
host_supported: true,
|
|
|
|
defaults: ["e2fsck-defaults"],
|
|
|
|
|
|
|
|
shared_libs: e2fsck_libs,
|
2017-08-24 06:02:55 +08:00
|
|
|
system_shared_libs: ["libc", "libdl"],
|
2017-01-13 01:48:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "e2fsck_static",
|
|
|
|
static_executable: true,
|
|
|
|
defaults: ["e2fsck-defaults"],
|
|
|
|
|
2017-03-17 06:41:13 +08:00
|
|
|
static_libs: e2fsck_libs,
|
2017-01-13 01:48:04 +08:00
|
|
|
}
|