From 5883ef1e8d1d01a794a072c841ee14f74035d120 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Mon, 4 Sep 2023 12:48:55 +0200 Subject: [PATCH] updates naming --- CMakeLists.txt | 3 ++- build.sh | 13 +++++++++++++ dbt-rise-tgc | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 build.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index b99f48b..0d08810 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ if(CMAKE_PROJECT_NAME STREQUAL "TGFS-ISS") ########################################################################### # stand alone build settings ########################################################################### - set(CORE_NAME TGC_C CACHE STRING "The core to build the ISS for" ) + set(CORE_NAME TGC5C CACHE STRING "The core to build the ISS for" ) option(FW_BUILD "Enable the automatic download and build of some firmware to run on the ISS" OFF) set(CMAKE_CXX_STANDARD 14) @@ -150,6 +150,7 @@ if(CMAKE_PROJECT_NAME STREQUAL "TGFS-ISS") riscvfw GIT_REPOSITORY https://git.minres.com/VP/Firmwares.git GIT_TAG main + UPDATE_DISCONNECTED FALSE ) FetchContent_GetProperties(riscvfw) if(NOT riscvfw_POPULATED) diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..16fd4e3 --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +export TGFS_INSTALL_ROOT=`pwd`/install +module load tools/pa/T-2022.06 +module load tools/cmake +export SNPS_ENABLE_MEM_ON_DEMAND_IN_GENERIC_MEM=1 +export CC=$COWAREHOME/common/bin/gcc +export CXX=$COWAREHOME/common/bin/g++ +cmake -S . -B build/PA -DCMAKE_BUILD_TYPE=Debug -DUSE_CWR_SYSTEMC=ON -DBUILD_SHARED_LIBS=ON \ + -DCODEGEN=OFF -DCMAKE_INSTALL_PREFIX=${TGFS_INSTALL_ROOT} +cmake --build build/PA --target install -j16 +#cd dbt-rise-tgc/contrib +# import the TGC core itself +#pct tgc_import.tcl + diff --git a/dbt-rise-tgc b/dbt-rise-tgc index d5763d2..8ee3ac9 160000 --- a/dbt-rise-tgc +++ b/dbt-rise-tgc @@ -1 +1 @@ -Subproject commit d5763d2f36b3845b6d613997354fa62e2f6372f3 +Subproject commit 8ee3ac90f72176d0bbdfe10e43ab251f629c7d37