[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48387736.9050004@goop.org>
Date: Sat, 24 May 2008 21:14:46 +0100
From: Jeremy Fitzhardinge <jeremy@...p.org>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: Sam Ravnborg <sam@...nborg.org>,
linux-kbuild <linux-kbuild@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Roman Zippel <zippel@...ux-m68k.org>
Subject: Re: [RFC PATCH] kconfig: introduce KCONFIG_* symbols for .c files
Andrew Morton wrote:
> It could help to get us out of the occasional sticky situation, but it
>
I think if you know you can use the if(KCONFIG_) technique, then one
would tend to structure things so that you do it as much as possible.
Ideally you'd use CONFIG vars in Makefiles to make code go away
entirely, and if (KCONFIG_) in .c files to do conditional compilation.
> does seem a bit risky. What happens with Kconfig variables which are
> just not known about at all with some .configs?
>
> Silly example, one could add
>
> if (KCONFIG_DVB_VES1820)
>
> to kernel/sched.c and that would work happily until someone sets DVB=n,
> in which case I assume KCONFIG_DVB_VES1820 doesn't get defined
> anywhere?
>
> A more realistic example might be using an x86-only KCONFIG_* in non-x86
> code.
>
Well, logically that means that all config vars are always "known", even
if they can never be defined. I don't know what the practicalities of
that are: can all Kconfig files everywhere reasonably be scanned to
produce the symbol list?
J
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists