Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2728092pxb; Mon, 17 Jan 2022 04:42:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIuFsfbkl0j9gOfW5be4MiaMbZKd1z9OzHg71HnOMN+C0R/ISXtdD2l+BNQ21EW9AkWXJu X-Received: by 2002:a63:8c48:: with SMTP id q8mr19314466pgn.490.1642423335584; Mon, 17 Jan 2022 04:42:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642423335; cv=none; d=google.com; s=arc-20160816; b=dOi7WLIfCGd1pAky0RagdKzLH6NE6iiK6atvywkKVJ0ldsBquKE4QTZJDxM3mk7QNF ZrqJAjVz8/IiXQpcYDTNdJyCxbo0dI6Vc1rtEExBIFyC0qQsORiqWV5qUOBlDP1arj0b b+PoB8IfgKN+nun9orDIdNMlBmrLXoITsclnPfirKhKSChC1+xrP6V4kOdWdEY8Wi0TO 3D5pNJrQCJCqyeg1s1YDw6Vr4b4FXZAhzV/81IS7FB/SIZatIJOCF5Bd9yhoZM6j/Q2B GoHc8580VkgWabqf61xLvbCAqF6BDV7Ycg3ij9yAC3Gou6KGOlYi/LTkyQfbinEumag4 4Z5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NXJNU8A/vrNI4Y+ivgE9K8Fmf8JFY+TijAbHrzk15XA=; b=gfyiTJJ8vsZjVwVGCGoUWuP5dX5IUCl6HpYeOonfk0uiEQXxZ4P/p29PsrsImnLRNc kx3E4LQEpvFeuqSHFg/BOR3eIWZdtW5t1TvBg1uQDx8bZ1HXOrKnFZoaC7kNwCKFEVZI 6PVtp8WJwJzJJcM79DvpxesenDye3DQ4F5UG9KfEFlCy/Yura7jPcPzldxA24nyhjWJy Mb+OMOt+SR7OOuE1INt1zDaodc3iopP+Vdn7KosUCyXwEMMZOIFmA2ODXnec+yWzVQJ1 8LUybsC6BPwlxSelI2l6wuAF8ad+q62/ZlKyM9TGnlUQgaNUtbdshx036I6k7hBXqNv1 2G0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PzG00sge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si13777920plr.395.2022.01.17.04.42.02; Mon, 17 Jan 2022 04:42:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PzG00sge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237094AbiAQEpl (ORCPT + 99 others); Sun, 16 Jan 2022 23:45:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiAQEpi (ORCPT ); Sun, 16 Jan 2022 23:45:38 -0500 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569C8C061574; Sun, 16 Jan 2022 20:45:38 -0800 (PST) Received: by mail-il1-x130.google.com with SMTP id d3so13787322ilr.10; Sun, 16 Jan 2022 20:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NXJNU8A/vrNI4Y+ivgE9K8Fmf8JFY+TijAbHrzk15XA=; b=PzG00sgeoimoo1zcwhcGVtlDlW3/+n1GDlK7V+RyNpRuHCMClBHy0YdteLUK1u/Qd+ uR+lG457kbxkO4LTBEt5Rq1APHSKpT1xSp19GmSjJLUoMgT3D2W6v2jumaYJ0UzEXJ3T vFd3zTLgbvSFjcZ4pgjzM6dNI9V/05BQyBlzCapxqKrFtRvM7n1YQfXgsOZAhwJRDHWF nP9DK/6G6XuhF4if4s7BccDxwgNNE5zF4I1MYlNfoG6eNLlmEPpichojwoYsCQNUgImM YSRM+511RAMm3djS5h4cOb0gN3TBDJz3LvPHI0s1W2n0iWRO/1TRD1/pe7kpP7CCKs72 JUrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NXJNU8A/vrNI4Y+ivgE9K8Fmf8JFY+TijAbHrzk15XA=; b=HiaZXqH2QUEUFSJxbd/95TgJ4LKK7caktx5swsbBZKaZ7uxrnj27Q3DcbuR9vumJV2 r7IzZrLaoGgu380HfWEMMfxQd5sQD3OUzuEq3uAMuhqR1xsczvywpE5QGN/IwlsqOtAz z3Pm71NlifALfRJDVs8naGXEHRP91fNp8y48NLpyI0vzOQ7/Z2uDBUPD+VJyR5pl19cl dpkqpwWRUIf+au0wCX6+r2an2krGRqKd3CPllPTSRrJPKaSlBK98I/AIZqVUxgLaIoMi RtvQ4QFTYCOFrh3EZtapsjV6QYJPxR9gUZ1q1Fxgx3VFPVzzoJmQ/R0KD05jckEXcPPT p2Eg== X-Gm-Message-State: AOAM532ilXJZuyWuv4UsLb2s1nt8GYU+bm10sjDaUpvFjwl2mDCCPOo4 TUyc3O1JoHQ7pl9IaGrkS69J0R9RzzDPRRXcTvXwcuwg X-Received: by 2002:a05:6e02:1a41:: with SMTP id u1mr1776348ilv.151.1642394737646; Sun, 16 Jan 2022 20:45:37 -0800 (PST) MIME-Version: 1.0 References: <20211206140313.5653-1-ojeda@kernel.org> <20211206140313.5653-16-ojeda@kernel.org> In-Reply-To: From: Miguel Ojeda Date: Mon, 17 Jan 2022 05:45:26 +0100 Message-ID: Subject: Re: [PATCH 15/19] Kbuild: add Rust support To: Masahiro Yamada Cc: Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux , Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Alex Gaynor , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , Michael Ellerman , Sven Van Asbroeck , Gary Guo , Boris-Chengbiao Zhou , Boqun Feng , Douglas Su , Dariusz Sosnowski , Antonio Terceiro , Daniel Xu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, On Sat, Dec 11, 2021 at 4:54 PM Masahiro Yamada wrote: > > Do you really want to support CLIPPY=1 > in addition to KBUILD_CLIPPY=1 ? > > (Refer to C= V= M= O=, which checks $(origin ) ) I implemented both because I saw the pattern used for `V=`, `W=` etc., and I thought I should follow it too. If I understand correctly, the split between `KBUILD_*` and the shorthands is there to avoid conflicts if the caller had set very short environment variables for some reason -- is this correct? If you prefer only one, I think writing `KBUILD_CLIPPY=1` would be too long for command line usage; so I would prefer `CLIPPY=1` in that case. > Is there any reason why > you did not write like > > core-$(CONFIG_RUST) += rust/ > > ? I have moved it inside the `rust/Makefile` -- please take a look at the next round I am sending in a bit. > extra-y does nothing for 'make modules'. > Is this your expected behavior? > > (commit d0e628cd817f3) Thanks for the reference! Changed to `always-y`. Indeed, this is needed in `make modules` because we need to trigger the compilation of `core.o` etc. for the `.rmeta` files. > Why is .SECONDEXPANSION: needed ? It was needed at some point for the prototype more than a year ago; however, it isn't the case anymore, so I have removed it. I have also made those variables simply expanded ones. Cheers, Miguel