Add "check-gcc-newlib" to run the GCC test suite

This also adds a submodule pointer to the RISC-V DejaGnu port, which is
required to run the GCC test suite.  The DejaGnu port only supports the
GDB simulator.  A bunch of tests fail right now, but that's expected.
This commit is contained in:
Kito Cheng 2016-08-04 13:26:46 +08:00 committed by Palmer Dabbelt
parent 4fbcb0a804
commit 4910c5a4c5
3 changed files with 11 additions and 0 deletions

3
.gitmodules vendored
View File

@ -7,3 +7,6 @@
[submodule "riscv-glibc"]
path = riscv-glibc
url = ../riscv-glibc.git
[submodule "riscv-dejagnu"]
path = riscv-dejagnu
url = ../riscv-dejagnu.git

View File

@ -268,6 +268,13 @@ stamps/build-gcc-newlib: src/newlib-gcc stamps/build-binutils-newlib
$(MAKE) -C $(notdir $@) install
mkdir -p $(dir $@) && touch $@
.PHONY: check-gcc-newlib
check-gcc-newlib: stamps/build-gcc-newlib
export PATH=$(INSTALL_DIR)/bin:$(PATH) && \
export DEJAGNULIBS=$(srcdir)/riscv-dejagnu && \
cd build-gcc-newlib && \
$(MAKE) check-gcc "RUNTESTFLAGS=--target_board=riscv-sim"
clean:
rm -rf build-* $(addprefix src/,$(PACKAGES)) stamps

1
riscv-dejagnu Submodule

@ -0,0 +1 @@
Subproject commit 5f3adaf58af9bda05f63452323b4f7824da11d89