From 7d566158c65912c322e7e16247872266df6ff4f7 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 6 Mar 2024 12:25:16 +0800 Subject: [PATCH] =?UTF-8?q?>=20compile=20NEMU=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.6.18=20#1-Nix?= =?UTF-8?q?OS=20SMP=20PREEMPT=5FDYNAMIC=20Fri=20Feb=2023=2008:25:28=20UTC?= =?UTF-8?q?=202024=20x86=5F64=20GNU/Linux=20=2012:25:16=20=20up=201=20day?= =?UTF-8?q?=2015:53,=20=202=20users,=20=20load=20average:=200.54,=200.67,?= =?UTF-8?q?=200.67?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/Makefile | 3 +-- nemu/default.nix | 2 +- nemu/tests/Makefile | 1 + result | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nemu/Makefile b/nemu/Makefile index 55d36f1..c7d3d80 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -93,6 +93,5 @@ integration-tests: $(IMAGES) test $$r -eq 0 test: unit-tests integration-tests - @$(OBJ_DIR)/tests/expr_test -.PHONY: test integration-tests unit-tests \ No newline at end of file +.PHONY: test unit-tests integration-tests \ No newline at end of file diff --git a/nemu/default.nix b/nemu/default.nix index e97588e..53765d6 100644 --- a/nemu/default.nix +++ b/nemu/default.nix @@ -12,12 +12,12 @@ stdenv.mkDerivation rec { nativeBuildInputs = with pkgs; [ gnumake + pkg-config flex bison ]; buildInputs = with pkgs; [ - check readline libllvm ]; diff --git a/nemu/tests/Makefile b/nemu/tests/Makefile index 6804b41..2e8c784 100644 --- a/nemu/tests/Makefile +++ b/nemu/tests/Makefile @@ -7,3 +7,4 @@ $(OBJ_DIR)/%: %.c $(TEST_OBJS) app @$(CC) $(CFLAGS) -o $@.o -c $< @echo + LD $@ @$(LD) $(LIBS) $(LDFLAGS) -o $@ $(TEST_OBJS) $@.o + @$@ diff --git a/result b/result index 88d0079..172ba27 120000 --- a/result +++ b/result @@ -1 +1 @@ -/nix/store/g0h98bppypvyz3z4sv45kl9218ad2gsq-nemu-2024-03-02 \ No newline at end of file +/nix/store/d0jlcjdrgsb5pis8flyy5ihifdnfhms5-am-kernels-riscv32-none-elf-2024.02.18 \ No newline at end of file