kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: gustavoleite.ti@gmail.com (Gustavo Leite)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Kconfig in external modules
Date: Thu, 22 Feb 2018 10:06:43 -0300	[thread overview]
Message-ID: <20180222130643.GA7819@gmail.com> (raw)

Hi all,

The kbuild documentation states that is possible to use CONFIG_ options in
external (out-of-tree) modules. However, is it possible for an external module
to define new options in a local Kconfig file?

For example, I would have 2 files

    /path/to/module/Kconfig
    /path/to/module/.config

when I run the usual command to build external module

    $ make -C /lib/modules/`uname -r`/build M=/path/to/module modules

the options present in the local .config file would be exported by kbuild as C
#define's and make variables to be used in the module. The build system supports
such feature?

Thanks,
~ Gustavo

             reply	other threads:[~2018-02-22 13:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-22 13:06 Gustavo Leite [this message]
2018-02-22 13:37 ` Kconfig in external modules valdis.kletnieks at vt.edu
2018-02-22 14:13   ` Gustavo Leite
2018-02-22 15:15     ` valdis.kletnieks at vt.edu
2018-02-22 15:42       ` Gustavo Leite

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=20180222130643.GA7819@gmail.com \
    --to=gustavoleite.ti@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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).