Skip to content

Commit ac5af21

Browse files
dcpleungstephanosio
authored andcommitted
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 <daniel.leung@intel.com>
1 parent b96eca5 commit ac5af21

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
@@ -68,6 +68,7 @@ on:
6868
- xtensa-nxp_rt700_hifi1_zephyr-elf
6969
- xtensa-nxp_rt700_hifi4_zephyr-elf
7070
- xtensa-sample_controller_zephyr-elf
71+
- xtensa-sample_controller32_zephyr-elf
7172
debug:
7273
description: 'Debug'
7374
type: choice
@@ -184,6 +185,7 @@ jobs:
184185
xtensa-nxp_rt700_hifi1_zephyr-elf) build_target_xtensa_nxp_rt700_hifi1_zephyr_elf="y";;
185186
xtensa-nxp_rt700_hifi4_zephyr-elf) build_target_xtensa_nxp_rt700_hifi4_zephyr_elf="y";;
186187
xtensa-sample_controller_zephyr-elf) build_target_xtensa_sample_controller_zephyr_elf="y";;
188+
xtensa-sample_controller32_zephyr-elf) build_target_xtensa_sample_controller32_zephyr_elf="y";;
187189
esac
188190
189191
MATRIX_DEBUG="${{ github.event.inputs.debug }}"
@@ -228,6 +230,7 @@ jobs:
228230
build_target_xtensa_nxp_rt700_hifi1_zephyr_elf="y"
229231
build_target_xtensa_nxp_rt700_hifi4_zephyr_elf="y"
230232
build_target_xtensa_sample_controller_zephyr_elf="y"
233+
build_target_xtensa_sample_controller32_zephyr_elf="y"
231234
fi
232235
233236
# Build 'linux_x86_64' by default if no host is selected
@@ -312,6 +315,7 @@ jobs:
312315
[ "${build_target_xtensa_nxp_rt700_hifi1_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_rt700_hifi1_zephyr-elf",'
313316
[ "${build_target_xtensa_nxp_rt700_hifi4_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_rt700_hifi4_zephyr-elf",'
314317
[ "${build_target_xtensa_sample_controller_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-sample_controller_zephyr-elf",'
318+
[ "${build_target_xtensa_sample_controller32_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-sample_controller32_zephyr-elf",'
315319
MATRIX_TARGETS+=']'
316320
317321
# Generate test environment list
@@ -1598,6 +1602,9 @@ jobs:
15981602
xtensa-sample_controller_zephyr-elf)
15991603
PLATFORM_ARGS+="-p qemu_xtensa "
16001604
;;
1605+
xtensa-sample_controller32_zephyr-elf)
1606+
PLATFORM_ARGS+="-p qemu_xtensa/sample_controller32/mpu "
1607+
;;
16011608
esac
16021609
done
16031610
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)