From patchwork Tue Dec 26 13:52:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13504897 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) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FF9W5eoD" 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 To: linux-kbuild@vger.kernel.org Cc: Ben Hutchings , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , 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-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 '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 Reviewed-by: Nicolas Schier --- 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' .PHONY: build build-indep build-arch build: build-arch build-indep