add --isa for 64-bit and removes debug line in jenkins

This commit is contained in:
2025-07-25 16:05:03 +02:00
parent 56081dcb6f
commit 578857997e

44
Jenkinsfile vendored
View File

@@ -47,11 +47,8 @@ void make_hello(board) {
sh("make -C hello-world/ clean") sh("make -C hello-world/ clean")
} }
void cmake_hello(board,build_type,core_type) { void cmake_hello(board,build_type,core_type) {
sh("pwd") def flavor ="build_${board}_${build_type}_${core_type}"
// sh("cd hello-world/")
//sh("pwd")
def flavor ="${board}_${build_type}_${core_type}"
if (core_type=="32") if (core_type=="32")
flavor ="${board}_${build_type}" flavor ="${board}_${build_type}"
sh("cmake -B ${flavor} --preset=${flavor}") sh("cmake -B ${flavor} --preset=${flavor}")
@@ -146,35 +143,22 @@ pipeline {
} }
} }
stage("Checkout TGC-ISS, TGC-Compliance and TGC-GEN"){ stage("Checkout TGC-ISS, TGC-Compliance and TGC-GEN"){
steps { steps {
sh 'pwd' dir("TGC-ISS"){
dir("TGC-ISS"){
sh 'pwd'
sh 'rm -rf * .??* ' sh 'rm -rf * .??* '
checkout_iss_project("https://git.minres.com/TGFS/TGC-ISS.git", "develop") checkout_iss_project("https://git.minres.com/TGFS/TGC-ISS.git", "develop")
dir("TGC-COMPLIANCE"){ dir("TGC-COMPLIANCE"){
sh 'pwd'
checkout_iss_project("https://git.minres.com/TGFS/TGC-COMPLIANCE.git", "master") checkout_iss_project("https://git.minres.com/TGFS/TGC-COMPLIANCE.git", "master")
} }
dir("TGC-GEN"){ dir("TGC-GEN"){
sh 'pwd'
checkout_iss_project("https://git.minres.com/TGFS/TGC-GEN.git", "develop") checkout_iss_project("https://git.minres.com/TGFS/TGC-GEN.git", "develop")
} }
} }
} }
} }
stage("Generate cores and build TGC-ISS"){ stage("Generate cores and build TGC-ISS"){
steps { steps {
sh 'pwd' sh 'rm -rf *@tmp'
sh 'ls'
sh 'rm -rf *@tmp'
sh 'ls'
sh 'ls TGC-ISS'
sh 'ls TGC-ISS/TGC-GEN'
sh 'ls TGC-ISS/TGC-COMPLIANCE'
sh 'ls TGC-GEN'
sh 'ls TGC-COMPLIANCE'
sh ''' sh '''
for core in RV32GC; do for core in RV32GC; do
for backend in interp; do for backend in interp; do
@@ -189,20 +173,16 @@ pipeline {
''' '''
sh 'conan profile detect --force' sh 'conan profile detect --force'
sh 'rm -rf TGC-ISS/build' sh 'rm -rf TGC-ISS/build'
sh 'cmake -S TGC-ISS/. -B TGC-ISS/build --preset Release -DWITH_ASMJIT=ON -DWITH_TCC=ON -DWITH_LLVM=OFF' sh 'cmake -S TGC-ISS/. -B TGC-ISS/build --preset Release -DWITH_ASMJIT=ON -DWITH_TCC=ON -DWITH_LLVM=OFF'
sh 'ls TGC-ISS/dbt-rise-tgc/src-gen/vm/interp/'
sh 'cmake --build TGC-ISS/build -j' sh 'cmake --build TGC-ISS/build -j'
sh 'TGC-ISS/build/dbt-rise-tgc/tgc-sim --isa ?' sh 'TGC-ISS/build/dbt-rise-tgc/tgc-sim --isa ?'
} }
} }
stage("start to run hello FW on ISS") { stage("start to run hello FW on ISS") {
steps { steps {
sh 'pwd' sh 'TGC-ISS/build/dbt-rise-tgc/tgc-sim -f hello-world/build_ISS_Debug/hello.elf'
sh 'ls' sh 'TGC-ISS/build/dbt-rise-tgc/tgc-sim -f hello-world/build_ISS_Debug_64/hello.elf --isa=rv64gc'
sh 'TGC-ISS/build/dbt-rise-tgc/tgc-sim -f hello-world/ISS_Debug/hello.elf'
sh 'TGC-ISS/build/dbt-rise-tgc/tgc-sim -f hello-world/ISS_Debug_64/hello.elf'
} }
} }
} }