mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2025-01-07 17:13:51 +08:00
0ea0a9e790
The e2fsck may invoke the badblocks when -c is specified. Also the badblocks is required by Mediatek devices. Add it for completeness. Test: compile wembley-userdebug Google-Bug-Id: 157393160 Change-Id: I1163129c925e93ef386e86a60c93e9c314397134 From AOSP commit: dffec44dd56175b80810657f95f8e09a7e3ab0bf
80 lines
1.5 KiB
Plaintext
80 lines
1.5 KiB
Plaintext
// Copyright 2017 The Android Open Source Project
|
|
|
|
//########################
|
|
// Build the e2fsck binary
|
|
|
|
cc_defaults {
|
|
name: "e2fsck-defaults",
|
|
defaults: ["e2fsprogs-defaults"],
|
|
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",
|
|
],
|
|
cflags: [
|
|
"-Wno-sign-compare",
|
|
"-fno-strict-aliasing",
|
|
],
|
|
}
|
|
|
|
e2fsck_libs = [
|
|
"libext2fs",
|
|
"libext2_blkid",
|
|
"libext2_com_err",
|
|
"libext2_uuid",
|
|
"libext2_quota",
|
|
"libext2_e2p",
|
|
]
|
|
|
|
cc_binary {
|
|
name: "e2fsck",
|
|
host_supported: true,
|
|
defaults: ["e2fsck-defaults"],
|
|
|
|
shared_libs: e2fsck_libs,
|
|
system_shared_libs: ["libc", "libdl"],
|
|
required: ["badblocks"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "e2fsck_static",
|
|
static_executable: true,
|
|
defaults: ["e2fsck-defaults"],
|
|
|
|
static_libs: e2fsck_libs,
|
|
}
|
|
|
|
cc_binary {
|
|
name: "e2fsck_ramdisk",
|
|
stem: "e2fsck",
|
|
static_executable: true,
|
|
ramdisk: true,
|
|
defaults: ["e2fsck-defaults"],
|
|
system_shared_libs: [],
|
|
static_libs: e2fsck_libs,
|
|
}
|