Skip to content

Commit

Permalink
tools: Remove redundant quiet setup
Browse files Browse the repository at this point in the history
Q is exported from Makefile.include so it is not necessary to manually
set it.

Signed-off-by: Charlie Jenkins <[email protected]>
  • Loading branch information
charlie-rivos authored and Kernel Patches Daemon committed Feb 6, 2025
1 parent 657f9d0 commit 9e5d269
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 114 deletions.
6 changes: 0 additions & 6 deletions tools/arch/arm64/tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ AWK ?= awk
MKDIR ?= mkdir
RM ?= rm

ifeq ($(V),1)
Q =
else
Q = @
endif

arm64_tools_dir = $(top_srcdir)/arch/arm64/tools
arm64_sysreg_tbl = $(arm64_tools_dir)/sysreg
arm64_gen_sysreg = $(arm64_tools_dir)/gen-sysreg.awk
Expand Down
6 changes: 0 additions & 6 deletions tools/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree)))
endif

ifeq ($(V),1)
Q =
else
Q = @
endif

FEATURE_USER = .bpf
FEATURE_TESTS = libbfd disassembler-four-args disassembler-init-styled
FEATURE_DISPLAY = libbfd
Expand Down
6 changes: 0 additions & 6 deletions tools/bpf/bpftool/Documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ INSTALL ?= install
RM ?= rm -f
RMDIR ?= rmdir --ignore-fail-on-non-empty

ifeq ($(V),1)
Q =
else
Q = @
endif

prefix ?= /usr/local
mandir ?= $(prefix)/man
man8dir = $(mandir)/man8
Expand Down
6 changes: 0 additions & 6 deletions tools/bpf/bpftool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ srctree := $(patsubst %/,%,$(dir $(srctree)))
srctree := $(patsubst %/,%,$(dir $(srctree)))
endif

ifeq ($(V),1)
Q =
else
Q = @
endif

BPF_DIR = $(srctree)/tools/lib/bpf

ifneq ($(OUTPUT),)
Expand Down
2 changes: 0 additions & 2 deletions tools/bpf/resolve_btfids/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ include ../../scripts/Makefile.arch
srctree := $(abspath $(CURDIR)/../../../)

ifeq ($(V),1)
Q =
msg =
else
Q = @
ifeq ($(silent),1)
msg =
else
Expand Down
5 changes: 1 addition & 4 deletions tools/bpf/runqslower/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ VMLINUX_BTF_PATHS := $(if $(O),$(O)/vmlinux) \
VMLINUX_BTF_PATH := $(or $(VMLINUX_BTF),$(firstword \
$(wildcard $(VMLINUX_BTF_PATHS))))

ifeq ($(V),1)
Q =
else
Q = @
ifneq ($(V),1)
MAKEFLAGS += --no-print-directory
submake_extras := feature_display=0
endif
Expand Down
13 changes: 0 additions & 13 deletions tools/lib/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ include $(srctree)/tools/scripts/Makefile.include

# copy a bit from Linux kbuild

ifeq ("$(origin V)", "command line")
VERBOSE = $(V)
endif
ifndef VERBOSE
VERBOSE = 0
endif

INCLUDES = -I$(or $(OUTPUT),.) \
-I$(srctree)/tools/include -I$(srctree)/tools/include/uapi \
-I$(srctree)/tools/arch/$(SRCARCH)/include
Expand Down Expand Up @@ -96,12 +89,6 @@ override CFLAGS += $(CLANG_CROSS_FLAGS)
# flags specific for shared library
SHLIB_FLAGS := -DSHARED -fPIC

ifeq ($(VERBOSE),1)
Q =
else
Q = @
endif

# Disable command line variables (CFLAGS) override from top
# level Makefile (perf), otherwise build Makefile will get
# the same command line setup.
Expand Down
13 changes: 0 additions & 13 deletions tools/lib/perf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@ libdir = $(prefix)/$(libdir_relative)
libdir_SQ = $(subst ','\'',$(libdir))
libdir_relative_SQ = $(subst ','\'',$(libdir_relative))

ifeq ("$(origin V)", "command line")
VERBOSE = $(V)
endif
ifndef VERBOSE
VERBOSE = 0
endif

ifeq ($(VERBOSE),1)
Q =
else
Q = @
endif

TEST_ARGS := $(if $(V),-v)

# Set compile option CFLAGS
Expand Down
13 changes: 0 additions & 13 deletions tools/lib/thermal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@ libdir = $(prefix)/$(libdir_relative)
libdir_SQ = $(subst ','\'',$(libdir))
libdir_relative_SQ = $(subst ','\'',$(libdir_relative))

ifeq ("$(origin V)", "command line")
VERBOSE = $(V)
endif
ifndef VERBOSE
VERBOSE = 0
endif

ifeq ($(VERBOSE),1)
Q =
else
Q = @
endif

# Set compile option CFLAGS
ifdef EXTRA_CFLAGS
CFLAGS := $(EXTRA_CFLAGS)
Expand Down
6 changes: 0 additions & 6 deletions tools/objtool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ HOST_OVERRIDES := CC="$(HOSTCC)" LD="$(HOSTLD)" AR="$(HOSTAR)"
AWK = awk
MKDIR = mkdir

ifeq ($(V),1)
Q =
else
Q = @
endif

BUILD_ORC := n

ifeq ($(SRCARCH),x86)
Expand Down
6 changes: 0 additions & 6 deletions tools/testing/selftests/bpf/Makefile.docs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ INSTALL ?= install
RM ?= rm -f
RMDIR ?= rmdir --ignore-fail-on-non-empty

ifeq ($(V),1)
Q =
else
Q = @
endif

prefix ?= /usr/local
mandir ?= $(prefix)/man
man2dir = $(mandir)/man2
Expand Down
2 changes: 0 additions & 2 deletions tools/testing/selftests/hid/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ TEST_GEN_PROGS = hid_bpf hidraw
# $3 - target (assumed to be file); only file name will be emitted;
# $4 - optional extra arg, emitted as-is, if provided.
ifeq ($(V),1)
Q =
msg =
else
Q = @
msg = @printf ' %-8s%s %s%s\n' "$(1)" "$(if $(2), [$(2)])" "$(notdir $(3))" "$(if $(4), $(4))";
MAKEFLAGS += --no-print-directory
submake_extras := feature_display=0
Expand Down
13 changes: 0 additions & 13 deletions tools/thermal/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@ libdir = $(prefix)/$(libdir_relative)
libdir_SQ = $(subst ','\'',$(libdir))
libdir_relative_SQ = $(subst ','\'',$(libdir_relative))

ifeq ("$(origin V)", "command line")
VERBOSE = $(V)
endif
ifndef VERBOSE
VERBOSE = 0
endif

ifeq ($(VERBOSE),1)
Q =
else
Q = @
endif

# Set compile option CFLAGS
ifdef EXTRA_CFLAGS
CFLAGS := $(EXTRA_CFLAGS)
Expand Down
6 changes: 0 additions & 6 deletions tools/tracing/latency/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ FEATURE_TESTS += libtracefs
FEATURE_DISPLAY := libtraceevent
FEATURE_DISPLAY += libtracefs

ifeq ($(V),1)
Q =
else
Q = @
endif

all: $(LATENCY-COLLECTOR)

include $(srctree)/tools/build/Makefile.include
Expand Down
6 changes: 0 additions & 6 deletions tools/tracing/rtla/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ FEATURE_DISPLAY := libtraceevent
FEATURE_DISPLAY += libtracefs
FEATURE_DISPLAY += libcpupower

ifeq ($(V),1)
Q =
else
Q = @
endif

all: $(RTLA)

include $(srctree)/tools/build/Makefile.include
Expand Down
6 changes: 0 additions & 6 deletions tools/verification/rv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ FEATURE_TESTS += libtracefs
FEATURE_DISPLAY := libtraceevent
FEATURE_DISPLAY += libtracefs

ifeq ($(V),1)
Q =
else
Q = @
endif

all: $(RV)

include $(srctree)/tools/build/Makefile.include
Expand Down

0 comments on commit 9e5d269

Please sign in to comment.