Skip to content

Commit 282f729

Browse files
committed
[ot] .github/workflows: opentitan: build_test.yml
Add QEMU OT machine configuration file option Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent 8707f66 commit 282f729

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

.github/workflows/build_test.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
path: |
5151
build-clang/qemu-system-riscv32
5252
build-clang/exit_*.bin
53+
docs/config/opentitan/*.cfg
5354
retention-days: 1
5455
- name: Pack source artifacts
5556
# GitHub takes ages to retrieve each source file, so pack them
@@ -150,24 +151,26 @@ jobs:
150151
name: qemu-bin
151152
- name: Check machine availability
152153
run: |
153-
chmod +x ./qemu-system-riscv32 &&
154-
./qemu-system-riscv32 -M help | grep ibexdemo &&
155-
./qemu-system-riscv32 -M help | grep ot-earlgrey &&
156-
./qemu-system-riscv32 -M help | grep ot-darjeeling
154+
chmod +x build-clang/qemu-system-riscv32 &&
155+
build-clang/qemu-system-riscv32 -M help | grep ibexdemo &&
156+
build-clang/qemu-system-riscv32 -M help | grep ot-earlgrey &&
157+
build-clang/qemu-system-riscv32 -M help | grep ot-darjeeling
157158
- name: Check IbexDemo VM execution
158159
run: |
159-
timeout -s KILL 4 ./qemu-system-riscv32 -M ibexdemo -nographic \
160-
-device loader,addr=0x100080,file=exit_id.bin -d in_asm,int
160+
timeout -s KILL 4 build-clang/qemu-system-riscv32 -M ibexdemo -nographic \
161+
-device loader,addr=0x100080,file=build-clang/exit_id.bin -d in_asm,int
161162
- name: Check EarlGrey VM execution
162163
run: |
163-
timeout -s KILL 4 ./qemu-system-riscv32 -M ot-earlgrey,no_epmp_cfg=true -nographic \
164-
-object ot-rom_img,id=rom,file=exit_eg.bin -global ot-ibex_wrapper.lc-ignore=on \
165-
-d in_asm,int
164+
timeout -s KILL 4 build-clang/qemu-system-riscv32 -M ot-earlgrey,no_epmp_cfg=true -nographic \
165+
-object ot-rom_img,id=rom,file=build-clang/exit_eg.bin -global ot-ibex_wrapper.lc-ignore=on \
166+
-readconfig docs/config/opentitan/earlgrey.cfg -d in_asm,int \
167+
-trace ot_ibex_wrapper_exit
166168
- name: Check Darjeeling VM execution
167169
run: |
168-
timeout -s KILL 4 ./qemu-system-riscv32 -M ot-darjeeling,no_epmp_cfg=true -nographic \
169-
-object ot-rom_img,id=rom0,file=exit_dj.bin -global ot-ibex_wrapper.lc-ignore=on \
170-
-d in_asm,int
170+
timeout -s KILL 4 build-clang/qemu-system-riscv32 -M ot-darjeeling,no_epmp_cfg=true -nographic \
171+
-object ot-rom_img,id=rom0,file=build-clang/exit_dj.bin -global ot-ibex_wrapper.lc-ignore=on \
172+
-readconfig docs/config/opentitan/darjeeling.cfg -d in_asm,int \
173+
-trace ot_ibex_wrapper_exit
171174
172175
build-gcc:
173176
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)