All of lore.kernel.org
 help / color / mirror / Atom feed
From: DervishD <lkml@dervishd.net>
To: coywolf@lovecn.org
Cc: lkml <linux-kernel@vger.kernel.org>, sam@ravnborg.org
Subject: Re: [question] pass CONFIG_FOO to CC problem
Date: Wed, 22 Jun 2005 20:12:07 +0200	[thread overview]
Message-ID: <20050622181207.GC57@DervishD> (raw)
In-Reply-To: <2cd57c90050622013937d2c209@mail.gmail.com>

    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...

  parent reply	other threads:[~2005-06-22 18:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22  8:39 [question] pass CONFIG_FOO to CC problem Coywolf Qi Hunt
2005-06-22  9:54 ` Ian Campbell
2005-06-22 10:11   ` Coywolf Qi Hunt
2005-06-22 18:12 ` DervishD [this message]
2005-06-23  2:04   ` Coywolf Qi Hunt

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=20050622181207.GC57@DervishD \
    --to=lkml@dervishd.net \
    --cc=coywolf@lovecn.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.