All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Rebuild external kernel modules on kernel change
@ 2009-04-04 13:31 Koen Kooi
  2009-04-04 15:51 ` Frans Meulenbroeks
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Koen Kooi @ 2009-04-04 13:31 UTC (permalink / raw)
  To: openembedded-devel

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 changes
MACHINE_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




^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2009-06-01 21:41 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-04 13:31 [RFC] Rebuild external kernel modules on kernel change Koen Kooi
2009-04-04 15:51 ` Frans Meulenbroeks
2009-04-04 16:44   ` Koen Kooi
2009-04-04 20:18     ` Frans Meulenbroeks
2009-04-04 21:14       ` Koen Kooi
2009-04-04 17:46 ` Otavio Salvador
2009-04-05 16:43   ` Koen Kooi
2009-04-05 17:07     ` Koen Kooi
2009-04-04 20:46 ` Jeremy Lainé
2009-04-05 22:43 ` Richard Purdie
2009-04-06  7:16   ` Koen Kooi
2009-06-01 16:58 ` Tom Rini
2009-06-01 17:25   ` Koen Kooi
2009-06-01 18:17     ` Phil Blundell
2009-06-01 18:45       ` Koen Kooi
2009-06-01 19:10         ` Phil Blundell
2009-06-01 20:17     ` Phil Blundell
2009-06-01 20:52       ` Koen Kooi
2009-06-01 21:32         ` Tom Rini
2009-06-01 21:32         ` Phil Blundell
2009-06-01 20:55     ` Tom Rini

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.