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

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: deb-pkg: show verbose log for direct package builds

When the Debian package build is initiated by Kbuild ('make deb-pkg'
or 'make bindeb-pkg'), the log messages are displayed in the short
form, which is the Kbuild default.

Otherwise, let's show verbose messages (unless the 'terse' tag is set
in DEB_BUILD_OPTION), as suggested by Debian Policy: "The package build
should be as verbose as reasonably possible, except where the terse tag
is included in DEB_BUILD_OPTIONS." [1]

This is what the Debian kernel also does. [2]

[1]: https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules
[2]: https://salsa.debian.org/kernel-team/linux/-/blob/debian/6.7-1_exp1/debian/rules.real#L36

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

+8
+8
scripts/package/debian/rules
··· 11 11 MAKEFLAGS += -j$(NUMJOBS) 12 12 endif 13 13 14 + # When KBUILD_VERBOSE is undefined (presumably you are directly working with 15 + # the debianized tree), show verbose logs unless DEB_BUILD_OPTION=terse is set. 16 + ifeq ($(origin KBUILD_VERBOSE),undefined) 17 + ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) 18 + export KBUILD_VERBOSE := 1 19 + endif 20 + endif 21 + 14 22 revision = $(lastword $(subst -, ,$(shell dpkg-parsechangelog -S Version))) 15 23 CROSS_COMPILE ?= $(filter-out $(DEB_BUILD_GNU_TYPE)-, $(DEB_HOST_GNU_TYPE)-) 16 24 make-opts = ARCH=$(ARCH) KERNELRELEASE=$(KERNELRELEASE) KBUILD_BUILD_VERSION=$(revision) $(addprefix CROSS_COMPILE=,$(CROSS_COMPILE))