rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Manas <manas18244@iiitd.ac.in>
To: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Cc: rust-for-linux@vger.kernel.org
Subject: Re: Missing RUST_EXAMPLE option in linux-next-20210331
Date: Fri, 2 Apr 2021 06:05:03 +0530	[thread overview]
Message-ID: <20210402003503.exbxsfickscdvmci@nitro-5> (raw)
In-Reply-To: <CANiq72kjwKuRCzeB54JPpCfBO7hfzZKAoAHBtbSBAzfvZY8d0A@mail.gmail.com>

On Thu, Apr 01, 2021 at 05:07:06PM +0200, Miguel Ojeda wrote:
> Hi Manas,
> 
> On Thu, Apr 1, 2021 at 8:19 AM Manas <manas18244@iiitd.ac.in> wrote:
> >
> > I am working on a device driver in rust in linux-next as an academic
> > project. I used the following command to create .config:
> >
> > $ make LLVM=1 menuconfig
> >
> > But, sometimes the RUST_EXAMPLE option is not visible in menuconfig
> > (under /Device Drivers/Character devices/). It seemingly happens at
> > random that this option disappears, despite having a working rust
> > nightly environment (and other dependencies).
> >
> > My rust nightly version is 2021-02-20-x86_64-unknown-linux-gnu, with
> > rustc 1.52.0-nightly.
> >
> > Can someone point me to why is this happening?
> 
> Rust support in the kernel (`RUST`) defaults to off at the moment, so
> if created a new configuration from scratch, it is likely that it
> ended up disabled, which in turn makes everything that depends on Rust
> disappear, including `RUST_EXAMPLE`.
> 
> Please check in `General setup` --> `Rust support` if it is enabled.
It was also not present.

Nevertheless, I tweaked around a little bit and found that when I enabled
CONFIG_COMPILE_TEST, then it removed CONFIG_RUST and RUST_EXAMPLE,
(while HAS_RUST=y).

But CONFIG_COMPILE_TEST's documentation mentions to enable it to build
everything. This confused me at that moment.

-- 
Manas
CSAM Undergraduate | 2022
IIIT-Delhi, India

  reply	other threads:[~2021-04-02  0:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-01  6:18 Missing RUST_EXAMPLE option in linux-next-20210331 Manas
2021-04-01 11:31 ` Geert Stappers
2021-04-01 11:59   ` Manas
2021-04-01 18:38     ` Geert Stappers
2021-04-01 15:07 ` Miguel Ojeda
2021-04-02  0:35   ` Manas [this message]
2021-04-02  1:19     ` Miguel Ojeda
2021-04-02  1:47       ` Manas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210402003503.exbxsfickscdvmci@nitro-5 \
    --to=manas18244@iiitd.ac.in \
    --cc=miguel.ojeda.sandonis@gmail.com \
    --cc=rust-for-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).