代码拉取完成,页面将自动刷新
LAB := 1
V := @
PROJECT_DIR := .
BUILD_DIR := $(PROJECT_DIR)/build
KERNEL_IMG := $(BUILD_DIR)/kernel.img
QEMU := qemu-system-aarch64
_QEMU := $(PROJECT_DIR)/scripts/qemu/qemu_wrapper.sh $(QEMU)
QEMU_GDB_PORT := 1234
QEMU_OPTS := -machine raspi3b -nographic -serial null -serial mon:stdio -m size=1G -kernel $(KERNEL_IMG)
GDB := gdb-multiarch
CHBUILD := $(PROJECT_DIR)/chbuild
.PHONY: all
all: build
.PHONY: defconfig build clean distclean
defconfig:
$(V)$(CHBUILD) defconfig
build:
$(V)test -f $(PROJECT_DIR)/.config || $(CHBUILD) defconfig
$(V)$(CHBUILD) rebuild
clean:
$(V)$(CHBUILD) clean
distclean:
$(V)$(CHBUILD) distclean
.PHONY: qemu qemu-gdb gdb
qemu:
$(V)$(_QEMU) $(QEMU_OPTS)
qemu-gdb:
$(V)$(_QEMU) -S -gdb tcp::$(QEMU_GDB_PORT) $(QEMU_OPTS)
gdb:
$(V)gdb-multiarch -x $(PROJECT_DIR)/.gdbinit
.PHONY: grade
grade:
$(V)$(CHBUILD) distclean
$(V)$(CHBUILD) defconfig
$(V)$(CHBUILD) build
$(V)$(PROJECT_DIR)/scripts/grade/lab$(LAB).sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。