11-08-2018 08:01 AM
I've added an app to my PetaLinux 2018.2 project, copied some source files into it, and I'm trying to build but failing. The build error indicates it can't find a header file.
So I edited the Makefile in project-spec/meta-user/recipes-apps/myappname/files, and added the appropriate -I /path/to/include/folder on $(CC) compile line. But when I build, the compiler still can't find the file, and it looks like the -I entry isn't being added to the compile operation.
How do I do this in the Yocto/BitBake world?
Thanks for your help!
11-08-2018 08:29 AM - edited 11-08-2018 08:32 AM
Remove -I path from your Makefile
Instead, you can add header files or folder to SRC_URI like SRC_URI += "file://*.h" or SRC_URI += "file://include_folder/"
01-30-2020 07:21 AM