mirror of
https://github.com/plctlab/riscv-operating-system-mooc.git
synced 2025-12-26 09:09:11 +00:00
fixed issues I47WMN, I477IX,I441IC
This commit is contained in:
@@ -1,13 +1,4 @@
|
||||
CROSS_COMPILE = riscv64-unknown-elf-
|
||||
CFLAGS = -nostdlib -fno-builtin -march=rv32ima -mabi=ilp32 -g -Wall
|
||||
|
||||
QEMU = qemu-system-riscv32
|
||||
QFLAGS = -nographic -smp 1 -machine virt -bios none
|
||||
|
||||
GDB = ${CROSS_COMPILE}gdb
|
||||
CC = ${CROSS_COMPILE}gcc
|
||||
OBJCOPY = ${CROSS_COMPILE}objcopy
|
||||
OBJDUMP = ${CROSS_COMPILE}objdump
|
||||
include ../../common.mk
|
||||
|
||||
SRCS_ASM = \
|
||||
start.S \
|
||||
@@ -29,7 +20,7 @@ all: os.elf
|
||||
|
||||
# start.o must be the first in dependency!
|
||||
os.elf: ${OBJS}
|
||||
${CC} $(CFLAGS) -T os.ld -o os.elf $^
|
||||
${CC} ${CFLAGS} -T os.ld -o os.elf $^
|
||||
${OBJCOPY} -O binary os.elf os.bin
|
||||
|
||||
%.o : %.c
|
||||
|
||||
Reference in New Issue
Block a user