Skip to content

Commit 191ca12

Browse files
committed
Add OpenRISC 1000 (or1k) support
Signed-off-by: Joel Holdsworth <[email protected]>
1 parent fff0928 commit 191ca12

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ on:
4949
- microblazeel-zephyr-elf
5050
- mips-zephyr-elf
5151
- nios2-zephyr-elf
52+
- or1k-zephyr-elf
5253
- riscv64-zephyr-elf
5354
- sparc-zephyr-elf
5455
- x86_64-zephyr-elf
@@ -169,6 +170,7 @@ jobs:
169170
microblazeel-zephyr-elf) build_target_microblazeel_zephyr_elf="y";;
170171
mips-zephyr-elf) build_target_mips_zephyr_elf="y";;
171172
nios2-zephyr-elf) build_target_nios2_zephyr_elf="y";;
173+
or1k-zephyr-elf) build_target_or1k_zephyr_elf="y";;
172174
riscv64-zephyr-elf) build_target_riscv64_zephyr_elf="y";;
173175
sparc-zephyr-elf) build_target_sparc_zephyr_elf="y";;
174176
x86_64-zephyr-elf) build_target_x86_64_zephyr_elf="y";;
@@ -217,6 +219,7 @@ jobs:
217219
build_target_microblazeel_zephyr_elf="y"
218220
build_target_mips_zephyr_elf="y"
219221
build_target_nios2_zephyr_elf="y"
222+
build_target_or1k_zephyr_elf="y"
220223
build_target_riscv64_zephyr_elf="y"
221224
build_target_sparc_zephyr_elf="y"
222225
build_target_x86_64_zephyr_elf="y"
@@ -305,6 +308,7 @@ jobs:
305308
[ "${build_target_microblazeel_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"microblazeel-zephyr-elf",'
306309
[ "${build_target_mips_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"mips-zephyr-elf",'
307310
[ "${build_target_nios2_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"nios2-zephyr-elf",'
311+
[ "${build_target_or1k_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"or1k-zephyr-elf",'
308312
[ "${build_target_riscv64_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"riscv64-zephyr-elf",'
309313
[ "${build_target_sparc_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"sparc-zephyr-elf",'
310314
[ "${build_target_x86_64_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"x86_64-zephyr-elf",'
@@ -1551,6 +1555,9 @@ jobs:
15511555
nios2-zephyr-elf)
15521556
PLATFORM_ARGS+="-p qemu_nios2 "
15531557
;;
1558+
or1k-zephyr-elf)
1559+
PLATFORM_ARGS+="-p qemu_or1k "
1560+
;;
15541561
riscv64-zephyr-elf)
15551562
PLATFORM_ARGS+="-p qemu_riscv32 "
15561563
PLATFORM_ARGS+="-p qemu_riscv32e "

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The toolchains for the following target architectures are supported:
1111
- Microblaze (32-bit)
1212
- MIPS (32-bit and 64-bit)
1313
- Nios II
14+
- OpenRISC 1000
1415
- RISC-V (32-bit and 64-bit; RV32I, RV32E, RV64I)
1516
- SPARC (32-bit and 64-bit; SPARC V8, SPARC V9)
1617
- x86 (32-bit and 64-bit)

cmake/zephyr/target.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ set(CROSS_COMPILE_TARGET_nios2 nios2-zephyr-elf)
1111
set(CROSS_COMPILE_TARGET_riscv riscv64-zephyr-elf)
1212
set(CROSS_COMPILE_TARGET_mips mips-zephyr-elf)
1313
set(CROSS_COMPILE_TARGET_microblaze microblazeel-zephyr-elf)
14+
set(CROSS_COMPILE_TARGET_or1k or1k-zephyr-elf)
1415
set(CROSS_COMPILE_TARGET_xtensa xtensa-${SOC_TOOLCHAIN_NAME}_zephyr-elf)
1516

1617
# ARC uses the same source tree for both ARCv2 & ARCv3 architectures,

configs/or1k-zephyr-elf.config

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CT_CONFIG_VERSION="3"
2+
CT_EXPERIMENTAL=y
3+
CT_ARCH_OR1K=y
4+
CT_TARGET_CFLAGS="-ftls-model=local-exec"
5+
CT_TARGET_VENDOR="zephyr"
6+
CT_MULTILIB=y

meta-zephyr-sdk/recipes-devtools/qemu/zephyr-qemu_git.bb

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ inherit autotools pkgconfig
199199
#--disable-fdt: Cannot use if supporting ARM
200200
#--disable-kvm: AArch64 has a QEMU/KVM board
201201

202-
QEMUS_BUILT = "aarch64-softmmu arm-softmmu i386-softmmu mips-softmmu mipsel-softmmu nios2-softmmu xtensa-softmmu riscv32-softmmu riscv64-softmmu sparc-softmmu x86_64-softmmu"
202+
QEMUS_BUILT = "aarch64-softmmu arm-softmmu i386-softmmu mips-softmmu mipsel-softmmu nios2-softmmu xtensa-softmmu riscv32-softmmu riscv64-softmmu sparc-softmmu x86_64-softmmu or1k-softmmu"
203203
QEMU_FLAGS = "--disable-docs --disable-sdl --disable-debug-info --disable-cap-ng \
204204
--disable-libnfs --disable-libusb --disable-libiscsi --disable-usb-redir --disable-linux-aio\
205205
--disable-guest-agent --disable-libssh --disable-vnc-png --disable-seccomp \

0 commit comments

Comments
 (0)