Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1468009
| From | Cristina-Gabriela Moraru <cristina.moraru09@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute |
| Date | 2016-08-22 21:50 +0200 |
| Message-ID | <s93om-2au-35@gated-at.bofh.it> (permalink) |
| References | <s7eHf-5l0-9@gated-at.bofh.it> <s7HpU-7RC-35@gated-at.bofh.it> <s7NYl-3GZ-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2016-08-19 11:07 GMT+02:00 Michal Marek <mmarek@suse.com>: > On 2016-08-18 19:55, Luis R. Rodriguez wrote: >> On Wed, Aug 17, 2016 at 09:26:58PM +0200, Cristina Moraru wrote: >> >>> This patchset implements dynamic pegging of kconfig symbol >>> into driver modinfo section >> >> First a little bit of motivation here helps, so let me try to >> help fill in some gaps. This may help explain what you have >> been working on a bit more. >> >> First, for those that were not Cc'd but curious about this work >> so far, you can read the patches here: >> >> Original cover letter: >> >> https://lkml.kernel.org/r/1471462023-119645-1-git-send-email-cristina.moraru09@gmail.com >> >> https://marc.info/?l=linux-kernel&m=147146213519750&w=2 - patch 1 >> https://marc.info/?l=linux-kernel&m=147146209019744&w=2 - patch 2 >> https://marc.info/?l=linux-kernel&m=147146211819747&w=2 - patch 3 >> https://marc.info/?l=linux-kernel&m=147146209119745&w=2 - patch 4 >> https://marc.info/?l=linux-kernel&m=147146209519746&w=2 - patch 5 >> >> There are a few situations in which you may want to extract a >> subset of Kconfig CONFIG_* symbols for a system. At least when >> only considering modules: >> >> a) When optimizing build requirements for a kernel for a system. >> That is you boot into a distro kernel and then want to build >> a slim kernel only with sensible kernel configuration options. >> >> b) When you are on a distribution kernel but the distribution >> kernel provided lacks hardware support for your device, you >> may either want to upgrade the full kernel in which case you >> want to do a) or -- you may want to just a backports release >> which provides just the modules you need, you'd use it on top >> of the distribution kernel. > > c) Having the mapping in sysfs would allow to simplify > streamline_config.pl avoid parsing Makefiles in perl. Only if the patch > did not depend on streamline_config.pl :). One idea would be to generate > the Module.ksymb in a similar way we generate the modules.builtin file: > Generate an alternate include/config/*.conf with all CONFIG_FOO=m > replaced with > > CONFIG_FOO=m-CONFIG_FOO > > and in the Makefile, iterate over $(filter m-CONFIG_%, $(.VARIABLES)) to > create the mapping. This would also properly cover cases where we build > the $(obj-m) list from another list. It would certainly create other > corner cases, but it's worth trying IMO. > That's interesting. > Another thing is that we do not necessarily need to record this > information in .modinfo, but we can generate a list in > /lib/modules/`uname -r`/ for consumption. It could also include drivers > that are builtin in the current configuration. > > Michal Thank you, Cristina
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH 0/5] Add CONFIG symbol as module attribute Cristina Moraru <cristina.moraru09@gmail.com> - 2016-08-17 21:30 +0200
[RFC PATCH 2/5] Add CONFIG symbol to module as compilation parameter Cristina Moraru <cristina.moraru09@gmail.com> - 2016-08-17 21:30 +0200
Re: [RFC PATCH 2/5] Add CONFIG symbol to module as compilation parameter "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-19 03:00 +0200
Re: [RFC PATCH 2/5] Add CONFIG symbol to module as compilation parameter "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-19 03:40 +0200
Re: [RFC PATCH 2/5] Add CONFIG symbol to module as compilation parameter Cristina-Gabriela Moraru <cristina.moraru09@gmail.com> - 2016-08-20 17:20 +0200
Re: [RFC PATCH 2/5] Add CONFIG symbol to module as compilation parameter "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-23 21:20 +0200
[RFC PATCH 4/5] Set KCONFIG_KSYMB as value for kconfig_ksymb module attribute Cristina Moraru <cristina.moraru09@gmail.com> - 2016-08-17 21:30 +0200
Re: [RFC PATCH 4/5] Set KCONFIG_KSYMB as value for kconfig_ksymb module attribute "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-19 04:10 +0200
Re: [RFC PATCH 4/5] Set KCONFIG_KSYMB as value for kconfig_ksymb module attribute Cristina-Gabriela Moraru <cristina.moraru09@gmail.com> - 2016-08-20 17:20 +0200
Re: [RFC PATCH 4/5] Set KCONFIG_KSYMB as value for kconfig_ksymb module attribute "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-23 21:20 +0200
[RFC PATCH 3/5] Trigger Module.ksymb generation in Makefile Cristina Moraru <cristina.moraru09@gmail.com> - 2016-08-17 21:30 +0200
Re: [RFC PATCH 3/5] Trigger Module.ksymb generation in Makefile "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-18 21:50 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-19 04:10 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute Michal Marek <mmarek@suse.com> - 2016-08-19 11:10 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute Cristina-Gabriela Moraru <cristina.moraru09@gmail.com> - 2016-08-22 21:50 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-23 23:40 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute Michal Marek <mmarek@suse.com> - 2016-08-24 13:10 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-24 18:40 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute Naveen Kumar <nk1383886@gmail.com> - 2016-08-24 19:40 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute Cristina-Gabriela Moraru <cristina.moraru09@gmail.com> - 2016-08-22 21:40 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-08-23 21:20 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute Christoph Hellwig <hch@lst.de> - 2016-08-25 09:50 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute Johannes Berg <johannes@sipsolutions.net> - 2016-08-25 10:40 +0200
Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute Michal Marek <mmarek@suse.com> - 2016-08-25 10:50 +0200
csiph-web