From fe88dafcb5e6f3cdf15ce38095d7e11fb74f5aef Mon Sep 17 00:00:00 2001 From: Avimitin Date: Mon, 27 May 2024 13:25:37 +0800 Subject: [PATCH] [nix] replace streamLayeredImage to buildImage Proot have too many bugs to be fixed, it is better to use qemu to build the docker image. Signed-off-by: Avimitin --- nix/t1/release/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nix/t1/release/default.nix b/nix/t1/release/default.nix index 6dcb70a55d..7f376a77b8 100644 --- a/nix/t1/release/default.nix +++ b/nix/t1/release/default.nix @@ -19,17 +19,23 @@ let extension = lib.head elaborateConfig.parameter.extensions; isFp = lib.hasInfix "f" extension; + + # dontFixup is set to true by default for debugging. However it will bring LLVM runtime and clang into the final images. + # For docker release, test ELF is for demo usage only, so I don't want those implicit huge dependencies get into the container. + stripCase = case: case.overrideAttrs { + dontFixup = false; + }; in lib.makeScope newScope (scope: rec { inherit elaborateConfigJson configName; - testCases = with cases; [ + testCases = map stripCase (with cases; [ intrinsic.matmul ] ++ lib.optionals isFp [ intrinsic.softmax intrinsic.linear_normalization - ]; + ]); emulator-wrapped = runCommand "ip-emulator" {