All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Denys Dmytriyenko <denis@denix.org>
Cc: "Hart, Darren" <darren.hart@intel.com>,
	Scott Rifenbark <srifenbark@gmail.com>,
	openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] kernel-module-split: Add support for KERNEL_MODULE_AUTOLOAD and KERNEL_MODULE_PROBECONF
Date: Tue, 22 Jul 2014 13:17:30 +0200	[thread overview]
Message-ID: <20140722111729.GQ22875@jama> (raw)
In-Reply-To: <20140623225457.GA1580@denix.org>

[-- Attachment #1: Type: text/plain, Size: 3012 bytes --]

On Mon, Jun 23, 2014 at 06:54:57PM -0400, Denys Dmytriyenko wrote:
> Sorry for the delay...
> 
> On Tue, Jun 17, 2014 at 05:46:58PM +0100, Richard Purdie wrote:
> > On Tue, 2014-06-17 at 14:53 +0000, Hart, Darren wrote:
> > > Adding Scott R.
> > 
> > I do need to sort out a documentation update.
> > 
> > > I was just looking into that. It appears the ref-manual.html is the place
> > > to update. The glossary has a module_autoload definition, which I suppose
> > > needs to be replaced with KERNEL_MODULE_AUTOLOAD, which  will have
> > > slightly different semantics.
> > > 
> > > If I understand this correctly, the old model was:
> > > 
> > > 	module_autoload_foo = "foo"
> > > 	module_autoload_bar = "bar"
> > > 
> > > Although the following line in the docs confuses me:
> > > 
> > > 	module_autoload_<modname> = "modname1 modname2 modname3"
> > 
> > That is just wrong.
> 
> Yeah, I think I confused people here... During one of the discussions I tried 
> to mention that standard /etc/modules-load.d/ can have a single file with 
> multiple module entries in it (and the above line was given as an example). 
> Unfortunately, kernel-module-split class couldn't handle that and required 
> placing one module entry per file. So the old syntax would look like this:
> 
> module_autoload_<modname1> = "modname1"
> module_autoload_<modname2> = "modname2"
> etc.
> 
> Sorry for the confusion.

Sometimes basename != module name and having multiple entries in one
/etc/modules-load.d/file is sometimes useful, see

http://lists.openembedded.org/pipermail/openembedded-core/2014-July/094645.html

which returns support for both features

> > > And now, if I interpreted the commit comment correctly, it should look
> > > like:
> > > 
> > > 	KERNEL_MODULE_AUTOLOAD = "foo"
> > > 	...
> > > 	KERNEL_MODULE_AUTOLOAD += "bar"
> > 
> > Correct.
> > 
> > > I'm not sure how KERNEL_MODULE_PROBECONF is involved, or what value it
> > > brings beyond module_conf. From what I can tell, the changes now require:
> > > 
> > > 	KERNEL_MODULE_PROBECONF = "foo"
> > > 
> > > 	module_conf_foo = "options foo baz=1"
> > > 
> > > (/me notes the order of operations is non-obvious here "if modconf and
> > > basename in modconflist")
> > 
> > For module_conf, the value is the build system can know which variables
> > were set and account for them in the task checksums. If it doesn't have
> > the list, we'd have to iterate the whole data store and that is a
> > *painfully* slow operation.
> > 
> > module_conf isn't commonly used so maintaining a list isn't too much of
> > a hardship IMO.
> > 
> > > Do I have this correct?
> > 
> > Yes.
> > 
> > CHeers,
> > 
> > Richard
> > 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2014-07-22 11:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-13 15:46 [PATCH] kernel-module-split: Add support for KERNEL_MODULE_AUTOLOAD and KERNEL_MODULE_PROBECONF Richard Purdie
2014-06-13 19:02 ` Bruce Ashfield
2014-06-13 19:13   ` Denys Dmytriyenko
2014-06-17 14:53     ` Hart, Darren
2014-06-17 16:46       ` Richard Purdie
2014-06-23 22:54         ` Denys Dmytriyenko
2014-07-22 11:17           ` Martin Jansa [this message]
2014-06-13 21:03   ` Martin Jansa

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=20140722111729.GQ22875@jama \
    --to=martin.jansa@gmail.com \
    --cc=darren.hart@intel.com \
    --cc=denis@denix.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=srifenbark@gmail.com \
    /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.