Skip to content

Commit

Permalink
fix: regression fix on kernel.mk miss commit
Browse files Browse the repository at this point in the history
Signed-off-by: Yiyang Wu <[email protected]>
  • Loading branch information
ToolmanP committed Dec 21, 2024
1 parent 8e2da23 commit 9302eb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Scripts/extras/lab5.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ gdb:

grade:
$(Q)(test -f ${LABDIR}/.config && cp ${LABDIR}/.config ${LABDIR}/.config.bak) || :
$(Q)$(DOCKER_RUN) $(GRADER) -t $(TIMEOUT) -f $(LABDIR)/scores.json $(GRADER_V) -s $(SERIAL) make SERIAL=$(SERIAL) qemu-grade
$(Q)$(DOCKER_RUN) $(GRADER) -t $(TIMEOUT)
$(Q)(test -f ${LABDIR}/.config.bak && cp ${LABDIR}/.config.bak ${LABDIR}/.config && rm .config.bak) || :

.PHONY: qemu qemu-gdb gdb defconfig build clean distclean grade all
4 changes: 3 additions & 1 deletion Scripts/kernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ gdb:
$(Q)$(GDB) --nx -x $(SCRIPTS)/gdb/gdbinit

grade:
$(Q)$(MAKE) distclean &> /dev/null
$(Q)(test -f ${LABDIR}/.config && cp ${LABDIR}/.config ${LABDIR}/.config.bak) || :
$(Q)$(DOCKER_RUN) $(GRADER) -t $(TIMEOUT)
$(Q)$(MAKE) build
$(Q)$(DOCKER_RUN) $(GRADER) -t $(TIMEOUT) -f $(LABDIR)/scores.json $(GRADER_V) -s $(SERIAL) make SERIAL=$(SERIAL) qemu-grade
$(Q)(test -f ${LABDIR}/.config.bak && cp ${LABDIR}/.config.bak ${LABDIR}/.config && rm .config.bak) || :

.PHONY: qemu qemu-gdb gdb defconfig build clean distclean grade all

0 comments on commit 9302eb0

Please sign in to comment.