Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2804224rdb; Tue, 26 Dec 2023 05:53:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHpr2hw26FYRYoAIYClAopdocWIFJqKSCn2kDuysUIJNpwZEXRNQJCD+IT2yhK1ku8Ppn6 X-Received: by 2002:a05:6830:14ca:b0:6db:9497:1b16 with SMTP id t10-20020a05683014ca00b006db94971b16mr5729803otq.39.1703598834784; Tue, 26 Dec 2023 05:53:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703598834; cv=none; d=google.com; s=arc-20160816; b=uDb1tVW9sYPkqYcgTyP78+Pvy9DO3LVS6jEpuVnotZZ1TkNE4MzaLjHMaaUvl3MUzr Gy3R6gZR4RP46rasS/vHyx+2aJJxsV1A9I7sEmj7LJLpq25lzK2fnOgxc1WKE5eAcTuA HokTcQM32AsxBSr62SRlsfdVPJMI1RBQWEFWkPZnAqwFJ0uImrRZn8IWBlInGAeFHgR+ 5M9YnaeOc9ei86WCwBOewOM8dQldmxBSC1edlTcLvmEMoNuZC4hCZqwSsS6XPUYOIe2A T9hiXg+i8PBwcye7gMAo4CMK8W5GQK3oNIrrvuKeZXo77GtJO57G6KwinkRu5Koj3bvL 9i8g== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c13-20020a65420d000000b005c1ce3c9608si9401638pgq.756.2023.12.26.05.53.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 05:53:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11533-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11533-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 89B3FB21C7C for ; Tue, 26 Dec 2023 13:53:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AA7C4F889; Tue, 26 Dec 2023 13:53:03 +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 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit '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 --- 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 -- 2.40.1