From patchwork Tue Dec 26 13:52:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 183317 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp874987dyb; Tue, 26 Dec 2023 05:53:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsPNMvH8QuIMVVGaufeHMC/a+URk5hOZtoyjtsiLencjhitkJTbX+YDefP1hbaK31adF78 X-Received: by 2002:a05:6214:ac9:b0:67f:2632:9992 with SMTP id g9-20020a0562140ac900b0067f26329992mr13937006qvi.38.1703598797214; Tue, 26 Dec 2023 05:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703598797; cv=none; d=google.com; s=arc-20160816; b=GM9BP8hRPzplWxPIzPE0KURmscu18Ae0ggx+NoACk02OAlQ/eIPncjcBDEk9GiXuG7 lz3TnrPZfzx7gHpGnfmfFGZKnwoXsKM5VOygEoFaov70ynaGokMiyWW+jX5cFmlIRvrg kzkFKu5XC9sL81nktWtn2Uwc+DHhPuxS9YBIyiZ+5CoMWNWMnsrnOPIvG8ilAfwlS0pa +h2oG1BuYDhPwmqG8o81OeaFQJeAqbdgp7yKAen1rOfM87cAmvoMOa/jzwy2IIbDO/Pj y6r1QlowfrWOUlXUUAU9Tj7eKSq/nIEf3T3FR+Re3DtrU1qsk6Ho4Ou/xxK+sDUBXTVq +SFQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=sSOFChyrfs3ifnOH6Ap6ou9xOph+iCxvvV47VYIg/VY=; fh=5gYN4msaJmwnN8mGpibv8VZnTy0MtvGQcf5D09XpoaQ=; b=O3Z6b8X+6/KYPZIW06f43efKdTWxs3HNhcPYhC2oJW+hTjRcQbNamJUXRfDwApqxtw whq1l5i9ftEg8aVJ1gI91LS87W3YmmqA4PTnUmlXQZHpJZPD/EjR8VLDCodLmeXpw5kK yXlu2zdXInzS4Ef12iNgW5hGd5/ej22VuZFxbvFvBlLe/579OHFlZ1OYZRlc3XXe+Kc5 MQswWUXWiyuPsrf+WuGeqkdGebFgItYNbVhf9nwdwG86FWo69oZxCy7Hqc/SQSTpbc8K IarSLor5FBsxrSsE1vtucqcKtN9licCP0sFasS8hBFIG+bcBv7Rgd06EXZaBaNY9PUpi Rnkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nyKhjWua; spf=pass (google.com: domain of linux-kernel+bounces-11530-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11530-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h18-20020a0cf412000000b0067a93cf954bsi12902227qvl.266.2023.12.26.05.53.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 05:53:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11530-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nyKhjWua; spf=pass (google.com: domain of linux-kernel+bounces-11530-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11530-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 07E671C20F77 for ; Tue, 26 Dec 2023 13:53:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D0494F209; Tue, 26 Dec 2023 13:53:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nyKhjWua" 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 C1B004EB42; Tue, 26 Dec 2023 13:52:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 005C9C433C7; Tue, 26 Dec 2023 13:52:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703598777; bh=AQY7dmprZJmESi+61/lhMwT1uO26gspqlrGm0b7sd2s=; h=From:To:Cc:Subject:Date:From; b=nyKhjWua2/XlcnQVnS4Osre4jpkurB2edDocb5nMDx/FaT1Fly7efvMGfHw1+FdHo n9630IsYXcWl6KXaUngiBDlgOOlKRRjFILzeYM6+QSVSSvkp9b0S/8LdWpD0OJ34ss 9RlApq4B+HNswz1S4fx31VY9L6ZB8vkftf8LbanXwjYi0uvX5UHQ3o/v10ua/BaWqC NejKrVi/5Dz9tf8S2w9lqcIMhtGgfgErYUkCz5LOS03M2haCm28BJTl63ipDO6y91G W4MNo+9flDX7OL4N+soUKWzqIFCML2P3JtT5wwV6mkPC91RVdjYTX+MzmqKq2HiZ09 Kva6jwhM37W3A== 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 1/6] kbuild: deb-pkg: factor out common Make options in debian/rules Date: Tue, 26 Dec 2023 22:52:38 +0900 Message-Id: <20231226135243.1393780-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 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: 1786352812160561994 X-GMAIL-MSGID: 1786352812160561994 This avoid code duplication between binary-arch and built-arch. Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- scripts/package/debian/rules | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index 3dafa9496c63..26bc6239e200 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -10,20 +10,20 @@ ifneq (,$(filter-out parallel=1,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))) MAKEFLAGS += -j$(NUMJOBS) endif +make-opts = ARCH=$(ARCH) KERNELRELEASE=$(KERNELRELEASE) + .PHONY: binary binary-indep binary-arch binary: binary-arch binary-indep binary-indep: build-indep binary-arch: build-arch - $(MAKE) -f $(srctree)/Makefile ARCH=$(ARCH) \ - KERNELRELEASE=$(KERNELRELEASE) \ + $(MAKE) -f $(srctree)/Makefile $(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) -f $(srctree)/Makefile ARCH=$(ARCH) \ - KERNELRELEASE=$(KERNELRELEASE) \ + $(MAKE) -f $(srctree)/Makefile $(make-opts) \ $(shell $(srctree)/scripts/package/deb-build-option) \ olddefconfig all