diff options
author | Regina König | 2022-08-09 18:34:55 +0200 |
---|---|---|
committer | Regina König | 2022-08-09 18:34:55 +0200 |
commit | 2dd337824f50051726b5eadc7b6cf625c01165f4 (patch) | |
tree | 84dc8923cfa2caee21bda7d0ce4562bb3ead56e3 /test_code/Makefile_save_origin | |
parent | Add README about how to use gdb (diff) | |
download | memtest86-2dd337824f50051726b5eadc7b6cf625c01165f4.tar.gz memtest86-2dd337824f50051726b5eadc7b6cf625c01165f4.tar.xz memtest86-2dd337824f50051726b5eadc7b6cf625c01165f4.zip |
kljhl
Diffstat (limited to 'test_code/Makefile_save_origin')
-rw-r--r-- | test_code/Makefile_save_origin | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test_code/Makefile_save_origin b/test_code/Makefile_save_origin new file mode 100644 index 0000000..a753fad --- /dev/null +++ b/test_code/Makefile_save_origin @@ -0,0 +1,27 @@ +#!/usr/bin/env make + +SHELL=/bin/bash + +LOG=debug.log +OVMFCODE=OVMF_CODE.fd +OVMFVARS=OVMF_VARS.fd +QEMU=kvm -bios OVMF.fd +QEMUFLAGS=-drive format=raw,file=fat:rw:hda-contents,index=0,media=disk \ + -drive if=pflash,format=raw,readonly,file=$(OVMFCODE) \ + -drive if=pflash,format=raw,file=$(OVMFVARS) \ + -debugcon file:$(LOG) -global isa-debugcon.iobase=0x402 \ + -serial stdio \ + -nodefaults \ + -net none \ + -cpu host + +run: + $(QEMU) $(QEMUFLAGS) + +# -S freeze CPU at startup (use 'c' to start execution) +# -s shorthand for -gdb tcp::1234 +debug: + $(QEMU) $(QEMUFLAGS) -s -S + +.PHONY: run debug + |