yocto: How copying the appication specific includes to sysroot/usr/include/component

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

yocto: How copying the appication specific includes to sysroot/usr/include/component

2,582 Views
kumar_ugesh004
Contributor II

I have the yocto bsp for iMx8 eval board and compiled it successfully. I have introduced the new custom layer and written .bb file for my recipe and the component is compiled successfully and want to install the my include in sysroot/usr/include/component at the end. I don't have the clue how to do that . Could you please some one guide me.

I want the below to be achieved from .bb files.

1. I want to copy the header includes to sysroot/usr/include/component

2. Another recipe shall be able to refer the header from sysroot/usr/include/component

0 Kudos
1 Reply

2,331 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Ugesh Munirajulu,

You would need to add the instruction to install the headers or libraries inside the do_install () method of your recipe. Something like:

install -m 644 ${S}/include/linux/<HEADER>.h ${D}${includedir}/linux/<HEADER>.h

You can find more information on these customizations in the Yocto Documentation

https://www.yoctoproject.org/docs/2.4/ref-manual/ref-manual.html#ref-tasks-install

https://www.yoctoproject.org/docs/2.6/bsp-guide/bsp-guide.html

I hope this helps!

Regards,

0 Kudos