> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.6.18 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 23 08:25:28 UTC 2024 x86_64 GNU/Linux 20:12:50 up 4:30, 2 users, load average: 0.35, 0.31, 0.35
This commit is contained in:
parent
e54e683cf5
commit
f2a6cf21a5
1 changed files with 1 additions and 9 deletions
|
@ -51,17 +51,11 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
echo NEMU_HOME=$NEMU_HOME
|
|
||||||
echo pwd=$(pwd)
|
echo pwd=$(pwd)
|
||||||
mkdir -p $(pwd)/kconfig
|
|
||||||
make
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
mkdir -p $out
|
make NEMU_HOME=/build/nemu --trace
|
||||||
cat .config
|
|
||||||
ls /build/nemu/include/
|
|
||||||
make --trace
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -72,8 +66,6 @@
|
||||||
BUILD_DIR=$out make test
|
BUILD_DIR=$out make test
|
||||||
'';
|
'';
|
||||||
|
|
||||||
NEMU_HOME = src;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "NJU EMUlator, a full system x86/mips32/riscv32/riscv64 emulator for teaching";
|
description = "NJU EMUlator, a full system x86/mips32/riscv32/riscv64 emulator for teaching";
|
||||||
homepage = "https://github.com/NJU-ProjectN/nemu.git";
|
homepage = "https://github.com/NJU-ProjectN/nemu.git";
|
||||||
|
|
Loading…
Reference in a new issue