From patchwork Sat Mar 2 02:02:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elliott Mitchell X-Patchwork-Id: 13579991 Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D811715B7 for ; Mon, 4 Mar 2024 02:48:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.104.188.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709520486; cv=none; b=D8NqEKoMGphQb6/WsafLcr7MVyGPraCXVgWaKKnXYuZvrxVbk2qi3KR6yBBg8aMs8Dv7fZfADwkmmJD2j3IzUY19FS2nTM/hM4e6zT6FLcS6vkr8nuoqtVy/Gi2c7Ds9gbJ/VwU1JEZ42W77Sj+YF+kxm+MEblS/Y5reYNThkhA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709520486; c=relaxed/simple; bh=Su5g0IpXrm4Dgj+t6xUQYHTfMqgnqFGxtcrm3XAMPU8=; h=Message-Id:In-Reply-To:References:From:Date:Subject:To:Cc; b=Ol3BNX+bjketVn1oS8xMI3r5dU32/PQnceKAyqJPVnx0yGq4Q91qcOJKhEPCQCyVAc1r8b6YKd8tM63XpHqItCRAQrItKu4D/He8xN0jE84tosqsqnaVbMCkzJ2mENyBX+xtkgqqLbPTsZsV72kk2cYavtUyfKcmmCL4/U1+/aE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=m5p.com; spf=pass smtp.mailfrom=m5p.com; arc=none smtp.client-ip=74.104.188.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=m5p.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=m5p.com Received: from m5p.com (mailhost.m5p.com [IPv6:2001:470:1f07:15ff:0:0:0:f7]) by mailhost.m5p.com (8.17.1/8.15.2) with ESMTPS id 4242hVaZ022070 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 3 Mar 2024 21:43:37 -0500 (EST) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.17.1/8.15.2/Submit) id 4242hVj6022069; Sun, 3 Mar 2024 18:43:31 -0800 (PST) (envelope-from ehem) Message-Id: In-Reply-To: References: From: Elliott Mitchell Date: Fri, 1 Mar 2024 18:02:28 -0800 Subject: [WIP PATCH 24/30] scripts/generate_rust_analyzer.py: modify use of ${srctree} for trailing slash To: masahiroy@kernel.org, nathan@kernel.org, nicolas@fjasle.eu Cc: linux-kbuild@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Once converted this script needs to match what the Makefiles have. Signed-off-by: Elliott Mitchell --- This one needs checking. I'm less confident with Python and I'm less than 100% confident what f"{srctre}..." does. --- scripts/generate_rust_analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py index fc52bc41d3e7..43e7b74cad4c 100755 --- a/scripts/generate_rust_analyzer.py +++ b/scripts/generate_rust_analyzer.py @@ -77,7 +77,7 @@ def generate_crates(srctree, objtree, sysroot_src, external_src, cfgs): [], is_proc_macro=True, ) - crates[-1]["proc_macro_dylib_path"] = f"{objtree}/rust/libmacros.so" + crates[-1]["proc_macro_dylib_path"] = f"{objtree}rust/libmacros.so" append_crate( "build_error",