Whamcloud - gitweb
AOSP: Build e2freefrag
authorAlessio Balsini <balsini@google.com>
Fri, 24 Jan 2020 16:04:44 +0000 (16:04 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 21 Mar 2020 03:13:52 +0000 (23:13 -0400)
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

misc/Android.bp

index d5be3a1..c873c10 100644 (file)
@@ -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"],
+}