> On Jul 21, 2016, at 5:20 PM, Vijayakumar Badiger <[email protected]> 
> 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 <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>> On Jul 21, 2016, at 3:34 PM, Vijayakumar Badiger <[email protected] 
>> <mailto:[email protected]>> 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 <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>>> On Jul 21, 2016, at 2:59 PM, Burton, Ross <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> 
>>> On 21 July 2016 at 22:51, Vijayakumar Badiger <[email protected] 
>>> <mailto:[email protected]>> 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
>>> [email protected] <mailto:[email protected]>
>>> https://lists.yoctoproject.org/listinfo/yocto 
>>> <https://lists.yoctoproject.org/listinfo/yocto>
>> 
>> 
> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to