Re: [yocto] Question about automatic dependencies when native packages are used

2018-04-13 Thread Burton, Ross
On 10 April 2018 at 18:49, Aaron M. Biver  wrote:
> The problem that myapp-native is trying to include mymodule-native.  This
> complains:

Just make the dependency on mymodule target-specific.  Lots of ways
depending on what the dependencies are.

Either clear the native depends:

DEPENDS = "myapp-native mymodule"
DEPENDS_class-native = ""

Or add only to the target depends:

DEPENDS = "myapp-native"
DEPENDS_class-target = "mymodule"

I'm assuming that mymodule is installing headers that you need, and
you're not using DEPENDS instead of RDEPENDS.

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Question about automatic dependencies when native packages are used

2018-04-13 Thread Aaron M. Biver
I'm having some trouble with native dependencies in my recipe, and I'm 
wondering if anyone has any tips.  I'm building with the petalinux toolset on 
an x64 linux for an arm architecture.

I have a recipe myapp, which has a native version, myapp-native.  myapp depends 
on its myapp-native, as this builds an application used in the build of myapp.  
myapp also depends on a kernel module, mymodule.

So, an excerpt from myapp.bb:

DEPENDS += "mymodule myapp-native"
BBCLASSEXTEND = "native"

The problem that myapp-native is trying to include mymodule-native.  This 
complains:

ERROR: Nothing PROVIDES 'mymodule-native' (but 
virtual:native:/path/.../myapp/myapp.bb DEPENDS on or otherwise requires it)

I've tried adding a 'BBCLASSEXTEND = "native"' to mymodule.bb, but that 
generated build errors.

I've tried overriding the dependency in myapp.bb with
DEPENDS-native = ""

And then I tried adding this to myapp.bb
DEPENDS_${PN}-native = ""

I've also tried allowing the mymodule-native package to be empty by adding this 
to mymodule.bb
ALLOW_EMPTY_${PN} = "1"

As well as this:
ALLOW_EMPTY_${PN}-native = "1"

But nothing seems to work... it keeps trying to find mymodule-native.  I'd like 
a way to either override this dependency or make mymodule-native an empty 
package.  I'm all out of random spaghetti to throw against this wall, and I'm 
hoping someone has some experience with this.



-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto