Skip to content

Question: Can I add a confirmation message when the build directory is overwritten? #757

@BaseHardware

Description

@BaseHardware

I am using FuseSoC to manage a Vivado project with git.

FuseSoC copies the source code from the git repository into the build directory to construct a Vivado project based on the CAPI core file.

However, it is inefficient to build the Vivado project every time there is a source code modification, as the preparation stage of Vivado before getting the compilation state is too long (it automatically resets IPs and generates output files from the IPs before the actual synthesis stage of our design, which requires a long time to be done).

Therefore, I am modifying the code in the build directory and committing the changes to the git repository.

The problem is that if I run fusesoc run Blah:Blah:Blah to rebuild the Vivado project after modifying the source code in the build directory, it is overwritten without any notification from FuseSoC.

I want to prevent accidental overwriting and put a safety mechanism in place to address this issue, such as printing a warning message or automatically creating a backup directory. Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions