aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessio Balsini <balsini@google.com>2020-01-24 16:04:44 +0000
committerTheodore Ts'o <tytso@mit.edu>2020-03-20 23:13:52 -0400
commitd4197585fac5d469693c32dd88f03d84a5ef62fc (patch)
tree6a73cf330527adcffaadea916fb03c617938d6b0
parent470e78ae212e3ffebba851a28152489f2cdfcf41 (diff)
downloade2fsprogs-d4197585fac5d469693c32dd88f03d84a5ef62fc.tar.gz
AOSP: Build e2freefrag
Enable the build of e2freefrag to monitor the free space fragmentation in ext2/3/4 filesystems. Bug: 146078546 Test: m + e2freefrag on device Change-Id: Ia56e443a789ae881a03bdaeae1093567e1736c4c Signed-off-by: Alessio Balsini <balsini@google.com> From AOSP commit: ab77f6c79f3dab697cd56ad3b793e7d555ac9415
-rw-r--r--misc/Android.bp19
1 files changed, 19 insertions, 0 deletions
diff --git a/misc/Android.bp b/misc/Android.bp
index d5be3a1fc..c873c104d 100644
--- a/misc/Android.bp
+++ b/misc/Android.bp
@@ -288,3 +288,22 @@ cc_binary {
],
system_shared_libs: ["libc", "libdl"],
}
+
+//##########################################################################
+// Build e2freefrag
+
+cc_binary {
+ name: "e2freefrag",
+ host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
+
+ srcs: [
+ "e2freefrag.c",
+ ],
+ header_libs: ["libext2-headers"],
+ shared_libs: [
+ "libext2fs",
+ "libext2_com_err",
+ ],
+ system_shared_libs: ["libc", "libdl"],
+}