From e8a976fcc361557060017c9d442824c839392b9e Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Sat, 21 Sep 2019 16:16:45 +0800 Subject: [PATCH] debug,Makefile: add more rules --- debug/.gitignore | 1 + debug/Makefile | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 debug/.gitignore diff --git a/debug/.gitignore b/debug/.gitignore new file mode 100644 index 000000000..397b4a762 --- /dev/null +++ b/debug/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/debug/Makefile b/debug/Makefile index d980e7afa..b092902b3 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -1,2 +1,15 @@ -microbench: - make -C /home/aw/projectn/nexus-am/apps/microbench ARCH=riscv64-noop run 2>&1 | tee > /home/aw/riscv-projecti/noop/debug/microbench.log \ No newline at end of file +ARCH = ARCH=riscv64-noop +NANOS_HOME ?= $(AM_HOME)/../nanos-lite + +microbench: + $(MAKE) -C $(AM_HOME)/apps/microbench $(ARCH) mainargs=test run 2>&1 | tee > microbench.log + +cputest: + $(MAKE) -C $(AM_HOME)/tests/cputest $(ARCH) run 2>&1 | tee > cpu.log + cat cpu.log | grep different + +cpu: + $(MAKE) -C $(AM_HOME)/tests/cputest $(ARCH) ALL=dummy run + +xj: + $(MAKE) -C $(NANOS_HOME) $(ARCH) run -- GitLab