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