update user module to 2021autumn version

This commit is contained in:
zhanghx0905 2021-11-19 18:50:59 +08:00
parent 92d9170fca
commit b03d06c330
29 changed files with 964 additions and 78 deletions

View file

@ -29,6 +29,8 @@ OBJCOPY := rust-objcopy --binary-architecture=riscv64
# Disassembly
DISASM ?= -x
TEST ?= 0
build: env switch-check $(KERNEL_BIN)
switch-check:
@ -48,7 +50,7 @@ $(KERNEL_BIN): kernel
@$(OBJCOPY) $(KERNEL_ELF) --strip-all -O binary $@
kernel:
@cd ../user && make build
@cd ../user && make build TEST=$(TEST)
@echo Platform: $(BOARD)
@cp src/linker-$(BOARD).ld src/linker.ld
@cargo build --release --features "board_$(BOARD)"