kernel.bbclass: provide virtual/kernel-${PV}
PATCH 1/1 kernel.bbclass: provide virtual/kernel-${PV}
* Allow precompiled modules to depend on a specific kernel version.
--- classes/kernel.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
classes/kernel.bbclass +1 -1
@@ -1,6 +1,6 @@ inherit linux-kernel-base module_strip -PROVIDES += "virtual/kernel" +PROVIDES += "virtual/kernel virtual/kernel-${PV}" DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules bluez-dtl1-workaround" # we include gcc above, we dont need virtual/libc
Signature · 1 line
1.7.2.3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 12 lines · Andreas Oberritter
* Allow precompiled modules to depend on a specific kernel version.
Signed-off-by Andreas Oberritter <[email protected]>--- classes/kernel.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)classes/kernel.bbclass +0
-0
classes/kernel.bbclass line 6
Quoted 7 lines
classes/kernel.bbclass +1
-1@@ -1,6 +1,6 @@ inherit linux-kernel-base module_strip -PROVIDES += "virtual/kernel" +PROVIDES += "virtual/kernel virtual/kernel-${PV}" DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules bluez-dtl1-workaround" # we include gcc above, we dont need virtual/libc
How is PV know before the kernel is built? The line below has a workaround for that, so I guess it also needs one in PROVIDES, no? -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFNVTcdMkyGM64RGpERAqZtAJ9gV1L+A2Ph+3aH1/aKr9PGlUeQCwCcCUUE TlXU4/M8l7ycdmwm+7a8VL0=
=JO+0
-----END PGP SIGNATURE-----
Quoted 15 lines · Koen Kooi
Quoted 13 lines · Andreas Oberritter
* Allow precompiled modules to depend on a specific kernel version.
Signed-off-by Andreas Oberritter <[email protected]>--- classes/kernel.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)classes/kernel.bbclass +0
-0@@ -1,6 +1,6 @@ inherit linux-kernel-base module_strip
Quoted 8 lines
classes/kernel.bbclass line 6
Quoted 5 lines
classes/kernel.bbclass +1
-1-PROVIDES += "virtual/kernel" +PROVIDES += "virtual/kernel virtual/kernel-${PV}" DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules bluez-dtl1-workaround" # we include gcc above, we dont need virtual/libcHow is PV know before the kernel is built? The line below has a workaround for that, so I guess it also needs one in PROVIDES, no?
KERNEL_VERSION is what's unknown until after the build. PV is the version set by the recipe. The line below uses PV to derive 2.4 or 2.6 from that.
Regards,
Andreas
Ping. Is there any reason not to apply this patch? Is there a better way to solve the problem?
Quoted 36 lines · Andreas Oberritter
Quoted 15 lines · Koen Kooi
Quoted 13 lines · Andreas Oberritter
* Allow precompiled modules to depend on a specific kernel version.
Signed-off-by Andreas Oberritter <[email protected]>--- classes/kernel.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)classes/kernel.bbclass +0
-0@@ -1,6 +1,6 @@ inherit linux-kernel-base module_stripQuoted 8 lines
classes/kernel.bbclass line 6
Quoted 5 lines
classes/kernel.bbclass +1
-1-PROVIDES += "virtual/kernel" +PROVIDES += "virtual/kernel virtual/kernel-${PV}" DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules bluez-dtl1-workaround" # we include gcc above, we dont need virtual/libcHow is PV know before the kernel is built? The line below has a workaround for that, so I guess it also needs one in PROVIDES, no?
KERNEL_VERSIONis what's unknown until after the build. PV is the version set by the recipe. The line below uses PV to derive 2.4 or 2.6 from that.Regards,
Andreas_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 32 lines · Andreas Oberritter
Ping. Is there any reason not to apply this patch? Is there a better way to solve the problem?
Quoted 28 lines · Andreas Oberritter
Quoted 15 lines · Koen Kooi
Quoted 13 lines · Andreas Oberritter
* Allow precompiled modules to depend on a specific kernel version.
Signed-off-by Andreas Oberritter<[email protected]>--- classes/kernel.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)classes/kernel.bbclass +0
-0@@ -1,6 +1,6 @@ inherit linux-kernel-base module_stripQuoted 8 lines
classes/kernel.bbclass line 6
Quoted 5 lines
classes/kernel.bbclass +1
-1-PROVIDES += "virtual/kernel" +PROVIDES += "virtual/kernel virtual/kernel-${PV}" DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules bluez-dtl1-workaround" # we include gcc above, we dont need virtual/libcHow is PV know before the kernel is built? The line below has a workaround for that, so I guess it also needs one in PROVIDES, no?
KERNEL_VERSIONis what's unknown until after the build. PV is the version set by the recipe. The line below uses PV to derive 2.4 or 2.6 from that.
Does this mean we sometimes create package files with unresolvable / incorrect deps? Or just that it's a bit tricky looking at times?
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
Quoted 33 lines · Tom Rini
Quoted 32 lines · Andreas Oberritter
Ping. Is there any reason not to apply this patch? Is there a better way to solve the problem?
Quoted 28 lines · Andreas Oberritter
Quoted 26 lines · Koen Kooi
Quoted 21 lines · Andreas Oberritter
* Allow precompiled modules to depend on a specific kernel version.
Signed-off-by Andreas Oberritter<[email protected]>--- classes/kernel.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)classes/kernel.bbclass +1
-1@@ -1,6 +1,6 @@ inherit linux-kernel-base module_strip -PROVIDES += "virtual/kernel" +PROVIDES += "virtual/kernel virtual/kernel-${PV}" DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')}virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules bluez-dtl1-workaround"
Quoted 1 line
# we include gcc above, we dont need virtual/libcHow is PV know before the kernel is built? The line below has a workaround for that, so I guess it also needs one in PROVIDES, no?
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
KERNEL_VERSIONis what's unknown until after the build. PV is the version set by the recipe. The line below uses PV to derive 2.4 or 2.6 from that.Does this mean we sometimes create package files with unresolvable / incorrect deps? Or just that it's a bit tricky looking at times?
I'd like to package the same set of modules precompiled for different kernel versions. In order to do that, a module's recipe needs a way to depend on a kernel version, e.g. by using the kernel's PN. Otherwise, the recipe of the module of the newest kernel will always get selected, even for older kernel versions.
In the module's recipe, you can then derive kernel source and binary versions from the recipe's PN. I'm using the following for dreambox-dvb-modules_2.6.18-7.4-dm8000-20101215.bb and dreambox-dvb-modules_2.6.38-2.3-dm8000-20110203.bb.
DEPENDS += "virtual/kernel-${DM_KERNEL_VERSION}"
RDEPENDS_${PN} += "kernel-${DM_LOCALVERSION}"
DM_LOCALVERSION = "${@'-'.join('${PV}'.split('-')[:-1])}" DM_KERNEL_VERSION = "${@'${PV}'.split('-')[0]}"
Regards,
Andreas