From: Randy Dunlap <rdunlap@xenotime.net>
To: Henrik Carlqvist <hc1@poolhem.se>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tristate and bool not enogh for Kconfig anymore
Date: Sun, 21 Oct 2007 09:45:17 -0700 [thread overview]
Message-ID: <20071021094517.78dd1916.rdunlap@xenotime.net> (raw)
In-Reply-To: <20071021122402.2f0f3b40.hc1@poolhem.se>
On Sun, 21 Oct 2007 12:24:02 +0200 Henrik Carlqvist wrote:
> On Sun, 21 Oct 2007 00:47:38 -0400
> Valdis.Kletnieks@vt.edu wrote:
>
> > On Sat, 20 Oct 2007 21:17:00 +0200, Sam Ravnborg said:
> > > I assume
> > > depends on MODULES
> > >
> > > should do the trick.
> >
> > Umm... I think that will work backwards, and give you CONFIG_FOO=y
> > if.f the kernel *supports* modules. What he needs is to be able to say
> > CONFIG_FOO=n or CONFIG_FOO=m, but *ban* CONFIG_FOO=y.
>
> Yes, thats right, MODULES does not ban y as would be needed. As an example
Agreed.
> I tried to do a quick test, I edited drivers/scsi/qla2xxx/Kconfig to look
> like this:
>
> -8<-------------------------------------------------------
> config SCSI_QLA_FC
> tristate "QLogic QLA2XXX Fibre Channel Support"
> depends on PCI && SCSI && MODULES
> select SCSI_FC_ATTRS
> select FW_LOADER
> ---help---
> This qla2xxx driver supports all QLogic Fibre Channel
> PCI and PCIe host adapters.
>
> By default, firmware for the ISP parts will be loaded
> via the Firmware Loader interface.
>
> ISP Firmware Filename
> ---------- -----------------
> 21xx ql2100_fw.bin
> 22xx ql2200_fw.bin
> 2300, 2312, 6312 ql2300_fw.bin
> 2322, 6322 ql2322_fw.bin
> 24xx ql2400_fw.bin
>
> Upon request, the driver caches the firmware image until
> the driver is unloaded.
>
> Firmware images can be retrieved from:
>
> ftp://ftp.qlogic.com/outgoing/linux/firmware/
> -8<-------------------------------------------------------
>
> The only thing that I did change was that I added "&& MODULES" to the
> depends line. However, this only causes the driver to be possible to build
> when you build a kernel with module support. Still tristate allows you to
> build it both as a module and as a driver built into the kernel. However,
> when built into the kernel the driver is unusable as it needs its firmware
> which it can't reach.
>
> Is there any other way to specify that a functionality can only be built
> as a module, not built into the kernel?
config FOO
depends on BAR && m
restricts FOO to module-only.
> In my firsta attempts to post about these tests my post ended up not on
> the mailing list but as a reply to Sam Ravnborg only, apologies for
> that...
---
~Randy
next prev parent reply other threads:[~2007-10-21 16:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-20 11:57 [PATCH] Kconfig bug Nick Warne
2007-10-20 12:42 ` tristate and bool not enogh for Kconfig anymore Henrik Carlqvist
2007-10-20 19:17 ` Sam Ravnborg
2007-10-20 21:56 ` Randy Dunlap
2007-10-21 4:47 ` Valdis.Kletnieks
2007-10-21 10:24 ` Henrik Carlqvist
2007-10-21 16:45 ` Randy Dunlap [this message]
2007-10-21 20:42 ` Henrik Carlqvist
2007-10-21 21:03 ` Sam Ravnborg
2007-10-22 0:47 ` Randy Dunlap
2007-10-22 3:14 ` Randy Dunlap
2007-10-22 4:42 ` Randy Dunlap
2007-10-27 23:37 ` Roman Zippel
2007-10-22 10:11 ` Christoph Hellwig
2007-10-22 10:32 ` Alexander E. Patrakov
2007-10-22 10:57 ` Christoph Hellwig
2007-10-22 11:27 ` Alexander E. Patrakov
2007-10-22 12:53 ` Christoph Hellwig
2007-10-22 13:18 ` Alexander E. Patrakov
2007-10-22 11:46 ` Helge Hafting
2007-10-22 21:50 ` Henrik Carlqvist
2007-10-27 12:26 ` [PATCH] Kconfig bug Nick Warne
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=20071021094517.78dd1916.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=hc1@poolhem.se \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®