All of lore.kernel.org
 help / color / mirror / Atom feed
* Missing dependencies on driver header
@ 2017-03-31 13:42 colin.helliwell
  2017-03-31 13:56 ` Fabien Lahoudere
  0 siblings, 1 reply; 3+ messages in thread
From: colin.helliwell @ 2017-03-31 13:42 UTC (permalink / raw)
  To: yocto

I have a niggly problem I keep running into, especially with fresh image
builds.
I have a custom driver, and a user-space library for controlling it;
therefore the library includes one of the driver's header files (IOCTL defs
etc). 
However I can't get the dependencies correct in the library recipe so as to
get the driver's header installed and available to the library build step.
In other words 'bitbake MyDriverLib' gives a "MyDriver.h: no such file or
directory "
The lib's recipe includes
    inherit autotools lib_package binconfig-disabled pkgconfig
    DEPENDS_${PN} = "MyDriver"
    RDEPENDS_${PN} = "MyDriver"

At 'some point later', the lib *will* build ok:  I've done each MyDriver
step one by one, and it seems that once the 'install' has been done then
MyDriverLib will then compile. ('-c compile MyDriver' isn't sufficient). But
shouldn't the RDEPENDS above trigger the MyDriver install?
I'm obviously missing a dependency hook somewhere?





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

* Re: Missing dependencies on driver header
  2017-03-31 13:42 Missing dependencies on driver header colin.helliwell
@ 2017-03-31 13:56 ` Fabien Lahoudere
  2017-04-03  8:39   ` Colin Helliwell
  0 siblings, 1 reply; 3+ messages in thread
From: Fabien Lahoudere @ 2017-03-31 13:56 UTC (permalink / raw)
  To: yocto

On Fri, 2017-03-31 at 14:42 +0100, colin.helliwell@ln-systems.com wrote:
> I have a niggly problem I keep running into, especially with fresh image
> builds.
> I have a custom driver, and a user-space library for controlling it;
> therefore the library includes one of the driver's header files (IOCTL defs
> etc). 
> However I can't get the dependencies correct in the library recipe so as to
> get the driver's header installed and available to the library build step.
> In other words 'bitbake MyDriverLib' gives a "MyDriver.h: no such file or
> directory "
> The lib's recipe includes
>     inherit autotools lib_package binconfig-disabled pkgconfig
>     DEPENDS_${PN} = "MyDriver"

Usually I use "DEPENDS" and not "DEPENDS_${PN}".

Else does your kernel module recipe populate sysroot with the header?

>     RDEPENDS_${PN} = "MyDriver"
> 
> At 'some point later', the lib *will* build ok:  I've done each MyDriver
> step one by one, and it seems that once the 'install' has been done then
> MyDriverLib will then compile. ('-c compile MyDriver' isn't sufficient). But
> shouldn't the RDEPENDS above trigger the MyDriver install?
> I'm obviously missing a dependency hook somewhere?
> 
> 
> 


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

* Re: Missing dependencies on driver header
  2017-03-31 13:56 ` Fabien Lahoudere
@ 2017-04-03  8:39   ` Colin Helliwell
  0 siblings, 0 replies; 3+ messages in thread
From: Colin Helliwell @ 2017-04-03  8:39 UTC (permalink / raw)
  To: yocto


> On 31 March 2017 at 14:56 Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> wrote:
> 
> On Fri, 2017-03-31 at 14:42 +0100, colin.helliwell@ln-systems.com wrote:
> 
> > I have a niggly problem I keep running into, especially with fresh image
> > builds.
> > I have a custom driver, and a user-space library for controlling it;
> > therefore the library includes one of the driver's header files (IOCTL defs
> > etc).
> > However I can't get the dependencies correct in the library recipe so as to
> > get the driver's header installed and available to the library build step.
> > In other words 'bitbake MyDriverLib' gives a "MyDriver.h: no such file or
> > directory "
> > The lib's recipe includes
> >  inherit autotools lib_package binconfig-disabled pkgconfig
> >  DEPENDS_${PN} = "MyDriver"
> 
> Usually I use "DEPENDS" and not "DEPENDS_${PN}".
> 


Ah, thanks - That seems to have fixed it!


> Else does your kernel module recipe populate sysroot with the header?
> 
> > RDEPENDS_${PN} = "MyDriver"
> > 
> > At 'some point later', the lib *will* build ok: I've done each MyDriver
> > step one by one, and it seems that once the 'install' has been done then
> > MyDriverLib will then compile. ('-c compile MyDriver' isn't sufficient). But
> > shouldn't the RDEPENDS above trigger the MyDriver install?
> > I'm obviously missing a dependency hook somewhere?
> > 
> > --
> > 
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto


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

end of thread, other threads:[~2017-04-03  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-31 13:42 Missing dependencies on driver header colin.helliwell
2017-03-31 13:56 ` Fabien Lahoudere
2017-04-03  8:39   ` Colin Helliwell

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.