From patchwork Sat Jan 13 10:43:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 187891 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp696944dyc; Sat, 13 Jan 2024 02:44:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFH1K3APaCzq8j5Bfm7WBXWwkV6LUtsch9mocCoN/uI7xtBwIib85Kb8/7WqCZAhAWE884o X-Received: by 2002:a05:6512:1304:b0:50e:d4d9:31e3 with SMTP id x4-20020a056512130400b0050ed4d931e3mr1719317lfu.8.1705142666084; Sat, 13 Jan 2024 02:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705142666; cv=none; d=google.com; s=arc-20160816; b=D05yWBd4yY+zKJGdDh/A8jKAYzVgRS72yub3SKax3yiexpgjOS1/F7T/K2A/MubYBL tQwrWNoiv74bDg1SWfjjlcPO1knKPK0HC7+6c/DF6o5I+r5U9H3+4D30mr8XWKPYH0cM xQ3noahQMzkeLUG2JxOuQIHxEhEo2ffDdzo9K49ctdvj7qL8bjOYTumXmw0P5Vpi+ITV 5j0uquocnZ++rDDG4tAWoqFKlu1n7gETFlsXs0BlFsIBSDGrO69jYT4M3uSkD/dNQa0G 7ZRTxCACAnSJE1m/GjhWDCi6BU0CoBr/oTaLhiy/WXXygS25l//2z5IaqKkbhUkSb+Yc pZNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=D4N4HpwJk0StxhjSdVcBW5yQrntuerEPyR/jCyLQVwY=; fh=TzTqDUMKP/KQaEfE3IrByn8I7Y7VmT/7HASSO3QvYuU=; b=NKqgdXJSBTMiJWoKe9HwAbkKlNAd6PN13gNPKG3XJA8SsOZpBFyJQi3rw8WhnafDWa QwMiTEALutXbFkUXwjP3zTlh38DsjP11chmiwPV3SMPC4BoZzubDjoAOsFAuBqnnQy97 20kJ5hR2mtCAPe5GLENmkMaP//GnVay6L35BI5DvKOLJgZ4caI+I2JwcNo9KZTJti+h6 zxE+64dDGiq7H51nUGaLLx7qb14gF0dlnzS2Sn/AP76iU2SUcLHYWqKxeqWsF+P43fFG FvaIY26ItLbbycJSaP9vNWb15oaA/txs1100yT1UasJGTlAsmY/I/XnxgQrC4SA+JNAB 3LxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqXfPtKd; spf=pass (google.com: domain of linux-kernel+bounces-25264-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25264-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w3-20020a17090652c300b00a26ea1b1406si2187115ejn.890.2024.01.13.02.44.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 02:44:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25264-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqXfPtKd; spf=pass (google.com: domain of linux-kernel+bounces-25264-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25264-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A834D1F21D15 for ; Sat, 13 Jan 2024 10:44:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B1A0210FD; Sat, 13 Jan 2024 10:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FqXfPtKd" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB16120DF0; Sat, 13 Jan 2024 10:43:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CADDFC43399; Sat, 13 Jan 2024 10:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705142630; bh=HMJz/xKuNKASWe7U/KjCcahJnEqUSiHLAv6q7X00jEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FqXfPtKdBkT6GvG/yhrB2yc0Gt4paaqmZX4rihliFQ0ejqVzqmlWi9Zlbk687+8pW JI5tQiMnVggTXky8xt32AAtLLOtA+FARcwJYgdCIjEpaTvpzTcCsYHeGl2OTVpRmuU fnjOP6SZRQS+XMrpBlqbPk0Y/3+Urd0IyQvqSak/zvAmy2jgrKQWdPE76+Ir9MCh4u t7cZqIZKZcwh3YRdmivMKnOG81vkHFED/qM6q8nMj7vMR5O2O4K1rJThrR8oQ58Thf SVC4e5c/P5ZgbcvxQqZMit0F10zSXdtRSe7WJkOh5drQa/b0Ah0VBPzptshLYUcE+0 mrpnmlrJcZsBw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ben Hutchings , Masahiro Yamada , Nicolas Schier , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] kbuild: deb-pkg: make debian/rules quiet for 'make deb-pkg' Date: Sat, 13 Jan 2024 19:43:37 +0900 Message-Id: <20240113104339.16131-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240113104339.16131-1-masahiroy@kernel.org> References: <20240113104339.16131-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787971676013141499 X-GMAIL-MSGID: 1787971676013141499 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 Reviewed-by: Nicolas Schier --- Changes in v2: - Rebased scripts/package/debian/rules | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index 697fbfa7595f..a183e95886e6 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -16,6 +16,8 @@ endif ifeq ($(origin KBUILD_VERBOSE),undefined) ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) export KBUILD_VERBOSE := 1 + else + Q := @ endif endif @@ -27,20 +29,20 @@ make-opts = ARCH=$(ARCH) KERNELRELEASE=$(KERNELRELEASE) KBUILD_BUILD_VERSION=$(r binary: binary-arch binary-indep binary-indep: build-indep binary-arch: build-arch - $(MAKE) $(make-opts) \ + $(Q)$(MAKE) $(make-opts) \ run-command KBUILD_RUN_COMMAND='+$$(srctree)/scripts/package/builddeb' .PHONY: build build-indep build-arch build: build-arch build-indep build-indep: build-arch: - $(MAKE) $(make-opts) olddefconfig - $(MAKE) $(make-opts) $(if $(filter um,$(ARCH)),,headers) all + $(Q)$(MAKE) $(make-opts) olddefconfig + $(Q)$(MAKE) $(make-opts) $(if $(filter um,$(ARCH)),,headers) all .PHONY: clean clean: - rm -rf debian/files debian/linux-* debian/deb-env.vars* - $(MAKE) ARCH=$(ARCH) clean + $(Q)rm -rf debian/files debian/linux-* debian/deb-env.vars* + $(Q)$(MAKE) ARCH=$(ARCH) clean # If DEB_HOST_ARCH is empty, it is likely that debian/rules was executed # directly. Run 'dpkg-architecture --print-set --print-format=make' to @@ -49,6 +51,6 @@ ifndef DEB_HOST_ARCH include debian/deb-env.vars debian/deb-env.vars: - dpkg-architecture -a$$(cat debian/arch) --print-set --print-format=make > $@.tmp - mv $@.tmp $@ + $(Q)dpkg-architecture -a$$(cat debian/arch) --print-set --print-format=make > $@.tmp + $(Q)mv $@.tmp $@ endif