Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2220277/?format=api
{ "id": 2220277, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2220277/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260406200149.3727922-2-mkchauras@gmail.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/1.2/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20260406200149.3727922-2-mkchauras@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260406200149.3727922-2-mkchauras@gmail.com/", "date": "2026-04-06T20:01:46", "name": "[V10,1/4] rust: Separate host libraries to fix rmeta dependency conflict", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "c8d2ccbb6d8056b8b76ade0b9be836e77a3abd65", "submitter": { "id": 92575, "url": "http://patchwork.ozlabs.org/api/1.2/people/92575/?format=api", "name": "Mukesh Kumar Chaurasiya", "email": "mkchauras@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260406200149.3727922-2-mkchauras@gmail.com/mbox/", "series": [ { "id": 498891, "url": "http://patchwork.ozlabs.org/api/1.2/series/498891/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=498891", "date": "2026-04-06T20:01:45", "name": "Rust support for powerpc", "version": 10, "mbox": "http://patchwork.ozlabs.org/series/498891/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220277/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220277/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-19408-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=fl12yo8e;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19408-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:f8b0:4864:20::532\"", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=fl12yo8e;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::532; helo=mail-pg1-x532.google.com;\n envelope-from=mkchauras@gmail.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqKx44dHMz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 06:02:16 +1000 (AEST)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fqKx43SdDz2yfl;\n\tTue, 07 Apr 2026 06:02:16 +1000 (AEST)", "from mail-pg1-x532.google.com (mail-pg1-x532.google.com\n [IPv6:2607:f8b0:4864:20::532])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fqKx304nWz2xHX\n\tfor <linuxppc-dev@lists.ozlabs.org>; Tue, 07 Apr 2026 06:02:14 +1000 (AEST)", "by mail-pg1-x532.google.com with SMTP id\n 41be03b00d2f7-c76bde70ec9so1668299a12.2\n for <linuxppc-dev@lists.ozlabs.org>;\n Mon, 06 Apr 2026 13:02:14 -0700 (PDT)", "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com.com\n ([106.51.160.44])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b27497af26sm151098205ad.49.2026.04.06.13.02.03\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 13:02:12 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775505736;\n\tcv=none;\n b=NIC15BexIjXGix2NZ3St6K/YnnzSRVAikFod4tOQIf1MIbQMe8yHLtUbR+Xeq1fxuRMralPz1b8qa4EjVY5HHb70+9IBSZstq63MK6cwnj59ieyVNaxC48/di0v87bO8s9kLdJF1UhGk5+vOKk7uEbdtelFn1QjDOhDpQtwDrvuC+M1nwzqXpExTFfpdeKqC5kzNzoTTZFpGjubWRcIVLUNsnibLCPuo1It0I7OtrDKzmVFX0CWJr5peq00iqfsNYdOz87mml08wcn9y3oYDR1oi3oUSRHmPA/wBReSfG+mqseCryqfMqeGNslDq4WvjSqHBtm7AyU1BVDSPatejPw==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775505736; c=relaxed/relaxed;\n\tbh=lPSLhEO/t1n98OrRH4+WlgtQBOSzWDBbT00u5q2kC9Y=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=SNHKPzyC3YycqgxVF07JbdpxPlKd8I1ZkG3j6mpsg7ffZYXoGdBYIpUlSGQBJ4fH4pAXVla43quI9atk5yZuYbAAGpJaj8qc1Q4J8mTizHhnLy6FSjNGN6lzWoXBFZX6kO11RZzH+eBjMNuFutW7B3ugNKSa6s7ym8E+oZtYurR5Hi4zJ85QVgZSoqnE3Mde6bKr7VVSJT34pV8RhVA6/jleyEedYCOwp8QqPiuv2uwsXjy71gQLdVR1L/OPDJFLwpTLwUMIUuDxOt73k4yXRBn/2rpp6u8TKhkPQ+6F88wyocZ4TPP3hsuqZeQVuBG4ta4FsFkvT41YBVfGpsQgGA==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=fl12yo8e; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::532; helo=mail-pg1-x532.google.com;\n envelope-from=mkchauras@gmail.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775505733; x=1776110533;\n darn=lists.ozlabs.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=lPSLhEO/t1n98OrRH4+WlgtQBOSzWDBbT00u5q2kC9Y=;\n b=fl12yo8e/DgBy3qgmMsbiW8M7zPT39Q282FhYVqGk5Hv2MtGekzxBuOBma+CBQgqv5\n J8cgNP0iCCO/aSAYFHB5wdJdch9IkZGeh/0c6cx70h9IbF8p5nj2JFSBqI6Ud7pxHj1B\n 6fraX3lyky776S6nRhGhb9abWarFA5I71YlxaxgXGlXLULIMnxlTWeT95ckTAJZNgXor\n uy3/zN7n0pJzzXIgYTCTkyjRTrrKR+6zJXNHpcvbVMhqbvry8QNxezAl+XIV7axfT+/B\n C+Cu1SBUvJHRCJ5XcB3/wKjl8Hh4FA2xqUVqBjxTmEdcy9qpDwV8VdqZGadU5xW5BupG\n +v/Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775505733; x=1776110533;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=lPSLhEO/t1n98OrRH4+WlgtQBOSzWDBbT00u5q2kC9Y=;\n b=ZxaZco7syG6P3OKjrB5c6Wx8+TbXPUQlYYKtPdnDLWbt/7Ja+rAoQ/I1+Au317JlB5\n eB13Qd7Xisgd8L+g6WlxHA0KBRlrV8MTgaMp6tQnbqfT4aUVY7IoxFfxOnaG+KIoJx0p\n 6c3sdq9kcBASZuStcWMF4EfG9+kJRIzLFWktBVFfL61f6yyBHFiAvUGhzAu1UVZWbBIG\n HHudREQAQIZSEotgvcRC0FiS4RlPwp0uCPdCmuUTn1/Dem82O8f5qtOvSa/aXwNhd/Sy\n T1h/takzjC3d2fww06CEPFCXF3914Ia1H1csf1sPwdXwuUIbTlb/RvmLHM0OwaCnltO3\n xeNA==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCV7s3aA2dVpube2zSUYS6Cju4+/DPYJ6jUMqIRODcN7VpTBhFh1CK775r5N1C2aoiFWpRJDPbaeoXmwyow=@lists.ozlabs.org", "X-Gm-Message-State": "AOJu0YyWgxueSNHf+yNIMXapvdTQik4w8+KDK5xhW1Qy4VgpR7EGPXWG\n\t3evptMIy+O2roCJtxANamGfdSBRmUEIgmGelq+pzhHm3gXw1kF1d05ew", "X-Gm-Gg": "AeBDies37+eUVjb3fiPzgKCOBVJRHnNLstjRvSwMkstNEMG5twaR0wwTsQ/gD7meB6a\n\tvsSH6CNSF5AgtWgYjzbaWA9REDYR/qsmWbQsSGgGpQBJQ74N001VY9X3S9To5avNXzIV0tW+yO2\n\t5w1F1mjQM1jt6bWa/FCC7z0uz87ARQTNmSYl6nh7+SnX8jz789BsCbsnykR5CuVU/aDvWp7Ui0b\n\t9aPe1Py/qaNQhanRrr5gXwcFSiu0Sz7jWV6yKmXcqUgj2h/nX2Uu7m+ZPK8BD43xS2gNEPos5Um\n\t0uH7vZWkGQkbZGpXmw0lf57IkkUspnDly++gn5WA4gMxaqdzEQN/w0TsAMwnQvuwIzHawbPHbLP\n\tdPnnMlIoOBKmrnmFxu9owapfUX74iZU30/NF6y7fSMIhr5nG3CMRGhvAUvj8fRHbyJmkyUdlyVV\n\tjDfHBklAjqxF8s22skz9ytL3xi1s5Ot4t7EHeDwCzEnMFYChNIxFpXdUwY0Hi2WX/71B/mGo86w\n\tY0=", "X-Received": "by 2002:a17:903:3b8f:b0:2ae:cb0e:fd59 with SMTP id\n d9443c01a7336-2b28164cfebmr148221295ad.8.1775505732659;\n Mon, 06 Apr 2026 13:02:12 -0700 (PDT)", "From": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>", "To": "maddy@linux.ibm.com,\n\tmpe@ellerman.id.au,\n\tnpiggin@gmail.com,\n\tchleroy@kernel.org,\n\tpeterz@infradead.org,\n\tjpoimboe@kernel.org,\n\tjbaron@akamai.com,\n\taliceryhl@google.com,\n\trostedt@goodmis.org,\n\tardb@kernel.org,\n\tojeda@kernel.org,\n\tboqun@kernel.org,\n\tgary@garyguo.net,\n\tbjorn3_gh@protonmail.com,\n\tlossin@kernel.org,\n\ta.hindborg@kernel.org,\n\ttmgross@umich.edu,\n\tdakr@kernel.org,\n\tnathan@kernel.org,\n\tnick.desaulniers+lkml@gmail.com,\n\tmorbo@google.com,\n\tjustinstitt@google.com,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\trust-for-linux@vger.kernel.org,\n\tllvm@lists.linux.dev", "Cc": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>", "Subject": "[PATCH V10 1/4] rust: Separate host libraries to fix rmeta dependency\n conflict", "Date": "Tue, 7 Apr 2026 01:31:46 +0530", "Message-ID": "<20260406200149.3727922-2-mkchauras@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260406200149.3727922-1-mkchauras@gmail.com>", "References": "<20260406200149.3727922-1-mkchauras@gmail.com>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "When building Rust code for powerpc64le with LLVM=1 and -j1, rustc\nencounters an error: \"multiple candidates for `rmeta` dependency `core`\nfound\", with two candidates:\n1. The host's standard library from the rustup toolchain\n2. The kernel's custom libcore.rmeta in the rust/ directory\n\nThis occurs because the build system uses `-L$(objtree)/rust` for host\nlibrary builds (proc_macro2, quote, syn), which causes rustc to search\nthe rust/ directory. During this search, rustc finds both the kernel's\ncustom libcore.rmeta and gains access to the host's standard library,\ncreating a conflict.\n\nSeparate all host-side build artifacts (host libraries and proc macros)\ninto a dedicated rust/host/ subdirectory and use `-L$(objtree)/rust/host`\nfor host builds. This ensures host builds only search rust/host/ and\nnever encounter the kernel's libcore.rmeta.\n\nThe `--out-dir` flag is removed from cmd_rustc_procmacrolibrary because\nthe output directory is now created explicitly with `mkdir -p $(dir $@)`\nand the output file path is specified directly with `--emit=link=$@`,\nmaking `--out-dir` redundant.\n\nMoving the proc macros (libmacros and libpin_init_internal) to rust/host/\neliminates the need for special handling in rustdoc-pin_init, which can\nnow use the pin_init-flags variable directly instead of duplicating the\nflags with absolute paths.\n\nThe rust/host/ directory is added to clean-files to ensure it's removed\nduring `make clean`.\n\nLink: https://github.com/Rust-for-Linux/linux/issues/105\nLink: https://github.com/linuxppc/issues/issues/451\nSigned-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>\n---\n rust/Makefile | 56 +++++++++++++++++++++++++++------------------------\n 1 file changed, 30 insertions(+), 26 deletions(-)", "diff": "diff --git a/rust/Makefile b/rust/Makefile\nindex 9801af2e1e02..d8f34c4858b8 100644\n--- a/rust/Makefile\n+++ b/rust/Makefile\n@@ -3,6 +3,9 @@\n # Where to place rustdoc generated documentation\n rustdoc_output := $(objtree)/Documentation/output/rust/rustdoc\n \n+# Clean generated host directory\n+clean-files := host/\n+\n obj-$(CONFIG_RUST) += core.o compiler_builtins.o ffi.o\n always-$(CONFIG_RUST) += exports_core_generated.h\n \n@@ -27,7 +30,7 @@ endif\n \n obj-$(CONFIG_RUST) += exports.o\n \n-always-$(CONFIG_RUST) += libproc_macro2.rlib libquote.rlib libsyn.rlib\n+always-$(CONFIG_RUST) += host/libproc_macro2.rlib host/libquote.rlib host/libsyn.rlib\n \n always-$(CONFIG_RUST_KERNEL_DOCTESTS) += doctests_kernel_generated.rs\n always-$(CONFIG_RUST_KERNEL_DOCTESTS) += doctests_kernel_generated_kunit.c\n@@ -49,7 +52,7 @@ libmacros_extension := $(patsubst libmacros.%,%,$(libmacros_name))\n libpin_init_internal_name := $(shell MAKEFLAGS= $(RUSTC) --print file-names --crate-name pin_init_internal --crate-type proc-macro - </dev/null)\n libpin_init_internal_extension := $(patsubst libpin_init_internal.%,%,$(libpin_init_internal_name))\n \n-always-$(CONFIG_RUST) += $(libmacros_name) $(libpin_init_internal_name)\n+always-$(CONFIG_RUST) += host/$(libmacros_name) host/$(libpin_init_internal_name)\n \n # `$(rust_flags)` is passed in case the user added `--sysroot`.\n rustc_sysroot := $(shell MAKEFLAGS= $(RUSTC) $(rust_flags) --print sysroot)\n@@ -150,7 +153,7 @@ quiet_cmd_rustdoc = RUSTDOC $(if $(rustdoc_host),H, ) $<\n \tOBJTREE=$(abspath $(objtree)) \\\n \t$(RUSTDOC) $(filter-out $(skip_flags) --remap-path-prefix=% --remap-path-scope=%, \\\n \t\t\t$(if $(rustdoc_host),$(rust_common_flags),$(rust_flags))) \\\n-\t\t$(rustc_target_flags) -L$(objtree)/$(obj) \\\n+\t\t$(rustc_target_flags) -L$(objtree)/$(obj)$(if $(rustdoc_host),/host) \\\n \t\t-Zunstable-options --generate-link-to-definition \\\n \t\t--output $(rustdoc_output) \\\n \t\t--crate-name $(subst rustdoc-,,$@) \\\n@@ -247,7 +250,7 @@ rustdoc-kernel: private rustc_target_flags = --extern ffi --extern pin_init \\\n --extern build_error --extern macros \\\n --extern bindings --extern uapi\n rustdoc-kernel: $(src)/kernel/lib.rs rustdoc-core rustdoc-ffi rustdoc-macros \\\n- rustdoc-pin_init rustdoc-compiler_builtins $(obj)/$(libmacros_name) \\\n+ rustdoc-pin_init rustdoc-compiler_builtins $(obj)/host/$(libmacros_name) \\\n $(obj)/bindings.o FORCE\n \t+$(call if_changed,rustdoc)\n \n@@ -299,14 +302,14 @@ rusttestlib-pin_init_internal: $(src)/pin-init/internal/src/lib.rs \\\n \n rusttestlib-pin_init: private rustc_target_flags = $(pin_init-flags)\n rusttestlib-pin_init: $(src)/pin-init/src/lib.rs rusttestlib-macros \\\n- rusttestlib-pin_init_internal $(obj)/$(libpin_init_internal_name) FORCE\n+ rusttestlib-pin_init_internal $(obj)/host/$(libpin_init_internal_name) FORCE\n \t+$(call if_changed,rustc_test_library)\n \n rusttestlib-kernel: private rustc_target_flags = --extern ffi \\\n --extern build_error --extern macros --extern pin_init \\\n --extern bindings --extern uapi\n rusttestlib-kernel: $(src)/kernel/lib.rs rusttestlib-bindings rusttestlib-uapi \\\n- rusttestlib-build_error rusttestlib-pin_init $(obj)/$(libmacros_name) \\\n+ rusttestlib-build_error rusttestlib-pin_init $(obj)/host/$(libmacros_name) \\\n $(obj)/bindings.o FORCE\n \t+$(call if_changed,rustc_test_library)\n \n@@ -525,26 +528,27 @@ $(obj)/exports_kernel_generated.h: $(obj)/kernel.o FORCE\n \n quiet_cmd_rustc_procmacrolibrary = $(RUSTC_OR_CLIPPY_QUIET) PL $@\n cmd_rustc_procmacrolibrary = \\\n+\tmkdir -p $(dir $@); \\\n \t$(if $(skip_clippy),$(RUSTC),$(RUSTC_OR_CLIPPY)) \\\n \t\t$(filter-out $(skip_flags),$(rust_common_flags) $(rustc_target_flags)) \\\n \t\t--emit=dep-info=$(depfile) --emit=link=$@ --crate-type rlib -O \\\n-\t\t--out-dir $(objtree)/$(obj) -L$(objtree)/$(obj) \\\n+\t\t-L$(objtree)/$(obj)/host \\\n \t\t--crate-name $(patsubst lib%.rlib,%,$(notdir $@)) $<\n \n-$(obj)/libproc_macro2.rlib: private skip_clippy = 1\n-$(obj)/libproc_macro2.rlib: private rustc_target_flags = $(proc_macro2-flags)\n-$(obj)/libproc_macro2.rlib: $(src)/proc-macro2/lib.rs FORCE\n+$(obj)/host/libproc_macro2.rlib: private skip_clippy = 1\n+$(obj)/host/libproc_macro2.rlib: private rustc_target_flags = $(proc_macro2-flags)\n+$(obj)/host/libproc_macro2.rlib: $(src)/proc-macro2/lib.rs FORCE\n \t+$(call if_changed_dep,rustc_procmacrolibrary)\n \n-$(obj)/libquote.rlib: private skip_clippy = 1\n-$(obj)/libquote.rlib: private skip_flags = $(quote-skip_flags)\n-$(obj)/libquote.rlib: private rustc_target_flags = $(quote-flags)\n-$(obj)/libquote.rlib: $(src)/quote/lib.rs $(obj)/libproc_macro2.rlib FORCE\n+$(obj)/host/libquote.rlib: private skip_clippy = 1\n+$(obj)/host/libquote.rlib: private skip_flags = $(quote-skip_flags)\n+$(obj)/host/libquote.rlib: private rustc_target_flags = $(quote-flags)\n+$(obj)/host/libquote.rlib: $(src)/quote/lib.rs $(obj)/host/libproc_macro2.rlib FORCE\n \t+$(call if_changed_dep,rustc_procmacrolibrary)\n \n-$(obj)/libsyn.rlib: private skip_clippy = 1\n-$(obj)/libsyn.rlib: private rustc_target_flags = $(syn-flags)\n-$(obj)/libsyn.rlib: $(src)/syn/lib.rs $(obj)/libquote.rlib FORCE\n+$(obj)/host/libsyn.rlib: private skip_clippy = 1\n+$(obj)/host/libsyn.rlib: private rustc_target_flags = $(syn-flags)\n+$(obj)/host/libsyn.rlib: $(src)/syn/lib.rs $(obj)/host/libquote.rlib FORCE\n \t+$(call if_changed_dep,rustc_procmacrolibrary)\n \n quiet_cmd_rustc_procmacro = $(RUSTC_OR_CLIPPY_QUIET) P $@\n@@ -553,20 +557,20 @@ quiet_cmd_rustc_procmacro = $(RUSTC_OR_CLIPPY_QUIET) P $@\n \t\t-Clinker-flavor=gcc -Clinker=$(HOSTCC) \\\n \t\t-Clink-args='$(call escsq,$(KBUILD_PROCMACROLDFLAGS))' \\\n \t\t--emit=dep-info=$(depfile) --emit=link=$@ --extern proc_macro \\\n-\t\t--crate-type proc-macro -L$(objtree)/$(obj) \\\n+\t\t--crate-type proc-macro -L$(objtree)/$(obj)/host \\\n \t\t--crate-name $(patsubst lib%.$(libmacros_extension),%,$(notdir $@)) \\\n \t\t@$(objtree)/include/generated/rustc_cfg $<\n \n # Procedural macros can only be used with the `rustc` that compiled it.\n-$(obj)/$(libmacros_name): private rustc_target_flags = \\\n+$(obj)/host/$(libmacros_name): private rustc_target_flags = \\\n --extern proc_macro2 --extern quote --extern syn\n-$(obj)/$(libmacros_name): $(src)/macros/lib.rs $(obj)/libproc_macro2.rlib \\\n- $(obj)/libquote.rlib $(obj)/libsyn.rlib FORCE\n+$(obj)/host/$(libmacros_name): $(src)/macros/lib.rs $(obj)/host/libproc_macro2.rlib \\\n+ $(obj)/host/libquote.rlib $(obj)/host/libsyn.rlib FORCE\n \t+$(call if_changed_dep,rustc_procmacro)\n \n-$(obj)/$(libpin_init_internal_name): private rustc_target_flags = $(pin_init_internal-flags)\n-$(obj)/$(libpin_init_internal_name): $(src)/pin-init/internal/src/lib.rs \\\n- $(obj)/libproc_macro2.rlib $(obj)/libquote.rlib $(obj)/libsyn.rlib FORCE\n+$(obj)/host/$(libpin_init_internal_name): private rustc_target_flags = $(pin_init_internal-flags)\n+$(obj)/host/$(libpin_init_internal_name): $(src)/pin-init/internal/src/lib.rs \\\n+ $(obj)/host/libproc_macro2.rlib $(obj)/host/libquote.rlib $(obj)/host/libsyn.rlib FORCE\n \t+$(call if_changed_dep,rustc_procmacro)\n \n # `rustc` requires `-Zunstable-options` to use custom target specifications\n@@ -665,7 +669,7 @@ $(obj)/compiler_builtins.o: $(src)/compiler_builtins.rs $(obj)/core.o FORCE\n $(obj)/pin_init.o: private skip_gendwarfksyms = 1\n $(obj)/pin_init.o: private rustc_target_flags = $(pin_init-flags)\n $(obj)/pin_init.o: $(src)/pin-init/src/lib.rs $(obj)/compiler_builtins.o \\\n- $(obj)/$(libpin_init_internal_name) $(obj)/$(libmacros_name) FORCE\n+ $(obj)/host/$(libpin_init_internal_name) $(obj)/host/$(libmacros_name) FORCE\n \t+$(call if_changed_rule,rustc_library)\n \n # Even if normally `build_error` is not a kernel object, it should still be\n@@ -699,7 +703,7 @@ $(obj)/uapi.o: $(src)/uapi/lib.rs \\\n $(obj)/kernel.o: private rustc_target_flags = --extern ffi --extern pin_init \\\n --extern build_error --extern macros --extern bindings --extern uapi\n $(obj)/kernel.o: $(src)/kernel/lib.rs $(obj)/build_error.o $(obj)/pin_init.o \\\n- $(obj)/$(libmacros_name) $(obj)/bindings.o $(obj)/uapi.o FORCE\n+ $(obj)/host/$(libmacros_name) $(obj)/bindings.o $(obj)/uapi.o FORCE\n \t+$(call if_changed_rule,rustc_library)\n \n ifdef CONFIG_JUMP_LABEL\n", "prefixes": [ "V10", "1/4" ] }