With bitbake and a custom recipe I'm trying to compile a custom c++ software.

In my software I try to load a .h outside of my project (there is a few header files shared between few software).

ie : test/custom/test.h

in the Makefile I add -I/usr/local/include/ to cflags

when I compile my recipe, bitbake complain that it is unable to find the test.h file.

The file is in /usr/local/include/test/custom/ also I have putted it in the same directory in my rootfs of the buildsystem (.../yocto/build/tmp/sysroots/overo...) but it is unable to find it. So where to place the file to be seen by bitbake ?

Thank you