Fetch the repository succeeded.
This action will force synchronization from Kangyupl/ChCore-lab, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
BUILD_DIR := ./build
ifndef QEMU
QEMU := qemu-system-aarch64
endif
LAB := 5
# try to generate a unique GDB port
GDBPORT := 1234
QEMUOPTS = -machine raspi3 -serial null -serial mon:stdio -m size=1G -kernel $(BUILD_DIR)/kernel.img -gdb tcp::1234 -nographic
IMAGES = $(BUILD_DIR)/kernel.img
all: user build
gdb:
gdb-multiarch -n -x .gdbinit
build: FORCE
./scripts/docker_build.sh $(bin)
user: FORCE
./scripts/docker_build_user.sh
qemu: $(IMAGES)
$(QEMU) $(QEMUOPTS)
qemu-gdb: $(IMAGES)
@echo "***"
@echo "*** make qemu-gdb'." 1>&2
@echo "***"
$(QEMU) -nographic $(QEMUOPTS) -S
gdbport:
@echo $(GDBPORT)
docker: FORCE
./scripts/run_docker.sh
grade: user build FORCE
@echo "make grade"
@echo "LAB"$(LAB)": test >>>>>>>>>>>>>>>>>"
ifeq ($(LAB), 2)
./scripts/run_mm_test.sh
endif
./scripts/grade-lab$(LAB)
.PHONY: clean
clean:
@rm -rf build
@rm -rf chcore.out
prep-%:
@echo "*** Now building application $*"
./scripts/docker_build.sh $*
./scripts/create_gdbinit.sh $*
run-%: prep-%
@echo "*** Now starting qemu"
$(QEMU) $(QEMUOPTS)
run-%-gdb: prep-%
@echo "*** Now starting qemu-gdb"
$(QEMU) $(QEMUOPTS) -S
.PHONY: FORCE
FORCE:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。