From mboxrd@z Thu Jan 1 00:00:00 1970 From: gustavoleite.ti@gmail.com (Gustavo Leite) Date: Thu, 22 Feb 2018 10:06:43 -0300 Subject: Kconfig in external modules Message-ID: <20180222130643.GA7819@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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