From patchwork Fri Oct 7 14:12:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 13628 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CAEAC4321E for ; Fri, 7 Oct 2022 14:12:15 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.5112.1665151929838934234 for ; Fri, 07 Oct 2022 07:12:10 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: jon.mason@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 28FA81CE0 for ; Fri, 7 Oct 2022 07:12:15 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CB1143F67D for ; Fri, 7 Oct 2022 07:12:08 -0700 (PDT) From: Jon Mason To: yocto@lists.yoctoproject.org Subject: [meta-zephyr][PATCH 3/6] zephyr-bsp: add support for mps2-an521 Date: Fri, 7 Oct 2022 10:12:00 -0400 Message-Id: <20221007141203.16632-3-jon.mason@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221007141203.16632-1-jon.mason@arm.com> References: <20221007141203.16632-1-jon.mason@arm.com> List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 07 Oct 2022 14:12:15 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58288 Signed-off-by: Jon Mason --- .gitlab-ci.yml | 7 +++++++ ci/mps2-an521.yml | 6 ++++++ meta-zephyr-bsp/conf/machine/mps2-an521.conf | 21 ++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 ci/mps2-an521.yml create mode 100644 meta-zephyr-bsp/conf/machine/mps2-an521.conf diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7de43a..9c6ac3b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -84,6 +84,13 @@ mps2-an385: - TOOLCHAIN: [default, zephyr-toolchain] TESTING: testimage +mps2-an521: + extends: .build + parallel: + matrix: + - TOOLCHAIN: [default, zephyr-toolchain] + TESTING: testimage + nrf52840-mdk-usb-dongle: extends: .build diff --git a/ci/mps2-an521.yml b/ci/mps2-an521.yml new file mode 100644 index 0000000..13259cf --- /dev/null +++ b/ci/mps2-an521.yml @@ -0,0 +1,6 @@ +header: + version: 11 + includes: + - ci/base.yml + +machine: mps2-an521 diff --git a/meta-zephyr-bsp/conf/machine/mps2-an521.conf b/meta-zephyr-bsp/conf/machine/mps2-an521.conf new file mode 100644 index 0000000..acd02be --- /dev/null +++ b/meta-zephyr-bsp/conf/machine/mps2-an521.conf @@ -0,0 +1,21 @@ +#@TYPE: Machine +#@NAME: mps2-an521 +#@DESCRIPTION: Machine for Zephyr BOARD mps2-an521 + +DEFAULTTUNE ?= "armv8m-main" +require conf/machine/include/qemu.inc +require conf/machine/include/arm/armv8-m/tune-cortexm33.inc + +TCLIBC = "newlib" + +# For runqemu +QB_SYSTEM_NAME = "qemu-system-arm" +QB_MACHINE = "-machine mps2-an521" +QB_CPU = "-cpu cortex-m33" +QB_MEM = "-m 16" +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-an521 = "arm"