[yocto] Header files in /usr/include of rootfs
Andy Hung(洪翊桓_Pegatron)
Andy_Hung at pegatroncorp.com
Tue Nov 24 02:33:22 PST 2015
Hi there,
I was trying to add some pre-built binaries and files by using a recipe.
The recipe has something like this:
SRC_URI = file://files<file:///\\files>
…
do_install() {
install –d ${D}
}
FILES_${PN} = “/*”
ALLOW_EMPTY_${PN} = “1”
INSANE_SKIP_${PN} = “debug-files dev-so”
The result was all the binaries and files installed and packages are created,
But I also found kernel header files are also built in under /usr/include in rootfs image.
For my understanding those header files should be used if I want to develop/debug applications on the target device but it is not the case.
Also I noticed the use of INSANE_SKIP_${PN} so I check the usage of debug-files and dev-so,
And it turned out there are .debug folders in the WORKDIR/package folder so I thought that is why debug-files was used.
The questions are,
Why are those kernel header files installed in rootfs? How do I prevent this?
Why are there .debug in the package folder, it should only be in package –dbg folder, right?
I searched and figured maybe it has something to do with the do_install task but I can’t find a solution.
Any suggestions?
Thanks,
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151124/f862ac70/attachment.html>
More information about the yocto
mailing list