1 Star 0 Fork 313

tulip/ChCore-lab

forked from kikiyu/chcore-lab 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 832 Bytes
一键复制 编辑 原始数据 按行查看 历史
dongzy 提交于 2020-11-24 03:53 . lab1
BUILD_DIR := ./build
ifndef QEMU
QEMU := qemu-system-aarch64
endif
LAB := 1
# 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
IMAGES = $(BUILD_DIR)/kernel.img
all: build
gdb:
gdb-multiarch -n -x .gdbinit
build: FORCE
./scripts/docker_build.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: 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
.PHONY: FORCE
FORCE:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/liu_du/chcore-lab.git
git@gitee.com:liu_du/chcore-lab.git
liu_du
chcore-lab
ChCore-lab
lab1

搜索帮助

0d507c66 1850385 C8b1a773 1850385