Skip to content

Commit 768759e

Browse files
Jakub KicinskiAlexei Starovoitov
authored andcommitted
samples: bpf: make the build less noisy
Building samples with clang ignores the $(Q) setting, always printing full command to the output. Make it less verbose. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 0cc54db commit 768759e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

samples/bpf/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ $(obj)/tracex5_kern.o: $(obj)/syscall_nrs.h
244244
# But, there is no easy way to fix it, so just exclude it since it is
245245
# useless for BPF samples.
246246
$(obj)/%.o: $(src)/%.c
247-
$(CLANG) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) -I$(obj) \
247+
@echo " CLANG-bpf " $@
248+
$(Q)$(CLANG) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) -I$(obj) \
248249
-I$(srctree)/tools/testing/selftests/bpf/ \
249250
-D__KERNEL__ -Wno-unused-value -Wno-pointer-sign \
250251
-D__TARGET_ARCH_$(ARCH) -Wno-compare-distinct-pointer-types \

0 commit comments

Comments
 (0)