From dc18d0ba26576305bf7098ad8aff009c89240fc1 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Fri, 7 Oct 2022 10:11:59 -0400 Subject: [PATCH] zephyr-bsp: add support for mps2-an385 Signed-off-by: Jon Mason Signed-off-by: Naveen Saini --- .gitlab-ci.yml | 7 +++++++ ci/mps2-an385.yml | 6 ++++++ meta-zephyr-bsp/conf/machine/mps2-an385.conf | 19 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 ci/mps2-an385.yml create mode 100644 meta-zephyr-bsp/conf/machine/mps2-an385.conf diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 031b5c5..b7de43a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -77,6 +77,13 @@ frdm-kw41z: intel-x86-64: extends: .build +mps2-an385: + extends: .build + parallel: + matrix: + - TOOLCHAIN: [default, zephyr-toolchain] + TESTING: testimage + nrf52840-mdk-usb-dongle: extends: .build diff --git a/ci/mps2-an385.yml b/ci/mps2-an385.yml new file mode 100644 index 0000000..e536118 --- /dev/null +++ b/ci/mps2-an385.yml @@ -0,0 +1,6 @@ +header: + version: 11 + includes: + - ci/base.yml + +machine: mps2-an385 diff --git a/meta-zephyr-bsp/conf/machine/mps2-an385.conf b/meta-zephyr-bsp/conf/machine/mps2-an385.conf new file mode 100644 index 0000000..159e1bd --- /dev/null +++ b/meta-zephyr-bsp/conf/machine/mps2-an385.conf @@ -0,0 +1,19 @@ +#@TYPE: Machine +#@NAME: mps2-an385 +#@DESCRIPTION: Machine for Zephyr BOARD mps2-an385 + +require conf/machine/include/qemu.inc +require conf/machine/include/arm/armv7m/tune-cortexm3.inc + +TCLIBC = "newlib" + +# For runqemu +QB_SYSTEM_NAME = "qemu-system-arm" +QB_MACHINE = "-machine mps2-an385" +QB_CPU = "-cpu cortex-m3" +QB_GRAPHICS = "-nographic -vga none" +QB_OPT_APPEND = "-icount shift=7,align=off,sleep=off -rtc clock=vm" + +# Zephyr RTOS settings +ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot" +ARCH:mps2-an385 = "arm"