aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-10-24 15:29:48 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-10-31 19:01:22 -0700
commit28d482c39451623e5e2d45b8d70272e8fddb3880 (patch)
treea485e54a47598c9d092337eb18cad3614024b756
parent1418daf1dc156f0429b61daeaa7b291fb3937fed (diff)
downloadriscv-gnu-toolchain-28d482c39451623e5e2d45b8d70272e8fddb3880.zip
riscv-gnu-toolchain-28d482c39451623e5e2d45b8d70272e8fddb3880.tar.gz
riscv-gnu-toolchain-28d482c39451623e5e2d45b8d70272e8fddb3880.tar.bz2
Clean up the "make check*" and "make report*" targets
Fixes: https://github.com/riscv/riscv-gnu-toolchain/issues/286
-rw-r--r--Makefile.in40
-rw-r--r--README.md4
2 files changed, 34 insertions, 10 deletions
diff --git a/Makefile.in b/Makefile.in
index 6aa78e9..a3a2208 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -72,18 +72,42 @@ build-libc: build-newlib
endif
build-qemu: stamps/build-qemu
-.PHONY: check check-gcc check-dhrystone
-check: check-gcc
-check-gcc: stamps/check-gcc-@default_target@
+REGRESSION_TEST_LIST = gcc
+
+.PHONY: check
+check: check-@default_target@
+.PHONY: check-linux check-newlib
+check-linux: $(patsubst %,check-%-linux,$(REGRESSION_TEST_LIST))
+check-newlib: $(patsubst %,check-%-newlib,$(REGRESSION_TEST_LIST))
+.PHONY: check-gcc check-gcc-linux check-gcc-newlib
+check-gcc: check-gcc-@default_target@
+check-gcc-linux: stamps/check-gcc-linux
+check-gcc-newlib: stamps/check-gcc-newlib
+.PHONY: check-dhrystone check-dhrystone-linux check-dhrystone-newlib
check-dhrystone: check-dhrystone-@default_target@
-check-binutils: stamps/check-binutils-@default_target@
-check-gdb: stamps/check-gdb-@default_target@
-
-.PHONY: report report-gcc
-report: report-gcc
+check-dhrystone-linux: stamps/check-dhrystone-linux
+check-dhrystone-newlib: stamps/check-dhrystone-newlib
+.PHONY: check-binutils check-binutils-linux check-binutils-newlib
+check-binutils: check-binutils-@default_target@
+check-binutils-linux: stamps/check-binutils-linux
+check-binutils-newlib: stamps/check-binutils-newlib
+.PHONY: check-gdb check-gdb-linux check-gdb-newlib
+check-gdb: check-gdb-@default_target@
+check-gdb-linux: stamps/check-gdb-linux
+check-gdb-newlib: stamps/check-gdb-newlib
+
+.PHONY: report
+report: report-@default_target@
+.PHONY: report-linux report-newlib
+report-linux: $(patsubst %,report-%-linux,$(REGRESSION_TEST_LIST))
+report-newlib: $(patsubst %,report-%-newlib,$(REGRESSION_TEST_LIST))
+.PHONY: report-gcc
report-gcc: report-gcc-@default_target@
+.PHONY: report-dhrystone
report-dhrystone: report-dhrystone-@default_target@
+.PHONY: report-binutils
report-binutils: report-binutils-@default_target@
+.PHONY: report-gdb
report-gdb: report-gdb-@default_target@
$(addprefix src/original-,$(PACKAGES)):
diff --git a/README.md b/README.md
index c1aaeff..371b91a 100644
--- a/README.md
+++ b/README.md
@@ -104,9 +104,9 @@ To test GCC, run the following commands:
./configure --prefix=$RISCV --disable-linux --with-arch=rv64ima # or --with-arch=rv32ima
make newlib
- make check-gcc-newlib
+ make report-newlib
./configure --prefix=$RISCV
make linux
# Need qemu-riscv32 or qemu-riscv64 in your `PATH`.
- make check-gcc-linux
+ make report-linux