All of lore.kernel.org
 help / color / mirror / Atom feed
* Out-of-tree kernel module is unbuildable
@ 2018-07-14  3:18 Clay D. Montgomery
  2018-07-15 21:29 ` How to debug unbuildable module error? Clay D. Montgomery
  0 siblings, 1 reply; 3+ messages in thread
From: Clay D. Montgomery @ 2018-07-14  3:18 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 1381 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2485 bytes --]

[-- Attachment #2: clay.vcf --]
[-- Type: text/x-vcard, Size: 275 bytes --]

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


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

* How to debug unbuildable module error?
  2018-07-14  3:18 Out-of-tree kernel module is unbuildable Clay D. Montgomery
@ 2018-07-15 21:29 ` Clay D. Montgomery
  2018-09-24 21:56   ` Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Clay D. Montgomery @ 2018-07-15 21:29 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]


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





[-- Attachment #2: clay.vcf --]
[-- Type: text/x-vcard, Size: 275 bytes --]

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


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

* Re: How to debug unbuildable module error?
  2018-07-15 21:29 ` How to debug unbuildable module error? Clay D. Montgomery
@ 2018-09-24 21:56   ` Paul Eggleton
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2018-09-24 21:56 UTC (permalink / raw)
  To: Clay D. Montgomery; +Cc: yocto

Hi Clay

Somewhat late, but I stumbled across this this morning

On Monday, 16 July 2018 9:29:07 AM NZST Clay D. Montgomery wrote:
> 
> 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

-- 

Paul Eggleton
Intel Open Source Technology Centre




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

end of thread, other threads:[~2018-09-24 21:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-14  3:18 Out-of-tree kernel module is unbuildable Clay D. Montgomery
2018-07-15 21:29 ` How to debug unbuildable module error? Clay D. Montgomery
2018-09-24 21:56   ` Paul Eggleton

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.