Topics

out of kernel custom module build fails


Rob Prowel
 

I need to build a custom slip driver out of the normal kernel build process and I've overridden the var

LINUX_VERSION_EXTENSION = \
"-${PROMPT}-$(/bin/date +%j%H%M)${PM1_DEVEL_IMAGE}"

so that my kernel always has a unique identifier for the development build I'm working on.

problem is that the custom driver bb file barfs.

bitbake -f -c cleanall virtual/kernel
bitbake my-image

fails with:

Collected errors:
* Solver encountered 1 problem(s):
* Problem 1/1:
* - nothing provides kernel-4.14.0-hpcu-2182234dev needed by kernel-module-customslip-4.14.0-hpcu-2182234dev-...
*
* Solution 1:
* - do not ask to install a package providing customslip-mod

the important bb file content is:

inherit module
SRC_URI = "file://Makefile \
file://customslip.c \
file://customslip.h \
file://COPYING \
"
S = "${WORKDIR}"

RPROVIDES_${PN} += "kernel-module-customslip"

------------------
What yocto override variable can I set in the bb to make it not care what the localversion appended to the kernel name is?


Rob Prowel
 

On 2020-08-06 11:45, Rob Prowel wrote:
the important bb file content is:
inherit module
SRC_URI = "file://Makefile \
           file://customslip.c \
           file://customslip.h \
           file://COPYING \
          "
S = "${WORKDIR}"
RPROVIDES_${PN} += "kernel-module-customslip"
------------------
What yocto override variable can I set in the bb to make it not care what the localversion appended to the kernel name is?
adding DEPENDS_${PN} = "virtual/kernel" seems to have fixed this (making the kernel build the single dependency?), but the more important question is whether that is the "right" way to fix it.


Quentin Schulz
 

Hi Rob,

On Thu, Aug 06, 2020 at 12:37:15PM -0400, Rob Prowel wrote:
On 2020-08-06 11:45, Rob Prowel wrote:
the important bb file content is:

inherit module
SRC_URI = "file://Makefile \
           file://customslip.c \
           file://customslip.h \
           file://COPYING \
          "
S = "${WORKDIR}"

RPROVIDES_${PN} += "kernel-module-customslip"

------------------
What yocto override variable can I set in the bb to make it not care
what the localversion appended to the kernel name is?
adding DEPENDS_${PN} = "virtual/kernel" seems to have fixed this (making the
DEPENDS_${PN} does nothing, so that's not what fixed it ;)

I doubt LOCAL_VERSION_EXTEND or however it's called is used for creating
the package version of the kernel. I'd expect the dependencies to check
for the package version and not some other variable. So probably PV of
the kernel recipe is the correct variable to change? Just throwing
ideas.

Quentin