Makefile: include linux-blkzoned.c for Android, if set
authorJens Axboe <axboe@kernel.dk>
Fri, 5 Jun 2020 13:06:46 +0000 (07:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jun 2020 13:06:46 +0000 (07:06 -0600)
Fixes: https://github.com/axboe/fio/issues/1008
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile

index e3962195471a0f5423cdf00d6f53af194e75087d..7eb5e899df994ee822ac1043737404e18c79026a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -176,6 +176,9 @@ endif
 ifeq ($(CONFIG_TARGET_OS), Android)
   SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c profiles/tiobench.c \
                oslib/linux-dev-lookup.c
+ifdef CONFIG_HAS_BLKZONED
+  SOURCE += oslib/linux-blkzoned.c
+endif
   LIBS += -ldl -llog
   LDFLAGS += -rdynamic
 endif