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.mailingl...@gmail.com> Sent: Thursday, April 5, 2018 11:48 AM To: Raymond Yeung Cc: Khem Raj; yocto@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
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto