From 68de4c538cdd3e392b923bb86fe8107bf1266ff6 Mon Sep 17 00:00:00 2001 From: Douglas Reis Date: Fri, 15 May 2026 15:22:16 +0100 Subject: [PATCH] [nix] Show errors on command nix run .#bitstream-hash Redirect only the stdout to null, but print stderr. Signed-off-by: Douglas Reis --- nix/fpga.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/fpga.nix b/nix/fpga.nix index 64dafbe30..bdefb6458 100644 --- a/nix/fpga.nix +++ b/nix/fpga.nix @@ -15,11 +15,11 @@ in { runtimeInputs = [pythonEnv llvm pkgs.gnumake pkgs.cmake pkgs.srecord]; text = '' # Ask fusesoc to evaluate and generate the dependencies list. - fusesoc --cores-root=. run --target=synth --setup lowrisc:mocha:chip_mocha_genesys2 > /dev/null 2>&1 + fusesoc --cores-root=. run --target=synth --setup lowrisc:mocha:chip_mocha_genesys2 1> /dev/null # Build the bootROM because it's cheap, and copy the vmem to the src to be hashed. - cmake -DCMAKE_BUILD_TYPE=Release -B build/sw -S sw > /dev/null 2>&1 - cmake --build build/sw --target bootrom > /dev/null 2>&1 + cmake -DCMAKE_BUILD_TYPE=Release -B build/sw -S sw 1> /dev/null + cmake --build build/sw --target bootrom 1> /dev/null cp ${bootrom_path}/bootrom.vmem ${bitstream_path} # Hash the dependency list generated by fusesoc