Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2803823rdb; Tue, 26 Dec 2023 05:53:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHrXI22qtZlLROq8EIO26Mbnef8pJGLcpR/zubu3faChhqJfy1O4RnByOye5C6mpihDayY X-Received: by 2002:a05:620a:2721:b0:77f:f7be:c0f with SMTP id b33-20020a05620a272100b0077ff7be0c0fmr10580447qkp.139.1703598785096; Tue, 26 Dec 2023 05:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703598785; cv=none; d=google.com; s=arc-20160816; b=0hXs3GDAEcjdtJ+HGWz30cb80W0WZm7WAqaxCNl7eZ7mDWDG/AcGql9u8y1Gwa50Ss 2I7DSKWgKtjtHzOHtvrpH1opUILWLSpbrX48iyxXRKYRT1soEt6qDh54PO7xoykrVcdd P8Ub3BGYEGVGpB/2xyMDQxIZLZwKUKAiqNE33yOjnYoyWo3/6GkZ9lxvyLKLukcyZJpg LKxtyXvaAKCU9YRZn4dLRwd/omM4jlV31g2G0maH78JEVbKGUG/JM7iAOs7OlERmP1ES pHi8WlsnhpZ04/s6jT64CDtBhW6hkz8OSikba8K9FZ9brujDF1scANHn2plqhNAmrhA1 MDTw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qr16-20020a05620a391000b007777245ad07si12701332qkn.480.2023.12.26.05.53.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 05:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11530-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11530-linux.lists.archive=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 CE2541C20FB1 for ; Tue, 26 Dec 2023 13:53:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93EBB4EB5F; Tue, 26 Dec 2023 13:52:58 +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 Content-Transfer-Encoding: 8bit This avoid code duplication between binary-arch and built-arch. Signed-off-by: Masahiro Yamada --- 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 -- 2.40.1