google / google/CFU-Playground

Building using "make -j2 software bitstream" results in an error

Open
#449 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Verilog
Stars
565
Forks
160
PR merge metrics
No merged PRs in 30d

Description

It's not really a bug, but it's not well documented that this doesn't work.

To reproduce in `proj/hps_accel/`, run
```
% make clean
% make -j2 software bitstream
```
The issue is that both targets start by running the LiteX python to generate CSR data and C include files, and currently also compile the base software and BIOS. They do so concurrently in the same locations, so they clobber each other.

If the build were factored correctly, the common LiteX part would be done first, then the bitstream build and software build could continue in parallel. I don't think it's possible to do that with LiteX, though.

The situation may improve after #448 is merged, but I think the `make` command I described will still be dangerous and should be avoided.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.