summaryrefslogtreecommitdiffstats
path: root/debug/risc-v-gsp-rm-vm/qemu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/qemu/Makefile')
-rw-r--r--debug/risc-v-gsp-rm-vm/qemu/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/debug/risc-v-gsp-rm-vm/qemu/Makefile b/debug/risc-v-gsp-rm-vm/qemu/Makefile
new file mode 100644
index 0000000..8537cbb
--- /dev/null
+++ b/debug/risc-v-gsp-rm-vm/qemu/Makefile
@@ -0,0 +1,16 @@
+# Optional QEMU TCG plugin: full instruction/memory activity tracing.
+# Requires the QEMU plugin API header (vendored as qemu-plugin.h, GPL-2.0+).
+
+CC ?= gcc
+HEADER := qemu-plugin.h
+TARGET := greeneye-trace.so
+
+CFLAGS ?= -O2 -fPIC -Wall -Wextra -fvisibility=hidden -I.
+
+all: $(TARGET)
+
+$(TARGET): greeneye_trace.c $(HEADER)
+ $(CC) $(CFLAGS) -shared -o $@ greeneye_trace.c
+
+clean:
+ rm -f $(TARGET) *.o