> 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
 12:30:31  up 1 day 15:58,  2 users,  load average: 0.51, 0.54, 0.62
This commit is contained in:
tracer-ysyx 2024-03-06 12:30:31 +08:00 committed by xinyangli
parent 016ea9b7b3
commit c8857248f0

View file

@ -27,8 +27,6 @@ stdenv.mkDerivation rec {
am-kernels am-kernels
]; ];
IMAGES_PATH = "${am-kernels}/share/images";
configurePhase = '' configurePhase = ''
export NEMU_HOME=$(pwd) export NEMU_HOME=$(pwd)
make alldefconfig make alldefconfig
@ -40,6 +38,7 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
checkPhase = '' checkPhase = ''
export IMAGES_PATH=${am-kernels}/share/images
make test make test
''; '';
@ -48,6 +47,11 @@ stdenv.mkDerivation rec {
make PREFIX=$out install make PREFIX=$out install
''; '';
shellHook = ''
export NEMU_HOME=$(pwd)
export IMAGES_PATH=${am-kernels}/share/images
'';
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";