Add target run-nox-<program>
This target allows starting ucore with the specified user program in pure terminal. Signed-off-by: Junjie Mao <junjie.mao@hotmail.com>
This commit is contained in:
parent
2d1c2001f5
commit
5881597323
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,3 +19,4 @@ a.out
|
|||||||
*.exe
|
*.exe
|
||||||
chytesting
|
chytesting
|
||||||
disk0
|
disk0
|
||||||
|
*.orig
|
||||||
|
@ -294,6 +294,9 @@ MAKEOPTS := --quiet --no-print-directory
|
|||||||
run-%: build-%
|
run-%: build-%
|
||||||
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
||||||
|
|
||||||
|
run-nox-%: build-%
|
||||||
|
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||||
|
|
||||||
build-%: touch
|
build-%: touch
|
||||||
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
||||||
|
|
||||||
|
@ -294,6 +294,9 @@ MAKEOPTS := --quiet --no-print-directory
|
|||||||
run-%: build-%
|
run-%: build-%
|
||||||
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
||||||
|
|
||||||
|
run-nox-%: build-%
|
||||||
|
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||||
|
|
||||||
build-%: touch
|
build-%: touch
|
||||||
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
||||||
|
|
||||||
|
@ -294,6 +294,9 @@ MAKEOPTS := --quiet --no-print-directory
|
|||||||
run-%: build-%
|
run-%: build-%
|
||||||
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
||||||
|
|
||||||
|
run-nox-%: build-%
|
||||||
|
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||||
|
|
||||||
build-%: touch
|
build-%: touch
|
||||||
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
||||||
|
|
||||||
|
@ -343,6 +343,9 @@ run-%: build-%
|
|||||||
sh-%: script-%
|
sh-%: script-%
|
||||||
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
||||||
|
|
||||||
|
run-nox-%: build-%
|
||||||
|
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||||
|
|
||||||
build-%: touch
|
build-%: touch
|
||||||
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$*"
|
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$*"
|
||||||
|
|
||||||
|
@ -285,6 +285,9 @@ MAKEOPTS := --quiet --no-print-directory
|
|||||||
run-%: build-%
|
run-%: build-%
|
||||||
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
||||||
|
|
||||||
|
run-nox-%: build-%
|
||||||
|
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||||
|
|
||||||
build-%: touch
|
build-%: touch
|
||||||
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
||||||
|
|
||||||
|
@ -285,6 +285,9 @@ MAKEOPTS := --quiet --no-print-directory
|
|||||||
run-%: build-%
|
run-%: build-%
|
||||||
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
||||||
|
|
||||||
|
run-nox-%: build-%
|
||||||
|
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||||
|
|
||||||
build-%: touch
|
build-%: touch
|
||||||
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
||||||
|
|
||||||
|
@ -285,6 +285,9 @@ MAKEOPTS := --quiet --no-print-directory
|
|||||||
run-%: build-%
|
run-%: build-%
|
||||||
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
||||||
|
|
||||||
|
run-nox-%: build-%
|
||||||
|
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||||
|
|
||||||
build-%: touch
|
build-%: touch
|
||||||
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$* -DTESTSTART=$(RUN_PREFIX)$*_out_start -DTESTSIZE=$(RUN_PREFIX)$*_out_size"
|
||||||
|
|
||||||
|
@ -335,6 +335,9 @@ run-%: build-%
|
|||||||
sh-%: script-%
|
sh-%: script-%
|
||||||
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
$(V)$(QEMU) -parallel stdio $(QEMUOPTS) -serial null
|
||||||
|
|
||||||
|
run-nox-%: build-%
|
||||||
|
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||||
|
|
||||||
build-%: touch
|
build-%: touch
|
||||||
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$*"
|
$(V)$(MAKE) $(MAKEOPTS) "DEFS+=-DTEST=$*"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user