Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added feature to compile riscv-tests without benchmarks #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ instbasedir := $(DESTDIR)$(prefix)
bmarkdir := $(abs_top_src_dir)/benchmarks
isa_src_dir := $(abs_top_src_dir)/isa
debug_src_dir := $(abs_top_src_dir)/debug
all_list := @BENCHMARKS@ @ISA@
install_list := $(addprefix install_, $(all_list))

all: benchmarks isa

install: all
all: $(all_list)

install: $(install_list)

install_isa: isa
install -d $(instbasedir)/share/riscv-tests/isa
install -d $(instbasedir)/share/riscv-tests/benchmarks
install -p -m 644 `find isa -maxdepth 1 -type f` $(instbasedir)/share/riscv-tests/isa

install_benchmarks: benchmarks
install -d $(instbasedir)/share/riscv-tests/benchmarks
install -p -m 644 `find benchmarks -maxdepth 1 -type f` $(instbasedir)/share/riscv-tests/benchmarks

benchmarks:
Expand Down
17 changes: 17 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ PACKAGE_URL=''
ac_subst_vars='LTLIBOBJS
LIBOBJS
XLEN
BENCHMARKS
ISA
OBJEXT
EXEEXT
ac_ct_CC
Expand Down Expand Up @@ -633,6 +635,8 @@ ac_subst_files=''
ac_user_opts='
enable_option_checking
with_xlen
with_benchmarks
with_isa
'
ac_precious_vars='build_alias
host_alias
Expand Down Expand Up @@ -2533,6 +2537,19 @@ else

fi

BENCHMARKS=benchmarks
if test "${with_benchmarks+set}" = set; then :
if test $with_benchmarks = no; then :
BENCHMARKS=
fi
fi

ISA=isa
if test "${with_isa+set}" = set; then :
if test $with_isa = no; then :
ISA=
fi
fi


ac_config_files="$ac_config_files Makefile"
Expand Down