Did stuff
This commit is contained in:
parent
3c9c33df23
commit
8be90bba34
3 changed files with 9 additions and 7 deletions
7
Makefile
7
Makefile
|
|
@ -1,5 +1,7 @@
|
|||
CODE=src/
|
||||
CC=riscv64-unknown-elf-gcc
|
||||
CROSS_COMPILE=riscv64-unknown-elf-
|
||||
CC=$(CROSS_COMPILE)gcc
|
||||
GDB=$(CROSS_COMPILE)gdb
|
||||
CFLAGS=-march=rv64gc -mabi=lp64d -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -Tkernel.ld -g -Wall -Wextra
|
||||
EMU=qemu-system-riscv64
|
||||
EFLAGS=-machine virt -cpu rv64 -bios opensbi-riscv64-generic-fw_dynamic.bin -m 256m -nographic -global virtio-mmio.force-legacy=false -s #-S
|
||||
|
|
@ -11,3 +13,6 @@ all: $(CODE)*.s $(CODE)*.c
|
|||
|
||||
run:
|
||||
$(EMU) $(EFLAGS) -kernel kernel
|
||||
|
||||
gdb:
|
||||
$(GDB) -x kernel.gdb
|
||||
|
|
|
|||
Reference in a new issue