2026-01-20 11:21 PM
Hi,
at this moment I have two projects (BootLoader and Application), but I have some shared files.
What is the best solution to share those files? Is it possible to create an 'empty' project, with only those shared files, and make the two projects depending on it?
Or is it possible to add a directory, which can be handled by both projects?
Thanks in advance.
Greetings,
ErX
2026-01-20 11:45 PM
Hi,
if you use Windows you can stop reading here.
If you have a more capable OS you can use links to duplicate files.
- Either hard links: create one set of the files, and copy this to the other project with cp -l ...
This makes two views to the the same files. Changing a file on one side changes the other one as well.
- Or symbolic links: create one set as usual, and make the second view as soft links with ln -s ...
I would prefer hard links.
If you keep your files in a version control system (even on Windows) there is one more option: check them out in two places in parallel.