Skip to content

Commit 5224330

Browse files
author
dongyongtao
committed
ci: support build rvv freeloader; sstc is fixed in dts by default, so need to build freeloader with sstc name
Signed-off-by: dongyongtao <dongyongtao@nucleisys.com>
1 parent 6075d29 commit 5224330

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/utils.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ function gen_dstimg_names() {
6363
dstfldname=${dstfldname}_mgl1dc-${MERGL1DCTRL}
6464
fi
6565

66+
if [ "x$RVV" == "xy" ] ; then
67+
dstfldname=${dstfldname}_rvv
68+
dstbootzipname=${dstbootzipname}_rvv
69+
fi
70+
6671
if [ "x$SIMULATION" != "x" ] && [ "x$SIMULATION" != "x0" ] ; then
6772
dstfldname=${dstfldname}_sim
6873
fi
@@ -87,6 +92,11 @@ function replace_dts() {
8792
sed -i "s/$old/$new/g" $dts
8893
}
8994

95+
function prepare_rvv_dts() {
96+
local arch=$(get_arch)
97+
replace_dts $arch $arch ${arch}v
98+
}
99+
90100
function prepare_sstc_dts() {
91101
local arch=$(get_arch)
92102
replace_dts $arch $arch ${arch}_sstc
@@ -104,6 +114,9 @@ function prepare_dts() {
104114
if [ "x${HVC_CONSOLE}" == "xy" ] ; then
105115
prepare_hvc_console_dts
106116
fi
117+
if [ "x${RVV}" == "xy" ] ; then
118+
prepare_rvv_dts
119+
fi
107120
}
108121

109122
function reset_dts() {

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ cache:
5757
exit 1
5858
}
5959
unset MAKEOPTS SELVAR0 VARLIST0 SELVAR1 VARLIST1
60-
- echo ">>Build multiple prefetch freeloader for $SOC - $CORE - $BOOT_MODE for sstc extension"
60+
- echo ">>Build multiple prefetch freeloader for $SOC - $CORE - $BOOT_MODE for rvv extension"
6161
- |
62-
export MAKEOPTS="SOC=$SOC CORE=$CORE BOOT_MODE=${BOOT_MODE} EXT_SSTC=y"
62+
export MAKEOPTS="SOC=$SOC CORE=$CORE BOOT_MODE=${BOOT_MODE} RVV=y"
6363
export SELVAR0="CPU_HZ"
6464
export VARLIST0="16000000,50000000,100000000"
6565
export SELVAR1="SPFL1DCTRL1"
6666
export VARLIST1="0x0,0x1f,0xf,0x3f"
67-
bash .github/build_multiple_freeloader.sh > >(tee build_pref_sstc_freeloader.log) || {
68-
xz -f -z build_pref_sstc_freeloader.log
67+
bash .github/build_multiple_freeloader.sh > >(tee build_pref_rvv_freeloader.log) || {
68+
xz -f -z build_pref_rvv_freeloader.log
6969
exit 1
7070
}
7171
unset MAKEOPTS SELVAR0 VARLIST0 SELVAR1 VARLIST1

0 commit comments

Comments
 (0)