Message ID | 20231226135243.1393780-4-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-11533-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp875290dyb; Tue, 26 Dec 2023 05:54:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvRG3WAf5KZ3NvNCcJSJzeM8SD2x/D4SxTJPpnqSCelw+COgMiT/ImfAmuNSh1nlA9K2MM X-Received: by 2002:a05:620a:6192:b0:781:5303:ccf with SMTP id or18-20020a05620a619200b0078153030ccfmr2062116qkn.58.1703598839900; Tue, 26 Dec 2023 05:53:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703598839; cv=none; d=google.com; s=arc-20160816; b=I/WIdI3l2+3mAzwEBHbf/qY1brS3/2MbouAYGYk2lEQA69iocKn5REib1IpypRzYUk F8pSFcHA/MLldNR2v52s9Sb6RtWff7/ha1pJ2NPSNBo2grviSYijwSZ66iA0dGSmd5BX HC4M3uzLrmR0D4dyHnfJ2AMixupWpCpWCEnOFrBWF3myB9/dLVe5ysmuyARe7szAINDA nBtdq6XSfZQNMs/kseRWzhmY7IlWhC9qSY/jbzokzDRkCSqwIz83yJE/x5vLKXq1ZHlh OUE5DhWNAA1Tiu5rS//p4s9sPUzzCJxFVxZZxor0cgbLKRCaYZRfvVkciMOBPouh6pW6 feuQ== 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=RGRbhUMY7X4kLKD072lBgHhmrNwztFpEutzTPdsV/l8=; fh=5gYN4msaJmwnN8mGpibv8VZnTy0MtvGQcf5D09XpoaQ=; b=elC8wV3mxQue+bmmim/IAxY7/p6nbF/zKoAY4PdsiTDz+PgQobQAmj0HGxBYI6H+yY onn+Bm6AVa5q8oINrbQJSOzPS4NLhWt7bba3EBhtEpJJax/exRoTWlEV4yUV3tks2g2X duxFGIr7QdPlX7Yucw9BRskDF1bNws8/wwRDTgTZcUQerzP71QOWHDnNl7n+ytnc7MWa KPQYzplyV1ibKLHlr0q078869tg8CnJoVGYMqgG/Tifbdd49dcDv2NVHHF3RJhpu6oQk KA6hR+MYzt+pEmmK8/v8n8gyHHJLBI5mrcuqdkeU7BHnAXU29ylZ8VvKPsLb7c22OSlJ jRPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FF9W5eoD; spf=pass (google.com: domain of linux-kernel+bounces-11533-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11533-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 s8-20020a05620a0bc800b00774067d659csi13033968qki.92.2023.12.26.05.53.59 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 05:53:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11533-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=FF9W5eoD; spf=pass (google.com: domain of linux-kernel+bounces-11533-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11533-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 B11B41C20F21 for <ouuuleilei@gmail.com>; Tue, 26 Dec 2023 13:53:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04CA24F8BB; Tue, 26 Dec 2023 13:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FF9W5eoD" 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 6B3D94F611; Tue, 26 Dec 2023 13:53:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C482AC433CA; Tue, 26 Dec 2023 13:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703598782; bh=Yf/hVKai4B6D9hPEEtKdrrl+YI82sgCF8wTLgHt9pu4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FF9W5eoD+RTmcaGMUHt0CAUOkEsYUbbmUx8w7n/lVKh6ddtIVeEZt0obusP1CTZek sJ3Q+wFhHbA/vVxU5DpdNwn7kS3CN0BD94l2va+qgGhvkCoKTOAcLXvehz+zjmQWEF fHdS1zN+1RPHY9osh/y3yOb+xVH7lZnRJIRbUt3hsnRf6iDVtXmA6Jp8kwb1SaXERm HRZfJWhyZ4tm8uzLlXLsKYC6TQME0c562eviHKIAqmkfaLVlMtCiH1RzB1b6XWysgh dT5ukV8lBxq5mS6khHHxYIyKbXhDmcGL4OSu7LDIJCIvSEYMOp/iG/q9p5Q7Vhsk80 eJ8lgoieLWw+Q== From: Masahiro Yamada <masahiroy@kernel.org> To: linux-kbuild@vger.kernel.org Cc: Ben Hutchings <ben@decadent.org.uk>, Masahiro Yamada <masahiroy@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu>, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] kbuild: deb-pkg: allow to run debian/rules from output directory Date: Tue, 26 Dec 2023 22:52:41 +0900 Message-Id: <20231226135243.1393780-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231226135243.1393780-1-masahiroy@kernel.org> References: <20231226135243.1393780-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786352857248902678 X-GMAIL-MSGID: 1786352857248902678 |
Series |
[1/6] kbuild: deb-pkg: factor out common Make options in debian/rules
|
|
Commit Message
Masahiro Yamada
Dec. 26, 2023, 1:52 p.m. UTC
'make O=... deb-pkg' creates the debian directory in the output
directory. However, currently it is impossible to run debian/rules
created in the separate output directory.
This commit delays the $(srctree) expansion by escaping '$' and by
quating the entire command, making it possible to run debian/rules in
the output directory.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
scripts/package/debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, Dec 26, 2023 at 10:52:41PM +0900, Masahiro Yamada wrote: > 'make O=... deb-pkg' creates the debian directory in the output > directory. However, currently it is impossible to run debian/rules > created in the separate output directory. > > This commit delays the $(srctree) expansion by escaping '$' and by > quating the entire command, making it possible to run debian/rules in quating -> quoting > the output directory. > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> > --- > > scripts/package/debian/rules | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules > index 8f24a8e84bf2..6b2333e3cf96 100755 > --- a/scripts/package/debian/rules > +++ b/scripts/package/debian/rules > @@ -19,7 +19,7 @@ binary: binary-arch binary-indep > binary-indep: build-indep > binary-arch: build-arch > $(MAKE) -f $(srctree)/Makefile $(make-opts) \ > - run-command KBUILD_RUN_COMMAND=+$(srctree)/scripts/package/builddeb > + run-command KBUILD_RUN_COMMAND='+$${srctree}/scripts/package/builddeb' That's a nice trick. Reviewed-by: Nicolas Schier <n.schier@avm.de> > > .PHONY: build build-indep build-arch > build: build-arch build-indep > -- > 2.40.1 >
diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index 8f24a8e84bf2..6b2333e3cf96 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -19,7 +19,7 @@ binary: binary-arch binary-indep binary-indep: build-indep binary-arch: build-arch $(MAKE) -f $(srctree)/Makefile $(make-opts) \ - run-command KBUILD_RUN_COMMAND=+$(srctree)/scripts/package/builddeb + run-command KBUILD_RUN_COMMAND='+$${srctree}/scripts/package/builddeb' .PHONY: build build-indep build-arch build: build-arch build-indep