lkml.org 
[lkml]   [2005]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [question] pass CONFIG_FOO to CC problem
    Hi Coywolf :)

* Coywolf Qi Hunt <coywolf@gmail.com> dixit:
> I was expecting kbuild passes CONFIG_FOO from .config to CC
> -DCONFIG_FOO, but it doesn't. So I have to add
>
> ifdef CONFIG_FOO
> EXTRA_CFLAGS += -DCONFIG_FOO
> endif

NO! You don't do it that way in the kernel. Think: if you have to
pass a '-D' option for each config item you set, you will end up with
TONS of '-D' options, in fact you probably exceed the command line
size limit.

You have to include <linux/config.h> if I recall correctly ;)

Good luck!

Raúl Núñez de Arenas Coronado

--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-22 20:19    [W:0.050 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site