From: Alessio Balsini Date: Fri, 24 Jan 2020 16:04:44 +0000 (+0000) Subject: AOSP: Build e2freefrag X-Git-Tag: v1.45.6~5 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d4197585fac5d469693c32dd88f03d84a5ef62fc;p=tools%2Fe2fsprogs.git 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 --- 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"], +}