Skip to content

Commit

Permalink
build: do not build odp_icache_perf by default
Browse files Browse the repository at this point in the history
Build odp_icache_perf only when enabled using --enable-icache-perf-test
configuration flag. This speeds up builds since the icache performance
test takes a long time to compile.

Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
  • Loading branch information
JannePeltonen authored and MatiasElo committed Aug 28, 2024
1 parent cfaaa46 commit cd9b0dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions test/m4/performance.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ AC_ARG_ENABLE([test-perf],
[test_perf=$enableval],
[test_perf=yes])
AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ])

##########################################################################
# Enable/disable icache perf test
##########################################################################
AC_ARG_ENABLE([icache-perf-test],
[AS_HELP_STRING([--enable-icache-perf-test],
[enable odp_icache_perf in build and test [default=disabled]])],
[icache_perf_test=$enableval],
[icache_perf_test=no])
AM_CONDITIONAL([icache_perf_test], [test x$icache_perf_test = xyes ])
5 changes: 4 additions & 1 deletion test/performance/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ EXECUTABLES = odp_atomic_perf \
odp_bench_pktio_sp \
odp_bench_timer \
odp_crc \
odp_icache_perf \
odp_lock_perf \
odp_mem_perf \
odp_pktio_perf \
Expand All @@ -34,6 +33,10 @@ COMPILE_ONLY = odp_cpu_bench \
odp_timer_accuracy \
odp_timer_perf

if icache_perf_test
EXECUTABLES += odp_icache_perf
endif

if LIBCONFIG
COMPILE_ONLY += odp_ipsecfwd
endif
Expand Down

0 comments on commit cd9b0dc

Please sign in to comment.