Best practice to share constants between C code and recipes

[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.