fixed issues I47WMN, I477IX,I441IC

This commit is contained in:
Wang Chen
2021-09-06 10:30:57 +08:00
parent 09ea96ffed
commit d9f5e22e99
24 changed files with 256 additions and 247 deletions

View File

@@ -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