Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: deb-pkg: make debian/rules quiet for 'make deb-pkg'

Add $(Q) to the commands in debian/rules to make them quiet when the
package built is initiated by 'make deb-pkg' or when the 'terse' tag
is set to DEB_BUILD_OPTIONS.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>

+9 -7
+9 -7
scripts/package/debian/rules
··· 16 16 ifeq ($(origin KBUILD_VERBOSE),undefined) 17 17 ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) 18 18 export KBUILD_VERBOSE := 1 19 + else 20 + Q := @ 19 21 endif 20 22 endif 21 23 ··· 29 27 binary: binary-arch binary-indep 30 28 binary-indep: build-indep 31 29 binary-arch: build-arch 32 - $(MAKE) $(make-opts) \ 30 + $(Q)$(MAKE) $(make-opts) \ 33 31 run-command KBUILD_RUN_COMMAND='+$$(srctree)/scripts/package/builddeb' 34 32 35 33 .PHONY: build build-indep build-arch 36 34 build: build-arch build-indep 37 35 build-indep: 38 36 build-arch: 39 - $(MAKE) $(make-opts) olddefconfig 40 - $(MAKE) $(make-opts) $(if $(filter um,$(ARCH)),,headers) all 37 + $(Q)$(MAKE) $(make-opts) olddefconfig 38 + $(Q)$(MAKE) $(make-opts) $(if $(filter um,$(ARCH)),,headers) all 41 39 42 40 .PHONY: clean 43 41 clean: 44 - rm -rf debian/files debian/linux-* debian/deb-env.vars* 45 - $(MAKE) ARCH=$(ARCH) clean 42 + $(Q)rm -rf debian/files debian/linux-* debian/deb-env.vars* 43 + $(Q)$(MAKE) ARCH=$(ARCH) clean 46 44 47 45 # If DEB_HOST_ARCH is empty, it is likely that debian/rules was executed 48 46 # directly. Run 'dpkg-architecture --print-set --print-format=make' to ··· 51 49 include debian/deb-env.vars 52 50 53 51 debian/deb-env.vars: 54 - dpkg-architecture -a$$(cat debian/arch) --print-set --print-format=make > $@.tmp 55 - mv $@.tmp $@ 52 + $(Q)dpkg-architecture -a$$(cat debian/arch) --print-set --print-format=make > $@.tmp 53 + $(Q)mv $@.tmp $@ 56 54 endif