File tree Expand file tree Collapse file tree 5 files changed +40
-1
lines changed
meta-zephyr-sdk/recipes-devtools/qemu Expand file tree Collapse file tree 5 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 11
11
- TARGET=nios2
12
12
- TARGET=arm
13
13
- TARGET=riscv32
14
+ - TARGET=riscv64
14
15
- TARGET=mips
15
16
- TARGET=arc
16
17
- TARGET=xtensa
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Currently we build the following toolchains:
13
13
- nios2
14
14
- arm
15
15
- riscv32
16
+ - riscv64
16
17
- mips
17
18
- xtensa
18
19
Original file line number Diff line number Diff line change
1
+ CT_CONFIG_VERSION="2"
2
+ CT_OBSOLETE=y
3
+ CT_EXPERIMENTAL=y
4
+ CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources"
5
+ # CT_PREFIX_DIR_RO is not set
6
+ CT_PATCH_BUNDLED_LOCAL=y
7
+ CT_LOCAL_PATCH_DIR="${CT_TOP_DIR}/../../patches"
8
+ # CT_LOG_PROGRESS_BAR is not set
9
+ CT_ARCH_RISCV=y
10
+ CT_MULTILIB=y
11
+ CT_ARCH_64=y
12
+ CT_ARCH_ARCH="rv32ima"
13
+ CT_ARCH_ABI="ilp32"
14
+ CT_TARGET_VENDOR="zephyr"
15
+ CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
16
+ CT_LIBC_NEWLIB_IO_FLOAT=y
17
+ # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
18
+ CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
19
+ CT_LIBC_NEWLIB_GLOBAL_ATEXIT=y
20
+ CT_LIBC_NEWLIB_LITE_EXIT=y
21
+ # CT_LIBC_NEWLIB_MULTITHREAD is not set
22
+ # CT_LIBC_NEWLIB_WIDE_ORIENT is not set
23
+ CT_LIBC_NEWLIB_NANO_MALLOC=y
24
+ CT_LIBC_NEWLIB_NANO_FORMATTED_IO=y
25
+ CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array"
26
+ CT_CC_LANG_CXX=y
27
+ CT_DEBUG_GDB=y
28
+ CT_ISL_V_0_18=y
29
+ CT_LIBICONV_NEEDED=y
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ inherit autotools pkgconfig
193
193
# --disable-blobs : BIOS needed for x86
194
194
# --disable-fdt: Cannot use if supporting ARM
195
195
196
- QEMUS_BUILT = "aarch64-softmmu arm-softmmu i386-softmmu mips-softmmu nios2-softmmu xtensa-softmmu riscv32-softmmu x86_64-softmmu"
196
+ QEMUS_BUILT = "aarch64-softmmu arm-softmmu i386-softmmu mips-softmmu nios2-softmmu xtensa-softmmu riscv32-softmmu riscv64-softmmu x86_64-softmmu"
197
197
QEMU_FLAGS = "--disable-docs --disable-sdl --disable-debug-info --disable-cap-ng \
198
198
--disable-libnfs --disable-libusb --disable-libiscsi --disable-usb-redir --disable-linux-aio\
199
199
--disable-guest-agent --disable-libssh2 --disable-vnc-png --disable-seccomp \
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ parse_toolchain_name file_gcc_mips mips
57
57
parse_toolchain_name file_gcc_nios2 nios2
58
58
parse_toolchain_name file_gcc_xtensa xtensa
59
59
parse_toolchain_name file_gcc_riscv32 riscv32
60
+ parse_toolchain_name file_gcc_riscv64 riscv64
60
61
parse_toolchain_name file_gcc_x86_64 x86_64-zephyr-elf
61
62
parse_toolchain_name file_hosttools hosttools
62
63
@@ -130,6 +131,13 @@ if [ -n "$file_gcc_riscv32" ]; then
130
131
echo " echo \"\" " >> $setup
131
132
fi
132
133
134
+ if [ -n " $file_gcc_riscv64 " ]; then
135
+ echo " tar -C \$ target_sdk_dir -jxf ./$file_gcc_riscv64 > /dev/null &" >> $setup
136
+ echo " spinner \$ ! \" Installing riscv64 tools...\" " >> $setup
137
+ echo " [ \$ ? -ne 0 ] && echo \" Error(s) encountered during installation.\" && exit 1" >> $setup
138
+ echo " echo \"\" " >> $setup
139
+ fi
140
+
133
141
if [ -n " $file_gcc_x86_64 " ]; then
134
142
echo " tar -C \$ target_sdk_dir -jxf ./$file_gcc_x86_64 > /dev/null &" >> $setup
135
143
echo " spinner \$ ! \" Installing x86_64 tools...\" " >> $setup
You can’t perform that action at this time.
0 commit comments