From patchwork Sat Dec 30 13:51:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 184010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp3092081dyb; Sat, 30 Dec 2023 05:52:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6GnCEZpFhLT6MfI3GtBS57c1vpI2ySzatlHFSAtJrsbpac+S77iImh6MKaCGn7+uzFV5v X-Received: by 2002:a05:6a20:9143:b0:196:c50e:f6ae with SMTP id x3-20020a056a20914300b00196c50ef6aemr370027pzc.73.1703944358839; Sat, 30 Dec 2023 05:52:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703944358; cv=none; d=google.com; s=arc-20160816; b=KfJ+tYwdjG3kawZDS1tyM5QtZo1LkM8SvTb4JSArEUBMOldBk/nETibxs3fJcyoFO6 Yxk8iwx4elxercMNKC9Hq6oLsbpqFq9ZyiekH9b6ccSb4aLqTQCqr7QcX9VMKZe2SC+w 1kS0KFdxANZl3new0glAU4Di9W4UQnNSdYGVcEMGcGyiovTb4QzahSlRKqu+JQ/BzIkB +LLNmqKnbMinHod1xACVYisCiXTU+XqROhZHJpmi8NeWpn68Intrb/BDFBNU9sVdV0sI gs/zb1lB4HcQdeA+mMsNkAclcR8UGRZinEixVdoo2jtpLOjuvy445VkLC2FzpOdxOg/n uB5Q== 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=RzWg+MeV80bKXSV/rwxcEVNnk9YnJwD0eHSnwQqTA2U=; fh=5gYN4msaJmwnN8mGpibv8VZnTy0MtvGQcf5D09XpoaQ=; b=uYXvhoQzUiGZLOcjo1gAskdzafoZ+1ZkDGoZDSW65crR3N9WR8/QPCRLuBDxb5lq+l cEqdIQS4rhzI1tjeFxFV97W9hJdu23FnH94q93UjKpunib54nj6lgOFZht6XwaDn4zDn u02IYxcHUcpl6XMJBPJ+kgoGFwUphS49tMedXK8pE0UaMpEwIVm30fX+JwWkAS1zqYDJ K71PvWl5ojibkt5C2Ri6pCXAbgQqO9BKZSm9M1sKwCEPX8mX6F10jw9FC6Jn1maEE+RM hulouxkKk90gZBnZiI/FHQ5lU8yN++t5AElFrcaeUvDvDwHn7Lb6SWc9s9VfuOadCkyT +Y0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uMHcSBpv; spf=pass (google.com: domain of linux-kernel+bounces-13439-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13439-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c25-20020a62e819000000b006d9a9d65993si11647937pfi.127.2023.12.30.05.52.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 05:52:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13439-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uMHcSBpv; spf=pass (google.com: domain of linux-kernel+bounces-13439-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13439-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 841E328225C for ; Sat, 30 Dec 2023 13:52:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96674BA33; Sat, 30 Dec 2023 13:52:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uMHcSBpv" X-Original-To: linux-kernel@vger.kernel.org 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 08C7D8F65; Sat, 30 Dec 2023 13:52:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31B0DC433CB; Sat, 30 Dec 2023 13:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703944326; bh=kDbLJxPgBxd0hxuVu8WO1yEFieOFRTfcfLs0cYwU+DM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uMHcSBpvo7B5K13+zqSWNAHlxna6pKVh2SM6n1VZ7bNqHaA/sxvQ+wWj7TFo2uFkp jSX0Nl0GQdqc6shqmy3oJGcFSs1uhZYoHdn4P5XCwnpYeQF5Q1WP1OHbUE4lp4AZPt AFViReyWtCCUF/r/8c3W+DRwlogPOTbj4jw/od6rqmk2kJoNUZ4+LvvQO5zYFxc7/K oMIlz7TyByTbYORuNOO/SjXC2M1hiMWMKD67WlJZDYXSm4v21SeUXZgWT8TaSoJ9iu NCKZI9q9YGrbkXA6QFpv6J153orCu1nKxYIf+XRZ4nYP4nCkIxI0HJw7fENKir2RKQ 05EPLKopj/yKg== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ben Hutchings , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH 2/5] kbuild: deb-pkg: make debian/rules quiet by default Date: Sat, 30 Dec 2023 22:51:57 +0900 Message-Id: <20231230135200.1058873-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231230135200.1058873-1-masahiroy@kernel.org> References: <20231230135200.1058873-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: 1786715159798857527 X-GMAIL-MSGID: 1786715159798857527 Add $(Q) to commands in debian/rules to make them quiet when the package built is initiated by 'make deb-pkg'. While the commands in debian/rules are not hidden when you directly work with the debianized tree, you can set 'terse' to DEB_BUILD_OPTIONS to silence them. Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- scripts/package/debian/rules | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index a686c37d0d02..b3f80f62236c 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -11,6 +11,10 @@ ifneq (,$(filter-out parallel=1,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))) MAKEFLAGS += -j$(NUMJOBS) endif +ifneq (,$(filter terse,$(DEB_BUILD_OPTIONS))) + Q ?= @ +endif + revision = $(lastword $(subst -, ,$(shell dpkg-parsechangelog -S Version))) CROSS_COMPILE ?= $(filter-out $(DEB_BUILD_GNU_TYPE)-, $(DEB_HOST_GNU_TYPE)-) make-opts = ARCH=$(ARCH) KERNELRELEASE=$(KERNELRELEASE) KBUILD_BUILD_VERSION=$(revision) $(addprefix CROSS_COMPILE=,$(CROSS_COMPILE)) @@ -19,20 +23,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) headers all + $(Q)$(MAKE) $(make-opts) olddefconfig + $(Q)$(MAKE) $(make-opts) 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 @@ -41,6 +45,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