Skip to contentSkip to conversation

Out-of-tree kernel module is unbuildable

DISCUSSION Clay D. Montgomery 2 participants 3 messages Jul 14, 2018 – Sep 24, 2018

lore
Share & tools
lore
#0 lore raw

Hello,

I'm trying to add an external kernel module to my layer by following
this guide in the Yocto Kernel Development Manual and using the recommended template:

     2.10.2. Incorporating Out-of-Tree
     Modules<https://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#incorporating-out-of-tree-modules>

    poky/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb

However, bitbake always reports that my "Runtime target 'lightwing-camera' is unbuildable, removing..." I would appreciate if someone could help me isolate this problem.
This is my new recipe for the module:

SUMMARY = "External kernel module for OV5645 MIPI camera" LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"

inherit module

SRC_URI = "file://Makefile \
           file://ov5645_mipi.c \
           file://COPYING \
          "

S = "${WORKDIR}"

RPROVIDES_lightwing-camera = "lightwing-camera"

And this is my makefile:

obj-m := ov5645_mipi.o

SRC := $(shell pwd)

all:

    $(MAKE) -C $(KERNEL_SRC) M=$(SRC)

modules_install:

    $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install

clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c rm -f Module.markers Module.symvers modules.order rm -rf .tmp_versions Modules.symvers

Thank you, Clay Montgomery

begin:vcard
fn:Clay D. Montgomery
n:Montgomery;Clay
org:Montgomery One
adr:;;;;Texas;;USA
email;internet:[email protected]
title:Freelance Software Developer
tel;cell:580-490-6676
x-mozilla-html:TRUE
url:http://montgomery1.com/contact/
version:2.1
end:vcard

#1 lore raw

How to debug unbuildable module error?

Is there a way to get bitbake to provide more information about why a module is unbuildable?

I am trying to build this example:

poky/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb

However, bitbake always reports:

"Runtime target 'hello-mod' is unbuildable, removing..."

The makefile and source file are trivial with no dependencies and the -v verbose option adds no information at all.

Thanks, Clay

begin:vcard
fn:Clay D. Montgomery
n:Montgomery;Clay
org:Montgomery One
adr:;;;;Texas;;USA
email;internet:[email protected]
title:Freelance Software Developer
tel;cell:580-490-6676
x-mozilla-html:TRUE
url:http://montgomery1.com/contact/
version:2.1
end:vcard

#2 lore raw

Re: How to debug unbuildable module error?

Hi Clay

Somewhat late, but I stumbled across this this morning

Quoted 11 lines · NZST Clay D. Montgomery

Is there a way to get bitbake to provide more information about why a module is unbuildable?

I am trying to build this example:

poky/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb

However, bitbake always reports:

"Runtime target 'hello-mod' is unbuildable, removing..."

The actual issue will be printed above this message. Usually it's because the recipe depends upon something else that could not be built (and the reason for that will be in the message above).

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre