From 49ce6b73d2c1ccce3b4c6720c1fbe05516c12862 Mon Sep 17 00:00:00 2001 From: Navaneeth-Kunhi Purayil Date: Thu, 5 Dec 2024 10:35:29 +0100 Subject: [PATCH] [CMAKE] pass enable print and fla tests as make variable --- hw/system/spatz_cluster/Makefile | 2 +- hw/system/spatz_cluster/sw/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/system/spatz_cluster/Makefile b/hw/system/spatz_cluster/Makefile index 8767abf..5bf9607 100644 --- a/hw/system/spatz_cluster/Makefile +++ b/hw/system/spatz_cluster/Makefile @@ -182,7 +182,7 @@ sw: clean.sw sw.vsim: clean.sw bin/spatz_cluster.vsim mkdir -p sw/build cd sw/build && ${CMAKE} \ - -DPRINT_CHECK=OFF -DENABLE_FLAMINGO_TESTS=OFF -DFLA_ROOT=${FLA_ROOT} \ + -DPRINT_CHECK=${ENABLE_PRINT} -DENABLE_FLAMINGO_TESTS=${ENABLE_FLA_TESTS} -DFLA_ROOT=${FLA_ROOT} \ -DLLVM_PATH=${LLVM_INSTALL_DIR} -DGCC_PATH=${GCC_INSTALL_DIR} -DPYTHON=${PYTHON} -DSNITCH_SIMULATOR=../../../../../hw/system/spatz_cluster/bin/spatz_cluster.vsim -DBUILD_TESTS=ON .. && make -j8 ## Build SW and run all tests with Questasim simulator diff --git a/hw/system/spatz_cluster/sw/CMakeLists.txt b/hw/system/spatz_cluster/sw/CMakeLists.txt index 0a963a2..8977638 100644 --- a/hw/system/spatz_cluster/sw/CMakeLists.txt +++ b/hw/system/spatz_cluster/sw/CMakeLists.txt @@ -21,5 +21,5 @@ add_subdirectory(${SNITCH_SOFTWARE_DIR}/spatzBenchmarks spatzBenchmarks) option(ENABLE_FLAMINGO_TESTS "Enable flamingo tests for spatz" OFF) if (ENABLE_FLAMINGO_TESTS) message(STATUS "Adding flamingo tests") - add_subdirectory(${FLA_ROOT}/sw/spatz/tests tests) + add_subdirectory(${FLA_ROOT}/sw/spatz flamingoTests) endif() \ No newline at end of file