fusesoc icon indicating copy to clipboard operation
fusesoc copied to clipboard

inherited scripts are overwritten

Open GCHQDeveloper211 opened this issue 2 years ago • 1 comments

It seems that if you have a core file that creates a post_build hook with a script, lets say FOO. If you coincidentally create a post_build hook and script also called FOO, either by inheriting from another core file or creating it in the core file in question, this will create a makefile with several targets all with the same name, and hence only the latter target will be run. since this is done in the make file, is it worth having fusesoc embed a part of the VLNV or some sort of identifier to ensure that all the hook targets are unique?

GCHQDeveloper211 avatar Sep 07 '23 07:09 GCHQDeveloper211

Yes, some kind of protection is apparently needed. And if I understand correcty the fix needs to bee on the FuseSoC side. Patches welcome!

olofk avatar Sep 13 '23 21:09 olofk