From 38ace83ee62934c4b1606c1c3b17390225536eca Mon Sep 17 00:00:00 2001 From: Avimitin Date: Fri, 23 Aug 2024 21:16:23 +0800 Subject: [PATCH] [nix] fix circt for t1rocket Signed-off-by: Avimitin --- t1rocketemu/nix/rtl.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/t1rocketemu/nix/rtl.nix b/t1rocketemu/nix/rtl.nix index 35284df49..a7e937359 100644 --- a/t1rocketemu/nix/rtl.nix +++ b/t1rocketemu/nix/rtl.nix @@ -22,8 +22,11 @@ stdenvNoCC.mkDerivation { mkdir -p $out firtool ${mlirbc} ${mfcArgs} -o $out + + # FIXME: https://github.com/llvm/circt/pull/7543 echo "Fixing generated filelist.f" - cp $out/filelist.f original.f - cat $out/firrtl_black_box_resource_files.f original.f > $out/filelist.f + pushd $out + find . -mindepth 1 -name '*.sv' -type f > $out/filelist.f + popd ''; }