diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 | 
1 files changed, 8 insertions, 5 deletions
| @@ -40,8 +40,10 @@ TOOLPREFIX := $(shell if riscv64-unknown-elf-objdump -i 2>&1 | grep 'elf64-big'  	then echo 'riscv64-unknown-elf-'; \  	elif riscv64-linux-gnu-objdump -i 2>&1 | grep 'elf64-big' >/dev/null 2>&1; \  	then echo 'riscv64-linux-gnu-'; \ +	elif riscv64-unknown-linux-gnu-objdump -i 2>&1 | grep 'elf64-big' >/dev/null 2>&1; \ +	then echo 'riscv64-unknown-linux-gnu-'; \  	else echo "***" 1>&2; \ -	echo "*** Error: Couldn't find an riscv64 version of GCC/binutils." 1>&2; \ +	echo "*** Error: Couldn't find a riscv64 version of GCC/binutils." 1>&2; \  	echo "*** To turn off this error, run 'gmake TOOLPREFIX= ...'." 1>&2; \  	echo "***" 1>&2; exit 1; fi)  endif @@ -104,7 +106,7 @@ $U/_forktest: $U/forktest.o $(ULIB)  	$(LD) $(LDFLAGS) -N -e main -Ttext 0 -o $U/_forktest $U/forktest.o $U/ulib.o $U/usys.o  	$(OBJDUMP) -S $U/_forktest > $U/forktest.asm -mkfs/mkfs: mkfs/mkfs.c $K/fs.h +mkfs/mkfs: mkfs/mkfs.c $K/fs.h $K/param.h  	gcc -Werror -Wall -I. -o mkfs/mkfs mkfs/mkfs.c  # Prevent deletion of intermediate files, e.g. cat.o, after first build, so @@ -127,6 +129,7 @@ UPROGS=\  	$U/_sh\  	$U/_stressfs\  	$U/_usertests\ +	$U/_grind\  	$U/_wc\  	$U/_zombie\ @@ -153,9 +156,9 @@ ifndef CPUS  CPUS := 3  endif -QEMUEXTRA = -drive file=fs1.img,if=none,format=raw,id=x1 -device virtio-blk-device,drive=x1,bus=virtio-mmio-bus.1 -QEMUOPTS = -machine virt -bios none -kernel $K/kernel -m 3G -smp $(CPUS) -nographic -QEMUOPTS += -drive file=fs.img,if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 +QEMUOPTS = -machine virt -bios none -kernel $K/kernel -m 128M -smp $(CPUS) -nographic +QEMUOPTS += -drive file=fs.img,if=none,format=raw,id=x0 +QEMUOPTS += -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0  qemu: $K/kernel fs.img  	$(QEMU) $(QEMUOPTS) | 
