Skip to content

Commit de71929

Browse files
Vladimir IsaevVVIsaev
authored andcommitted
CI: Add hs4x-pae40 to CI testing
Signed-off-by: Vladimir Isaev <isaev@synopsys.com>
1 parent 22aa939 commit de71929

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- cpu: hs4x
2222
toolchain: arc
2323
defconfig: haps_hs_defconfig
24+
- cpu: hs4x-pae40
25+
toolchain: arc
26+
defconfig: haps_hs_defconfig
2427
- cpu: hs5x
2528
toolchain: arc32
2629
defconfig: haps_hs5x_defconfig
@@ -69,7 +72,28 @@ jobs:
6972
export CROSS_COMPILE=${{ github.workspace }}/toolchain/bin/${{ matrix.targets.toolchain }}-linux-gnu-
7073
7174
make ${{ matrix.targets.defconfig }}
72-
./scripts/config --set-str CONFIG_INITRAMFS_SOURCE ${{ github.workspace }}/arc-kernel-ci/cpio/rootfs.cpio.${{ matrix.targets.cpu }}
75+
76+
case "${{ matrix.targets.cpu }}" in
77+
hs4x*)
78+
rootfs_path="${{ github.workspace }}/arc-kernel-ci/cpio/rootfs.cpio.hs4x"
79+
;;
80+
hs5x*)
81+
rootfs_path="${{ github.workspace }}/arc-kernel-ci/cpio/rootfs.cpio.hs5x"
82+
;;
83+
hs6x*)
84+
rootfs_path="${{ github.workspace }}/arc-kernel-ci/cpio/rootfs.cpio.hs6x"
85+
;;
86+
*)
87+
echo "Unable to find rootfs for '${{ matrix.targets.cpu }}'" >&2
88+
exit 1
89+
;;
90+
esac
91+
92+
./scripts/config --set-str CONFIG_INITRAMFS_SOURCE "$rootfs_path"
93+
94+
if [[ "${{ matrix.targets.cpu }}" == "hs4x-pae40" ]]; then
95+
./scripts/config --enable CONFIG_ARC_HAS_PAE40
96+
fi
7397
7498
if [[ "${{ matrix.targets.cpu }}" =~ ^(hs5x|hs6x)$ ]]; then
7599
image_name="loader"
@@ -95,7 +119,7 @@ jobs:
95119
runs-on: nsim
96120
strategy:
97121
matrix:
98-
targets: [hs4x, hs5x, hs6x]
122+
targets: [hs4x, hs4x-pae40, hs5x, hs6x]
99123
fail-fast: false
100124

101125
steps:

0 commit comments

Comments
 (0)