aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/qtools/tests/gtrace/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulator/qtools/tests/gtrace/Makefile')
-rw-r--r--emulator/qtools/tests/gtrace/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/emulator/qtools/tests/gtrace/Makefile b/emulator/qtools/tests/gtrace/Makefile
new file mode 100644
index 0000000..1d2050c
--- /dev/null
+++ b/emulator/qtools/tests/gtrace/Makefile
@@ -0,0 +1,18 @@
+include ../common_head.mk
+
+P4ROOT=/work/android
+QEMU=$(P4ROOT)/device/tools/qemu/arm-softmmu/qemu-system-arm
+QTOOLS=$(P4ROOT)/device/tools/qtools
+
+all: test.elf test.bin test.dis
+
+trace: test.elf test.bin
+ $(QEMU) -QEMU -kernel test.bin -trace foo
+ $(QTOOLS)/post_trace foo
+ $(QTOOLS)/read_trace foo test.elf > t1
+
+gtrace: trace
+ $(QTOOLS)/q2g -r $(P4ROOT)/device/out/linux-arm-release/symbols foo test.elf foo.gtrace
+ gtracepost64 foo.gtrace > t2
+
+include ../common_tail.mk