[yocto] Error during adding a new recipe.

Khem Raj raj.khem at gmail.com
Thu Jul 21 18:22:32 PDT 2016


> On Jul 21, 2016, at 5:20 PM, Vijayakumar Badiger <vijayakumarmb at gmail.com> wrote:
> 
> The sync driver is already ported in the kernel.  I just need to get this compilation error fixed. I tried adding below change to kernel bb file but still I get that same error.
> 
> PACKAGES =+ "kernel-headers"
> FILES_kernel-headers = "${KDIR}/usr/include”

there is a different recipe for headers linux-libc-headers that also needs to be patched and then hopefully kernel build system is exporting this header for userspace automatically
and you will be set.

> 
> 
> Cheers
> Vijay
> 
> 
> On Thu, Jul 21, 2016 at 4:11 PM, Khem Raj <raj.khem at gmail.com <mailto:raj.khem at gmail.com>> wrote:
> 
>> On Jul 21, 2016, at 3:34 PM, Vijayakumar Badiger <vijayakumarmb at gmail.com <mailto:vijayakumarmb at gmail.com>> wrote:
>> 
>> I am trying to integrate the adb daemon by pulling in the userspace project from the android system/core. http://androidxref.com/6.0.1_r10/xref/system/core/ <http://androidxref.com/6.0.1_r10/xref/system/core/>
>> When we try to compile libsync I am getting this error. Can you pls let me know how to overcome this. Thanks.
>> 
>> 
> 
> you need to port the sync driver to kernel you are using and also it should be patching the kernel-headers package since it seems they are also exposing
> some APIs to userspace.
> 
>> 
>> On Thu, Jul 21, 2016 at 3:08 PM, Khem Raj <raj.khem at gmail.com <mailto:raj.khem at gmail.com>> wrote:
>> 
>>> On Jul 21, 2016, at 2:59 PM, Burton, Ross <ross.burton at intel.com <mailto:ross.burton at intel.com>> wrote:
>>> 
>>> 
>>> On 21 July 2016 at 22:51, Vijayakumar Badiger <vijayakumarmb at gmail.com <mailto:vijayakumarmb at gmail.com>> wrote:
>>> /local/mnt/workspace/c_vbadig/LV/poky/build/tmp-glibc/work/aarch64-poky-linux/system-core/git-r17/system/core/libsync/sync.c:24:24: fatal error: linux/sync.h: No such file or directory
>>> compilation terminated.
>>> make[2]: *** [libsync_la-sync.lo] Error 1
>>> 
>>> That's not a standard user-space kernel header and doesn't appear to be a standard header at all, so the question is where do you expect that header to come from?
>>> 
>> 
>> Its from android sync driver for kernel, which is not upstreamed yet.
>> 
>>> Ross
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>
>>> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
>> 
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160721/3a2ad915/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160721/3a2ad915/attachment.pgp>


More information about the yocto mailing list