Best practice to share constants between C code and recipes
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <[email protected]> |
Hello, A project uses GUIDs. They are constant string values. The values are used: - in several recipes do_install() function to generate xml files - in another recipe where the GUIDs are used in C code What is the best practice to manage these constants so they are centralized in a single file? Is it OK to put them in a bitbake .inc file, then generate a C header file at build time? Are dependencies managed correctly in that case? Changing the .inc file should trigger rebuilding of the C code. Thanks in advance for any suggestions Best regards