Skip to contentSkip to conversation

Makefile: build t/fio-dedupe only if zlib support is found

PATCH Applied Vincent Fu 2 participants 2 messages Jan 28, 2022 1 message not in the archive Kbuild

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20220128214648uscas1p1093b2602603486134890a51b38270e45@uscas1p1.samsung.com

Vincent Fu

author
#1 lore raw

PATCH 1/1 Makefile: build t/fio-dedupe only if zlib support is found

df284fbdc23974c931865a8ddb7d171606b3c778 added zlib support as a requirement for building fio-dedupe.

The current patch changes the Makefile to avoid trying to build fio-dedupe when zlib support is not present.

---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)
Makefile +4 -0
index 00e79539..2432f519 100644
@@ -430,7 +430,9 @@ T_TEST_PROGS += $(T_AXMAP_PROGS)
 T_TEST_PROGS += $(T_LFSR_TEST_PROGS)
 T_TEST_PROGS += $(T_GEN_RAND_PROGS)
 T_PROGS += $(T_BTRACE_FIO_PROGS)
+ifdef CONFIG_ZLIB
 T_PROGS += $(T_DEDUPE_PROGS)
+endif
 T_PROGS += $(T_VS_PROGS)
 T_TEST_PROGS += $(T_MEMLOCK_PROGS)
 ifdef CONFIG_PREAD
@@ -618,8 +620,10 @@ t/fio-btrace2fio: $(T_BTRACE_FIO_OBJS)
 	$(QUIET_LINK)$(CC) $(LDFLAGS) -o $@ $(T_BTRACE_FIO_OBJS) $(LIBS)
 endif
 
+ifdef CONFIG_ZLIB
 t/fio-dedupe: $(T_DEDUPE_OBJS)
 	$(QUIET_LINK)$(CC) $(LDFLAGS) -o $@ $(T_DEDUPE_OBJS) $(LIBS)
+endif
 
 t/fio-verify-state: $(T_VS_OBJS)
 	$(QUIET_LINK)$(CC) $(LDFLAGS) -o $@ $(T_VS_OBJS) $(LIBS)
Signature · 1 line
2.25.1
Applied
#2 lore raw
Quoted 8 lines · Vincent Fu

df284fbdc23974c931865a8ddb7d171606b3c778 added zlib support as a requirement for building fio-dedupe.

The current patch changes the Makefile to avoid trying to build fio-dedupe when zlib support is not present.

[...]

Applied, thanks!

[1/1] Makefile: build t/fio-dedupe only if zlib support is found

      commit: dd75d6d0d4121ab9ca6ca571fbc1b2bf7fe89dad

Best regards,

Signature · 1 line
Jens Axboe