Skip to contentSkip to conversation

using kernel.bbclass rename hook for external modules as well

RFC Koen Kooi 4 participants 6 messages Oct 22, 2010 – Oct 23, 2010

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Currently kernel.bbclass splits and renames modules into kernel-module-<foo>, but module.bbclass doesn't. What's your opinion on making modules.bbclass follow the same logic for consistency? To make upgrade paths work the 'kernel-modules' metapackage would be ${PN} for external modules.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMwaYwMkyGM64RGpERAjvrAJ90+c1Eoz/1wIbcsfPsnFtcumk+5ACgoGRV +G4w0GaBPGsBpARK7eLPG0M=
=vJ2H
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 6 lines · Koen Kooi

Currently kernel.bbclass splits and renames modules into kernel-module-<foo>, but module.bbclass doesn't. What's your opinion on making modules.bbclass follow the same logic for consistency? To make upgrade paths work the 'kernel-modules' metapackage would be ${PN} for external modules.

This sounds like a very good idea to me, it would make the package list much more consistent and improve the user experience, imo.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 11 lines · Chris Larson
Quoted 6 lines · Koen Kooi

Currently kernel.bbclass splits and renames modules into kernel-module-<foo>, but module.bbclass doesn't. What's your opinion on making modules.bbclass follow the same logic for consistency? To make upgrade paths work the 'kernel-modules' metapackage would be ${PN} for external modules.

This sounds like a very good idea to me, it would make the package list much more consistent and improve the user experience, imo.

yes I agree fully. Will there be issues with upgrades ?

Quoted 11 lines

--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw
In reply to Koen Kooi

2010/10/22 Koen Kooi <[email protected]>:

Quoted 10 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Currently kernel.bbclass splits and renames modules into kernel-module-<foo>, but module.bbclass doesn't. What's your opinion on making modules.bbclass follow the same logic for consistency? To make upgrade paths work the 'kernel-modules' metapackage would be ${PN} for external modules.

The idea looks good to be, but can you explain the last sentence? I would expect the recipes that use these modules get changed too and with a PR bump they will drag in the new module with the new name, and not too much additional work needed.
What I am missing?

BTW did a quick grep for "inherit module" (which also matches module-base), matches 90 recipes (some of which are probably (nearly) outdated as they are mainline; eg. pvrusb2)
And of course there are some recipes with older versions that are probably not too interesting to keep)

Frans

author
#3 lore raw
In reply to Khem Raj

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 10 lines · Khem Raj
Quoted 9 lines · Chris Larson
Quoted 6 lines · Koen Kooi

Currently kernel.bbclass splits and renames modules into kernel-module-<foo>, but module.bbclass doesn't. What's your opinion on making modules.bbclass follow the same logic for consistency? To make upgrade paths work the 'kernel-modules' metapackage would be ${PN} for external modules.

Quoted 4 lines
Quoted 2 lines

This sounds like a very good idea to me, it would make the package list much more consistent and improve the user experience, imo.

yes I agree fully. Will there be issues with upgrades ?

There shouldn't be with the metapackage approach. What we currently do:

kernel:
'kernel-module-foo' -> have foo.ko 'kernel-modules' -> recommend all internal modules

external module:
'some-external-module' -> have bar.ko and baz.ko

In the new world:

kernel (unchanged):
'kernel-module-foo' -> have foo.ko 'kernel-modules' -> recommend all internal modules

external module:
'kernel-module-bar' -> have bar.ko
'kernel-module-baz' -> have baz.ko
'some-external-module' -> recommend kernel-module-bar kernel-module-baz

So most, if not all, external module recipes will be compatible with the old naming.

Does that make things clearer?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMwpzEMkyGM64RGpERAlKBAJ0fXK1V+uY4weJj9I/0WGOTzymwBACfQRPq XBKCNHfqSVFqtwB2dVgazpU=
=UH63
-----END PGP SIGNATURE-----

author
#5 lore raw
In reply to Frans Meulenbroeks

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 12 lines · Frans Meulenbroeks

2010/10/22 Koen Kooi <[email protected]>:

Quoted 10 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Currently kernel.bbclass splits and renames modules into kernel-module-<foo>, but module.bbclass doesn't. What's your opinion on making modules.bbclass follow the same logic for consistency? To make upgrade paths work the 'kernel-modules' metapackage would be ${PN} for external modules.

Quoted 5 lines

The idea looks good to be, but can you explain the last sentence? I would expect the recipes that use these modules get changed too and with a PR bump they will drag in the new module with the new name, and not too much additional work needed.
What I am missing?

Khem asked a similar question which I tried to answer:
http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-October/026053.html

Does that address your question as well?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMwt+nMkyGM64RGpERAhFhAJ9pLDQc9ngI0AB+/t+QAH9SSmnbRgCdHqOZ O+vzfAYutIkZqD5OOfOBDY8=
=anSR
-----END PGP SIGNATURE-----