From d4197585fac5d469693c32dd88f03d84a5ef62fc Mon Sep 17 00:00:00 2001 From: Alessio Balsini Date: Fri, 24 Jan 2020 16:04:44 +0000 Subject: [PATCH] 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 From AOSP commit: ab77f6c79f3dab697cd56ad3b793e7d555ac9415 --- misc/Android.bp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/misc/Android.bp b/misc/Android.bp index d5be3a1..c873c10 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"], +} -- 1.8.3.1