Skip to content

Commit 18a3308

Browse files
committed
xtensa: sample_controller32: for Xtensa MPU support
The overlay comes from: https://github.com/jcmvbkbc/xtensa-toolchain-build commit 435c5e8b108de520565886f3f2349cc6be3fe712 under directory overlays/ This would allow us to use QEMU to test the Xtensa MPU code on main Zephyr repo. Signed-off-by: Daniel Leung <[email protected]>
1 parent 167597b commit 18a3308

File tree

13 files changed

+25344
-1
lines changed

13 files changed

+25344
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ on:
6666
- xtensa-nxp_rt500_adsp_zephyr-elf
6767
- xtensa-nxp_rt600_adsp_zephyr-elf
6868
- xtensa-sample_controller_zephyr-elf
69+
- xtensa-sample_controller32_zephyr-elf
6970
debug:
7071
description: 'Debug'
7172
type: choice
@@ -180,6 +181,7 @@ jobs:
180181
xtensa-nxp_rt500_adsp_zephyr-elf) build_target_xtensa_nxp_rt500_adsp_zephyr_elf="y";;
181182
xtensa-nxp_rt600_adsp_zephyr-elf) build_target_xtensa_nxp_rt600_adsp_zephyr_elf="y";;
182183
xtensa-sample_controller_zephyr-elf) build_target_xtensa_sample_controller_zephyr_elf="y";;
184+
xtensa-sample_controller32_zephyr-elf) build_target_xtensa_sample_controller32_zephyr_elf="y";;
183185
esac
184186
185187
MATRIX_DEBUG="${{ github.event.inputs.debug }}"
@@ -222,6 +224,7 @@ jobs:
222224
build_target_xtensa_nxp_rt500_adsp_zephyr_elf="y"
223225
build_target_xtensa_nxp_rt600_adsp_zephyr_elf="y"
224226
build_target_xtensa_sample_controller_zephyr_elf="y"
227+
build_target_xtensa_sample_controller32_zephyr_elf="y"
225228
fi
226229
227230
# Build 'linux_x86_64' by default if no host is selected
@@ -304,6 +307,7 @@ jobs:
304307
[ "${build_target_xtensa_nxp_rt500_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_rt500_adsp_zephyr-elf",'
305308
[ "${build_target_xtensa_nxp_rt600_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_rt600_adsp_zephyr-elf",'
306309
[ "${build_target_xtensa_sample_controller_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-sample_controller_zephyr-elf",'
310+
[ "${build_target_xtensa_sample_controller32_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-sample_controller32_zephyr-elf",'
307311
MATRIX_TARGETS+=']'
308312
309313
# Generate test environment list
@@ -1582,6 +1586,9 @@ jobs:
15821586
xtensa-sample_controller_zephyr-elf)
15831587
PLATFORM_ARGS+="-p qemu_xtensa "
15841588
;;
1589+
xtensa-sample_controller32_zephyr-elf)
1590+
PLATFORM_ARGS+="-p qemu_xtensa/sample_controller32/mpu "
1591+
;;
15851592
esac
15861593
done
15871594
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CT_CONFIG_VERSION="3"
2+
CT_EXPERIMENTAL=y
3+
CT_OVERLAY_LOCATION="overlays"
4+
CT_OVERLAY_NAME="sample_controller32"
5+
CT_ARCH_XTENSA=y
6+
CT_XTENSA_CUSTOM=y
7+
CT_TARGET_VENDOR="sample_controller32_zephyr"
8+
CT_TARGET_CFLAGS="-ftls-model=local-exec"
9+
CT_CC_GCC_CONFIG_TLS=n

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
55
LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
66
file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f"
77

8-
SRCREV = "2cc2e86de6e0e4316265d34e8e935afade8c422e"
8+
SRCREV = "ffe03b7e85c17a3db65e53718b30393d2cf159ee"
99
SRC_URI = "git://github.com/zephyrproject-rtos/qemu.git;protocol=https;nobranch=1 \
1010
https://github.com/zephyrproject-rtos/seabios/releases/download/zephyr-v1.0.0/bios-128k.bin;name=bios-128k \
1111
https://github.com/zephyrproject-rtos/seabios/releases/download/zephyr-v1.0.0/bios-256k.bin;name=bios-256k \

0 commit comments

Comments
 (0)