Skip to content

Commit 3981e7d

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 0405c63 commit 3981e7d

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
@@ -63,6 +63,7 @@ on:
6363
- xtensa-nxp_rt500_adsp_zephyr-elf
6464
- xtensa-nxp_rt600_adsp_zephyr-elf
6565
- xtensa-sample_controller_zephyr-elf
66+
- xtensa-sample_controller32_zephyr-elf
6667
debug:
6768
description: 'Debug'
6869
type: choice
@@ -176,6 +177,7 @@ jobs:
176177
xtensa-nxp_rt500_adsp_zephyr-elf) build_target_xtensa_nxp_rt500_adsp_zephyr_elf="y";;
177178
xtensa-nxp_rt600_adsp_zephyr-elf) build_target_xtensa_nxp_rt600_adsp_zephyr_elf="y";;
178179
xtensa-sample_controller_zephyr-elf) build_target_xtensa_sample_controller_zephyr_elf="y";;
180+
xtensa-sample_controller32_zephyr-elf) build_target_xtensa_sample_controller32_zephyr_elf="y";;
179181
esac
180182
181183
MATRIX_DEBUG="${{ github.event.inputs.debug }}"
@@ -217,6 +219,7 @@ jobs:
217219
build_target_xtensa_nxp_rt500_adsp_zephyr_elf="y"
218220
build_target_xtensa_nxp_rt600_adsp_zephyr_elf="y"
219221
build_target_xtensa_sample_controller_zephyr_elf="y"
222+
build_target_xtensa_sample_controller32_zephyr_elf="y"
220223
fi
221224
222225
# Build 'linux_x86_64' by default if no host is selected
@@ -298,6 +301,7 @@ jobs:
298301
[ "${build_target_xtensa_nxp_rt500_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_rt500_adsp_zephyr-elf",'
299302
[ "${build_target_xtensa_nxp_rt600_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_rt600_adsp_zephyr-elf",'
300303
[ "${build_target_xtensa_sample_controller_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-sample_controller_zephyr-elf",'
304+
[ "${build_target_xtensa_sample_controller32_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-sample_controller32_zephyr-elf",'
301305
MATRIX_TARGETS+=']'
302306
303307
# 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 = "872722abd3c7c9d8c0db74fe0ae8d3e6807596f6"
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)