[yocto] Problem with packages during "devtool build"
Raymond Yeung
rksyeung at hotmail.com
Thu Apr 5 15:07:57 PDT 2018
Hi Robert,
I'd already read the out-of-tree example; it's the first thing I checked.
After some changes in 3rd party Makefile, I'm running into errors in do_compile step. My new question now is, how the Makefile picks up cross-compile INC path, as well as the LINKER path.
The variable KERNEL_SRC isn't enough to provide the needed clues for the above. And it'd be a bad idea to hardcode paths in 3rd party code.
Is there an easy way to have devtool pass in more variables? And what variables should we use?
Raymond
________________________________
From: Robert Berger <yocto.user.mailinglist at gmail.com>
Sent: Thursday, April 5, 2018 11:48 AM
To: Raymond Yeung
Cc: Khem Raj; yocto at yoctoproject.org
Subject: Re: [yocto] Problem with packages during "devtool build"
Hi,
On 2018-04-05 21:02, Raymond Yeung wrote:
> "inherit module" is already in recipes/cgosapi.bb file. In fact, as I
> use devtool to "add" the recipe to workspace layer, this .bb file is
> autogenerated. I only added the last line that sets KERNELDIR that 3rd
> Party software's Makefile uses.
Did you have a look at this out of tree kernel module example?
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-skeleton/recipes-kernel/hello-mod
You might want to use this makefile and add your stuff there.
Regards,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180405/da26c0e8/attachment.html>
More information about the yocto
mailing list