Rebuild external kernel modules on kernel change
Hi,
For beagleboard I have a few things I need to rebuild everytime the kernel changes:
* powervr kerneldrivers
* sdma kernel module
* dmai kernel module
* codec-engine
And I have roughly two kinds of kernel changes:
1) version upgrade (e.g. 2.6.29 -> 2.6.29)
2) config changes (e.g. enable ethernet bridging)
The first type of change could be solved by putting KERNEL_VERSION in PV or PR, but that needs a non-trivial amount of python since the information isn't available at parsing time (exactly like debian.bbclass). The second kind of change is a lot harder to detect, unless we start storing md5sums for kernel defconfigs.
I have a lowtech proposal for this:
-----
conf/bitbake.conf:
# Define a PR for kernels that machines can override so things like
# modules get rebuilt MACHINE_KERNEL_PR ?= "r0"
conf/machine/beagleboard.conf:
# Increase this everytime the kernel changesMACHINE_KERNEL_PR = "r39"
classes/kernel.bbclass:
# A machine.conf or local.conf can increase MACHINE_KERNEL_PR to force
# rebuilds for kernel and external modules
PR = "${MACHINE_KERNEL_PR}"class/module-base.bbclass:
# A machine.conf or local.conf can increase MACHINE_KERNEL_PR to force
# rebuilds for kernel and external modules
PR = "${MACHINE_KERNEL_PR}"-----
I don't really like this method, but I'm having a hard time coming up with a decent solution that:
a) works
b) requires less or equal manual work
c) keeps PR in sync between different buildhosts
regards,
Koen
Hm,
I don't like that one needs to touch conf/machine/beagleboard.conf each time the kernel is updated.
This is likely to be forgotten at some time.
Can't we use something in the linux-omap-*.bb file ? Btw, I always bump PR if I change something in the config.
Isn't it possible to add rebuilding those modules to e.g.. virtual/kernel?
Frans
2009/4/4 Koen Kooi <[email protected]>:
Quoted 63 lines
Hi,
For beagleboard I have a few things I need to rebuild everytime the kernel changes:
* powervr kerneldrivers
* sdma kernel module
* dmai kernel module
* codec-engineAnd I have roughly two kinds of kernel changes:
1) version upgrade (e.g. 2.6.29 -> 2.6.29)
2) config changes (e.g. enable ethernet bridging)The first type of change could be solved by putting
KERNEL_VERSIONin PV or PR, but that needs a non-trivial amount of python since the information isn't available at parsing time (exactly like debian.bbclass). The second kind of change is a lot harder to detect, unless we start storing md5sums for kernel defconfigs.I have a lowtech proposal for this:
-----
conf/bitbake.conf:
# Define a PR for kernels that machines can override so things like# modules get rebuilt MACHINE_KERNEL_PR ?= "r0"
conf/machine/beagleboard.conf:
# Increase this everytime the kernel changesMACHINE_KERNEL_PR= "r39"classes/kernel.bbclass:
# A machine.conf or local.conf can increaseMACHINE_KERNEL_PRto force# rebuilds for kernel and external modules PR = "${MACHINE_KERNEL_PR}"class/module-base.bbclass:
# A machine.conf or local.conf can increaseMACHINE_KERNEL_PRto force# rebuilds for kernel and external modules PR = "${MACHINE_KERNEL_PR}"-----
I don't really like this method, but I'm having a hard time coming up with a decent solution that:
a) works
b) requires less or equal manual work
c) keeps PR in sync between different buildhostsregards,
Koen
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 6 lines · Frans Meulenbroeks
Hm,
I don't like that one needs to touch
conf/machine/beagleboard.confeach time the kernel is updated.
This is likely to be forgotten at some time.
Can't we use something in the linux-omap-*.bb file ?
You can't set global vars in recipes.
regards,
Koen
Quoted 70 lines
Btw, I always bump PR if I change something in the config.
Isn't it possible to add rebuilding those modules to e.g.. virtual/kernel?
Frans
2009/4/4 Koen Kooi<[email protected]>:
Quoted 63 lines
Hi,
For beagleboard I have a few things I need to rebuild everytime the kernel changes:
* powervr kerneldrivers
* sdma kernel module
* dmai kernel module
* codec-engineAnd I have roughly two kinds of kernel changes:
1) version upgrade (e.g. 2.6.29 -> 2.6.29)
2) config changes (e.g. enable ethernet bridging)The first type of change could be solved by putting
KERNEL_VERSIONin PV or PR, but that needs a non-trivial amount of python since the information isn't available at parsing time (exactly like debian.bbclass). The second kind of change is a lot harder to detect, unless we start storing md5sums for kernel defconfigs.I have a lowtech proposal for this:
-----
conf/bitbake.conf:
# Define a PR for kernels that machines can override so things like# modules get rebuilt MACHINE_KERNEL_PR ?= "r0"
conf/machine/beagleboard.conf:
# Increase this everytime the kernel changesMACHINE_KERNEL_PR= "r39"classes/kernel.bbclass:
# A machine.conf or local.conf can increaseMACHINE_KERNEL_PRto force# rebuilds for kernel and external modules PR = "${MACHINE_KERNEL_PR}"class/module-base.bbclass:
# A machine.conf or local.conf can increaseMACHINE_KERNEL_PRto force# rebuilds for kernel and external modules PR = "${MACHINE_KERNEL_PR}"-----
I don't really like this method, but I'm having a hard time coming up with a decent solution that:
a) works
b) requires less or equal manual work
c) keeps PR in sync between different buildhostsregards,
Koen
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
2009/4/4 Koen Kooi <[email protected]>:
Quoted 10 lines · Frans Meulenbroeks
Quoted 7 lines
Hm,
I don't like that one needs to touch
conf/machine/beagleboard.confeach time the kernel is updated.
This is likely to be forgotten at some time.
Can't we use something in the linux-omap-*.bb file ?You can't set global vars in recipes.
Thinking of it the real issue is that we do have DEPENDS that takes care that if A needs B, B is build before A (and I guess that after updating B a bitbake of A will result in a recompile, even if A's PR is not changed.
Maybe a solution could be to be able to rebuild a package plus all its dependencies (the information is there in the DEPENDS lines).
Frans.
Quoted 12 lines · Frans Meulenbroeks
2009/4/4 Koen Kooi<[email protected]>:
Quoted 10 lines · Frans Meulenbroeks
Quoted 7 lines
Hm,
I don't like that one needs to touch
conf/machine/beagleboard.confeach time the kernel is updated.
This is likely to be forgotten at some time.
Can't we use something in the linux-omap-*.bb file ?You can't set global vars in recipes.
Quoted 7 lines
Thinking of it the real issue is that we do have DEPENDS that takes care that if A needs B, B is build before A (and I guess that after updating B a bitbake of A will result in a recompile, even if A's PR is not changed.
Maybe a solution could be to be able to rebuild a package plus all its dependencies (the information is there in the DEPENDS lines).
We can already do that with BB_STAMP_POLICY, the problem present is that it will generate packages with the same PV and PR, so it won't show up as upgrade, so users get a broken installation after the package manager upgrades the kernel, but not the modules since PV and PR didn't change for those.
regards,
Koen
Quoted 1 line · Koen Kooi
Hi,
[...]
Quoted 2 lines
I don't really like this method, but I'm having a hard time coming up with a decent solution that:
[...]
I agree that is not beauty but it works.
I also belive it could be used in other recipes too as initramfs-images. This way forcing the rebuild of it if the kernel is changed and machine revision is bumped.
Fully support it.
+1
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 9 lines · Otavio Salvador
Quoted 1 line · Koen Kooi
Hi,
[...]
Quoted 2 lines
I don't really like this method, but I'm having a hard time coming up with a decent solution that:
[...]
I agree that is not beauty but it works.
Quoted 7 lines
I also belive it could be used in other recipes too as initramfs-images. This way forcing the rebuild of it if the kernel is changed and machine revision is bumped.
Fully support it.
+1
Thanks, I'll try cooking up a patch for beagleboard tomorrow to show a real life example.
regards,
Koen
Quoted 18 lines · Koen Kooi
Quoted 17 lines · Otavio Salvador
Quoted 1 line · Koen Kooi
Hi,
[...]
Quoted 3 lines
I don't really like this method, but I'm having a hard time coming up with a
decent solution that:[...]
I agree that is not beauty but it works.
I also belive it could be used in other recipes too as initramfs-images. This
way forcing the rebuild of it if the kernel is changed and machine revision
is bumped.
Quoted 6 lines
Quoted 3 lines
Fully support it.
+1
Thanks, I'll try cooking up a patch for beagleboard tomorrow to show a real life example.
Here it is, this will be done in 2 commits:
classes/kernel.bbclass +4 -0
@@ -64,6 +64,10 @@ export CMDLINE_CONSOLE = "console=${@bb.data.getVar("KERNEL_CONSOLE",d,1) or "tt KERNEL_VERSION = "${@get_kernelversion('${S}')}" KERNEL_MAJOR_VERSION = "${@get_kernelmajorversion('${KERNEL_VERSION}')}" +# A machine.conf or local.conf can increase MACHINE_KERNEL_PR to force +# rebuilds for kernel and external modules +PR = "${MACHINE_KERNEL_PR}" + KERNEL_LOCALVERSION ?= ""
classes/module-base.bbclass +4 -0
@@ -5,6 +5,10 @@ inherit kernel-arch export OS = "${TARGET_OS}" export CROSS_COMPILE = "${TARGET_PREFIX}" +# A machine.conf or local.conf can increase MACHINE_KERNEL_PR to force +# rebuilds for kernel and external modules +PR = "${MACHINE_KERNEL_PR}" +
conf/bitbake.conf +4 -0
@@ -162,6 +162,10 @@ EXTENDPEVER = "${@['','${PE\x7d:'][bb.data.getVar('PE',d,1) > 0]}" EXTENDPV = "${EXTENDPEVER}${PV}-${PR}${DISTRO_PR}" P = "${PN}-${PV}" +# Define a PR for kernels that machines can override so things like +# modules get rebuilt +MACHINE_KERNEL_PR ?= "r0" +
conf/machine/beagleboard.conf +1 -0
@@ -25,6 +25,7 @@ EXTRA_IMAGECMD_jffs2 = "-lnp " SERIAL_CONSOLE = "115200 ttyS2" PREFERRED_PROVIDER_virtual/kernel = "linux-omap" +MACHINE_KERNEL_PR = "r20" KERNEL_IMAGETYPE = "uImage"
recipes/dsplink/gstreamer-ti_svn.bb +1 -1
@@ -4,7 +4,7 @@ SRC_URI = "svn://gforge.ti.com/svn/gstreamer_ti/trunk;module=gstreamer_ti;proto= " SRCREV = "160" -PR = "r7" +PR = "${MACHINE_KERNEL_PR}"
recipes/dsplink/ti-codec-engine_2.21.bb +0 -1
@@ -8,7 +8,6 @@ RDEPENDS = "update-modules" inherit module # tconf from xdctools dislikes '.' in pwd :/ -PR = "r19" PV = "221"
recipes/dsplink/ti-codec-engine_2.23.bb +0 -1
@@ -9,7 +9,6 @@ inherit module DEFAULT_PREFERENCE = "-1" # tconf from xdctools dislikes '.' in pwd :/ -PR = "r0" PV = "223"
recipes/dsplink/ti-dmai_svn.bb +0 -0
@@ -15,7 +15,7 @@ SRCREV = "36" S =
"${WORKDIR}/BRIJESH_GIT_022309/davinci_multimedia_application_interface/dmai"
# Yes, the xdc stuff still breaks with a '.' in PWD
PV = "120+svnr${SRCREV}"
-PR = "r16"
+PR = "${MACHINE_KERNEL_PR}"
recipes/linux/linux-omap_2.6.28.bb +0 -1
@@ -12,7 +12,6 @@ DEFAULT_PREFERENCE_omap5912osk = "1" SRCREV = "79d042a081d3e467c735bb0d9569ed6296f85a3c" PV = "2.6.28" -PR = "r19"
recipes/linux/linux-omap_2.6.29.bb +1 -1
@@ -10,7 +10,7 @@ DEFAULT_PREFERENCE_overo = "1" SRCREV = "58cf2f1425abfd3a449f9fe985e48be2d2555022" -PR = "r7+gitr${SRCREV}" +PR_append = "+gitr${SRCREV}"
recipes/powervr-drivers/omap3-sgx-modules_1.3.13.1397.bb +0 -0
@@ -1,8 +1,6 @@ DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the
omap3 SoCs"
LICENSE = "GPLv2"
-PR = "r6"
-
inherit module
H
Quoted 32 lines
conf/machine/beagleboard.conf:
# Increase this everytime the kernel changesMACHINE_KERNEL_PR= "r39"classes/kernel.bbclass:
# A machine.conf or local.conf can increaseMACHINE_KERNEL_PRto force# rebuilds for kernel and external modules PR = "${MACHINE_KERNEL_PR}"class/module-base.bbclass:
# A machine.conf or local.conf can increaseMACHINE_KERNEL_PRto force# rebuilds for kernel and external modules PR = "${MACHINE_KERNEL_PR}"-----
I don't really like this method, but I'm having a hard time coming up with a decent solution that:
a) works
b) requires less or equal manual work
c) keeps PR in sync between different buildhostsregards,
Koen
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 2 lines
Jeremy LAINE Bolloré telecom | 11bis, rue Scribe | F-75009 Paris
Quoted 13 lines · Koen Kooi
For beagleboard I have a few things I need to rebuild everytime the kernel changes:
* powervr kerneldrivers
* sdma kernel module
* dmai kernel module
* codec-engineAnd I have roughly two kinds of kernel changes:
1) version upgrade (e.g. 2.6.29 -> 2.6.29)
2) config changes (e.g. enable ethernet bridging)
Quoted 7 lines
The first type of change could be solved by putting
KERNEL_VERSIONin PV or PR, but that needs a non-trivial amount of python since the information isn't available at parsing time (exactly like debian.bbclass). The second kind of change is a lot harder to detect, unless we start storing md5sums for kernel defconfigs.I have a lowtech proposal for this:
The thing is if we start doing this for kernels, we'll probably end up having to do it for other things and the end result will be a mess.
A better fix for this is BB_STAMP_POLICY = "whitelist" which will at least cause the right things to rebuild.
No, this doesn't bump the PR when packages change but I'd actually like to see some new code to fix this problem and several others once and for all. The idea would be to "compare" the current build with any previous ones and error if bad differences are detected. In this case if PR = X had already built that would be an "error" which the system may work around by using PR = "X-Z1" in the output packages. You could teach that code interesting (even distribution specific) logic e.g. to ignore changes in system libraries like libc.
This would imply this comparison data would have to come from a shared source for multiple build machines for a distribution like Angstrom.
No, this solution isn't simple but hacking around the problem just builds a house on top of quicksand ;-).
Cheers,
Richard
Quoted 37 lines · Richard Purdie
Quoted 13 lines · Koen Kooi
For beagleboard I have a few things I need to rebuild everytime the kernel changes:
* powervr kerneldrivers
* sdma kernel module
* dmai kernel module
* codec-engineAnd I have roughly two kinds of kernel changes:
1) version upgrade (e.g. 2.6.29 -> 2.6.29)
2) config changes (e.g. enable ethernet bridging)Quoted 7 lines
The first type of change could be solved by putting
KERNEL_VERSIONin PV or PR, but that needs a non-trivial amount of python since the information isn't available at parsing time (exactly like debian.bbclass). The second kind of change is a lot harder to detect, unless we start storing md5sums for kernel defconfigs.I have a lowtech proposal for this:
The thing is if we start doing this for kernels, we'll probably end up having to do it for other things and the end result will be a mess.
A better fix for this is
BB_STAMP_POLICY= "whitelist" which will at least cause the right things to rebuild.No, this doesn't bump the PR when packages change but I'd actually like to see some new code to fix this problem and several others once and for all. The idea would be to "compare" the current build with any previous ones and error if bad differences are detected. In this case if PR = X had already built that would be an "error" which the system may work around by using PR = "X-Z1" in the output packages. You could teach that code interesting (even distribution specific) logic e.g. to ignore changes in system libraries like libc.
Quoted 5 lines
This would imply this comparison data would have to come from a shared source for multiple build machines for a distribution like Angstrom.
No, this solution isn't simple but hacking around the problem just builds a house on top of quicksand ;-).
The problems with a default OE/angstrom setup are:
1) No automatic rebuild of dependant packages
- Already solved with BB_STAMP_POLICY = "whitelist"
2) No automatic way to increase PR of dependant packages
3) No distributed way to record increase of PR of dependant packages
4) No way to inject kernelversion and PR into external modules
- Can be solved with code similar to debian.bbclass
if someone can tackle 4) we're further along with making things saner.
regards,
Koen
Quoted 5 lines · Koen Kooi
Hi,
For beagleboard I have a few things I need to rebuild everytime the kernel changes:
Quoted 8 lines
* powervr kerneldrivers
* sdma kernel module
* dmai kernel module
* codec-engineAnd I have roughly two kinds of kernel changes:
1) version upgrade (e.g. 2.6.29 -> 2.6.29)
Based on the rest of the email, I assume you mean 2.6.28 -> 2.6.29
Quoted 1 line
2) config changes (e.g. enable ethernet bridging)
So, by coincidence I had this thread around still. For (1), you already have kernel-abiversion, but maybe we need some helpers to make this more useful? For (2) that's not true unless you're changing one of the variables that actually changes the running kernel abi (which isn't caught in kernel-abiversion file). This shouldn't be a frequent operation. There is, I suppose a 3rd problem which would be within version API changes, for new and in-progress features. This I'm not sure we need a complex mechanism around for. Use/publish WIP stuff, make sure users understand it's WIP and bump PRs as needed, manually.
Signature · 1 line
Tom Rini
Quoted 12 lines · Tom Rini
Quoted 10 lines · Koen Kooi
Hi,
For beagleboard I have a few things I need to rebuild everytime the kernel changes:
* powervr kerneldrivers
* sdma kernel module
* dmai kernel module
* codec-engine
Quoted 5 lines
Quoted 3 lines
And I have roughly two kinds of kernel changes:
1) version upgrade (e.g. 2.6.29 -> 2.6.29)
Based on the rest of the email, I assume you mean 2.6.28 -> 2.6.29
right.
Quoted 8 lines
Quoted 1 line
2) config changes (e.g. enable ethernet bridging)
So, by coincidence I had this thread around still. For (1), you already have kernel-abiversion, but maybe we need some helpers to make this more useful? For (2) that's not true unless you're changing one of the variables that actually changes the running kernel abi (which isn't caught in kernel-abiversion file). This shouldn't be a frequent operation.
2) is *very* hard to track down, e.g. people don't expect that enabling netfilter as modules breaks external wifi drivers since struct sk_buff will change (ask nokia 770 tablet users). I bet there are a lot more cases where kernel runtime abi changes, so every kernel PR bump will trigger a rebuild *and* (here's comes the most important bit) an automatic PR bump for recipes using module*.bbclass.
So far I've only seen suggestions that will trigger a rebuild of recipes using module*bbclass, but no solutions for automagic version changes so that the package manager will pick it up as well.
regards,
Koen
Quoted 3 lines · Koen Kooi
So far I've only seen suggestions that will trigger a rebuild of recipes using module*bbclass, but no solutions for automagic version changes so that the package manager will pick it up as well.
I don't quite understand why this is so complicated; can't you just append the kernel's ABI version to either ${PR} or ${PV} (depending on whether or not you want parallel installability) for the modules?
p.
Quoted 8 lines · Phil Blundell
Quoted 3 lines · Koen Kooi
So far I've only seen suggestions that will trigger a rebuild of recipes using module*bbclass, but no solutions for automagic version changes so that the package manager will pick it up as well.
I don't quite understand why this is so complicated; can't you just append the kernel's ABI version to either ${PR} or ${PV} (depending on whether or not you want parallel installability) for the modules?
No, since PV and PR need to be known at parsing time when the kernel hasn't been built yet.
regards,
Koen
Quoted 6 lines · Koen Kooi
Quoted 5 lines · Phil Blundell
Quoted 3 lines · Koen Kooi
So far I've only seen suggestions that will trigger a rebuild of recipes using module*bbclass, but no solutions for automagic version changes so that the package manager will pick it up as well.
Quoted 6 lines
Quoted 3 lines
I don't quite understand why this is so complicated; can't you just append the kernel's ABI version to either ${PR} or ${PV} (depending on whether or not you want parallel installability) for the modules?
No, since PV and PR need to be known at parsing time when the kernel hasn't been built yet.
I can't think offhand of any reason why it's important to have PR available at parse time, but if that's the case then you could splice it into DISTRO_PR (or some equivalent variable) instead.
My reference to PV above was spurious; it's no different to PR in this context. If you want parallel installation then it's actually PKG_xx that you need to modify (or, conceptually, PN, but fiddling with that would almost certainly be a bad idea).
p.
Quoted 6 lines · Koen Kooi
2) is *very* hard to track down, e.g. people don't expect that enabling netfilter as modules breaks external wifi drivers since struct
sk_buffwill change (ask nokia 770 tablet users).
I bet there are a lot more cases where kernel runtime abi changes, so every kernel PR bump will trigger a rebuild *and* (here's comes the most important bit) an automatic PR bump for recipes using module*.bbclass.
The networking code is indeed particularly bad in that respect. But in general Tom is right, the vast majority of kernel config changes (enabling drivers, adjusting command line parameters or default settings, that kind of thing) don't have ABI impact and there is no need to rebuild everything as a result.
The easiest way to deal with that issue is probably to have a separate KERNEL_PACKAGE_ABIVERSION variable which is set locally in the kernel's own .bb file, which is appended to the regular kernel-abiversion, and which you can manually increment when making a change that causes, or is likely to cause, an ABI change. If you, as a kernel package maintainer, want to take a particularly conservative line with your own kernels then you can simply set KERNEL_PACKAGE_ABIVERSION = "${PR}" and it will act as you describe above; other maintainers who want to avoid unnecessary rebuilds can use their own judgement about when to increment it.
For folks who use MODVERSIONS, it'd probably be easy enough to add an extra check to detect when the symbol hashes have changed since the last build and emit an error. In an ideal world, you'd even be able to generate a single ABI footprint by, say, taking a sha256 hash of the catenation of all the symbol versions. Then, your kernel package could
Provide: kernel-abi-123456abc, all your module packages could Depend: on the same thing, and (modulo a little bit of package manager tweaking along roughly the same lines as we use for locales) everything would "just work".
p.
On 01-06-09 22:17, Phil Blundell wrote:
Then, your kernel package could
Quoted 4 lines
Provide: kernel-abi-123456abc, all your module packages could Depend: on the same thing, and (modulo a little bit of package manager tweaking along roughly the same lines as we use for locales) everything would "just work".
only if you use {o,i}pkg, which isn't good enough.
Quoted 8 lines · Koen Kooi
On 01-06-09 22:17, Phil Blundell wrote:
Then, your kernel package couldQuoted 4 lines
Provide: kernel-abi-123456abc, all your module packages could Depend: on the same thing, and (modulo a little bit of package manager tweaking along roughly the same lines as we use for locales) everything would "just work".
only if you use {o,i}pkg, which isn't good enough.
Similar stuff should be doable for deb and rpm.
Signature · 1 line
Tom Rini
Quoted 10 lines · Koen Kooi
Quoted 7 lines · Phil Blundell
In an ideal world, you'd even be able to generate a single ABI footprint by, say, taking a sha256 hash of the catenation of all the symbol versions. Then, your kernel package could
Provide: kernel-abi-123456abc, all your module packages could Depend: on the same thing, and (modulo a little bit of package manager tweaking along roughly the same lines as we use for locales) everything would "just work".only if you use {o,i}pkg, which isn't good enough.
Indeed, in that respect this isn't an ideal world. The other things that I wrote in that same email are still applicable, though.
p.
Quoted 30 lines · Koen Kooi
Quoted 12 lines · Tom Rini
Quoted 10 lines · Koen Kooi
Hi,
For beagleboard I have a few things I need to rebuild everytime the kernel changes:
* powervr kerneldrivers
* sdma kernel module
* dmai kernel module
* codec-engineQuoted 5 lines
Quoted 3 lines
And I have roughly two kinds of kernel changes:
1) version upgrade (e.g. 2.6.29 -> 2.6.29)
Based on the rest of the email, I assume you mean 2.6.28 -> 2.6.29
right.
Quoted 8 lines
Quoted 1 line
2) config changes (e.g. enable ethernet bridging)
So, by coincidence I had this thread around still. For (1), you already have kernel-abiversion, but maybe we need some helpers to make this more useful? For (2) that's not true unless you're changing one of the variables that actually changes the running kernel abi (which isn't caught in kernel-abiversion file). This shouldn't be a frequent operation.
Quoted 6 lines
2) is *very* hard to track down, e.g. people don't expect that enabling netfilter as modules breaks external wifi drivers since struct
sk_buffwill change (ask nokia 770 tablet users).
I bet there are a lot more cases where kernel runtime abi changes, so every kernel PR bump will trigger a rebuild *and* (here's comes the most important bit) an automatic PR bump for recipes using module*.bbclass.
So we need people to have a better understanding of the kernel, true. I think we've all been there at some point. IIRC, netfilter is the exception, not the rule.
Quoted 3 lines
So far I've only seen suggestions that will trigger a rebuild of recipes using module*bbclass, but no solutions for automagic version changes so that the package manager will pick it up as well.
I think the problem is we're making an automatic hammer for a manual screwdriver task, in 2/3. (1) does need better handling but we have that information around already, in kernel-abiversion, we just need to export that out.
Signature · 1 line
Tom Rini