Skip to contentSkip to conversation

out of kernel custom module build fails

yocto Rob Prowel 2 participants 2 messages Aug 6, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Rob Prowel

author
#1 lore raw
Quoted 10 lines · Rob Prowel

the important bb file content is:

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

Quoted 5 lines

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.

#2 lore raw

Hi Rob,

Quoted 11 lines · Rob Prowel
Quoted 10 lines · Rob Prowel

the important bb file content is:

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

Quoted 8 lines
Quoted 6 lines

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