Skip to content

Commit a9d7717

Browse files
committedSep 25, 2018
Lab 3
1 parent 2d1187a commit a9d7717

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1899
-8
lines changed
 

Diff for: ‎GNUmakefile

+18
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ $(OBJDIR)/.vars.%: FORCE
138138
# Include Makefrags for subdirectories
139139
include boot/Makefrag
140140
include kern/Makefrag
141+
include lib/Makefrag
142+
include user/Makefrag
141143

142144

143145
QEMUOPTS = -drive file=$(OBJDIR)/kern/kernel.img,index=0,media=disk,format=raw -serial mon:stdio -gdb tcp::$(GDBPORT)
@@ -298,6 +300,22 @@ myapi.key:
298300
#handin-prep:
299301
# @./handin-prep
300302

303+
# For test runs
304+
305+
prep-%:
306+
$(V)$(MAKE) "INIT_CFLAGS=${INIT_CFLAGS} -DTEST=`case $* in *_*) echo $*;; *) echo user_$*;; esac`" $(IMAGES)
307+
308+
run-%-nox-gdb: prep-% pre-qemu
309+
$(QEMU) -nographic $(QEMUOPTS) -S
310+
311+
run-%-gdb: prep-% pre-qemu
312+
$(QEMU) $(QEMUOPTS) -S
313+
314+
run-%-nox: prep-% pre-qemu
315+
$(QEMU) -nographic $(QEMUOPTS)
316+
317+
run-%: prep-% pre-qemu
318+
$(QEMU) $(QEMUOPTS)
301319

302320
# This magic automatically generates makefile dependencies
303321
# for header files included from C source files we compile,

Diff for: ‎conf/lab.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
LAB=2
2-
PACKAGEDATE=Wed Sep 12 14:51:29 EDT 2018
1+
LAB=3
2+
PACKAGEDATE=Tue Sep 25 12:21:10 EDT 2018

0 commit comments

Comments
 (0)
Please sign in to comment.