Skip to content

Commit

Permalink
[nix] fix generated filelist
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Aug 22, 2024
1 parent 8dfef77 commit abb182d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nix/t1/rtl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ stdenvNoCC.mkDerivation {
firtool ${mlirbc}/${mlirbc.elaborateTarget}-${mlirbc.elaborateConfig}-lowered.mlirbc \
-o $out ${mfcArgs}
'' + lib.optionalString fixupFilelist ''
# FIXME: https://github.com/llvm/circt/pull/7543
echo "Fixing generated filelist.f"
cat $out/firrtl_black_box_resource_files.f >> $out/filelist.f
rm $out/firrtl_black_box_resource_files.f
pushd $out
find . -mindepth 1 -name '*.sv' -type f > $out/filelist.f
popd
'';

meta.description = "All the elaborated system verilog files for ${mlirbc.elaborateTarget} with ${mlirbc.elaborateConfig} config.";
Expand Down
1 change: 1 addition & 0 deletions nix/t1/verilated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ stdenv.mkDerivation {
--timing \
--threads 8 \
-O1 \
-F filelist.f \
--cc TestBench
echo "[nix] building verilated C lib"
Expand Down

0 comments on commit abb182d

Please sign in to comment.