kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Kconfig in external modules
@ 2018-02-22 13:06 Gustavo Leite
  2018-02-22 13:37 ` valdis.kletnieks at vt.edu
  0 siblings, 1 reply; 5+ messages in thread
From: Gustavo Leite @ 2018-02-22 13:06 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-22 15:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-22 13:06 Kconfig in external modules Gustavo Leite
2018-02-22 13:37 ` 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

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